1 Reply Latest reply on Jul 2, 2013 1:18 PM by Phil Wilson

    Richfaces 3.3 does not work in Tomcat7 does in Tomcat 6

    Phil Wilson Apprentice

      I have an application that has been running in tomcat 6 for years. I installed Tomcat 7.0.41 today and it does not work. I get this message.

       

      Can anyone help?

       

      Thanks

      Phil

       

      HTTP Status 500 -


      type Exception report

      message

      description The server encountered an internal error that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException javax.faces.webapp.FacesServlet.service(FacesServlet.java:323) 
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
      org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:746)
      org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:716) org.apache.jsp.index_jsp._jspService(index_jsp.java:77)
      .apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

      root cause

      java.lang.IllegalArgumentException com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:212) com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:131) com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:758) com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:840) com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:294) javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) javax.faces.render.Renderer.encodeChildren(Renderer.java:164) javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:427) com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:229) com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127) org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) javax.faces.webapp.FacesServlet.service(FacesServlet.java:311) org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:746) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:716) org.apache.jsp.index_jsp._jspService(index_jsp.java:77) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) 

      note The full stack trace of the root cause is available in the Apache Tomcat/7.0.41 logs.

       

       

       

      tomcat2:/opt/apache-tomcat-6.0.18/netfixupapps/ROOT/WEB-INF/lib# ls

      activation-1.0.2.jar           jasperreports-1.0.3.jar

      ajaxtags-1.2-beta2.jar         jsf-api.jar

      avalon-framework-4.1.5.jar     jsf-impl.jar

      batik-1.5-fop-0.20-5.jar       jstl-1.2.jar

      bcmail-jdk14-124.jar           log4j-1.2.11.jar

      bcprov-jdk14-124.jar           mail-1.3.1.jar

      commons-beanutils-1.6.1.jar    nucaptcha-1.0.10550.jar

      commons-collections-3.1.jar    ojdbc14-10.1.0.2.0.jar

      commons-configuration-1.1.jar  recaptcha4j-0.0.7.jar

      commons-digester-1.5.jar       richfaces-api-3.3.3.Final.jar

      commons-discovery-0.4.jar      richfaces-impl-3.3.3.Final.jar

      commons-el-1.0.jar             richfaces-ui-3.3.3.Final.jar

      commons-fileupload-1.0.jar     standard.jar

      commons-lang-2.0.jar           tomahawk-1.1.9.jar

      commons-logging-1.0.2.jar      xalan-2.6.0.jar

      dwr.jar                        xbean-1.0.3.jar

      fop-0.20.5.jar                 xmlresourcebund-10.jar

       

       

       

       

      CATALINA_HOME=/opt/apache-tomcat-7.0.41

      CATALINA_OPTS='-Xms1524m -Xmx1524m'

       

      JAVA_HOME=/opt/jdk1.6.0_11

       

       

      ERROR org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:227) -  Exception in the filter chain

      javax.servlet.ServletException

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:323)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)

              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)

              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)

              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)

              at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:746)

              at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:716)

              at org.apache.jsp.index_jsp._jspService(index_jsp.java:77)

              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)

              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)

              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

              at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)

              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

              at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.IllegalArgumentException

              at com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:212)

              at com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:131)

              at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:758)

              at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:840)

              at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:294)

              at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)

              at javax.faces.render.Renderer.encodeChildren(Renderer.java:164)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)

              at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:427)

              at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:229)

              at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)

              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)