2 Replies Latest reply on Mar 1, 2016 3:51 AM by Vera volpert

    Problem upgrading jboss eap 6.4 with jsf 1.2 to 2.1

    Vera volpert Newbie

      Hi, I am upgrading a huge app written with richfaces 3.3.3Final,  myfaces 1.2,  and jsp as the view technology.

      Since the app is bug I hoped to upgrade it gradually, so I decided to remain with the jsp view and richfaces 3.

      I replaced myfaces 1.2 jars with myfaces 2.1.17 jars - both impl and api.

      I replaced richfaces3.3.3-impl with richfaces3.3.3-jsf2-impl.

      In faces-config I updated the tag to:


      <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd"
                    version="2.1">
      
      
      


      Updated tomahawk12 to tomahawk20 1.1.14.

      Disabled facelets in web.xml:


      <context-param>
        <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
        <param-value>true</param-value>
      </context-param>
      
      
      <context-param>
        <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
        <param-value>true</param-value>
      </context-param>
      
      
      <context-param>
        <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
        <param-value>org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl</param-value>
      </context-param>
      
      
      

       

      This results in:

       

      java.lang.NullPointerException

      org/apache/tomcat/InstanceManager

      viewId=null

      phaseId=RENDER_RESPONSE(6)

      Caused by:

      java.lang.NullPointerException

      at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.deriveViewId(JspTilesTwoViewHandlerImpl.java:250)

      java.lang.ClassNotFoundException - org.apache.tomcat.InstanceManager from [Module "deployment.DeutscheBankEar.ear:main" from Service Module Loader]

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)

       

      java.lang.NullPointerException
      at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.deriveViewId(JspTilesTwoViewHandlerImpl.java:250)
      at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.renderView(JspTilesTwoViewHandlerImpl.java:114)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at com.traiana.platform.core.beans.FacesInstanceManagerFilter.doFilter(FacesInstanceManagerFilter.java:45)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:212)
      at com.traiana.platform.web.security.SessionTrackingFilter.doFilter(SessionTrackingFilter.java:91)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at com.traiana.platform.web.security.ChangePasswordFilter.doFilter(ChangePasswordFilter.java:116)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:212)
      at com.traiana.platform.web.security.TraianaSecurityFilter.doFilter(TraianaSecurityFilter.java:136)
      at com.traiana.solcommon.web.security.CommonSecurityFilter.doFilter(CommonSecurityFilter.java:161)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.myfaces.component.html.util.MultipartFilter.doFilter(MultipartFilter.java:160)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:357)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      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:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:559)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
      at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:621)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
      at java.lang.Thread.run(Thread.java:745)

      java.lang.NoClassDefFoundError: org/apache/tomcat/InstanceManager
      at org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.initManager(Tomcat7AnnotationLifecycleProvider.java:136)
      at org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.postConstruct(Tomcat7AnnotationLifecycleProvider.java:85)
      at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:213)
      at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManagedBean(ManagedBeanResolver.java:333)
      at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:296)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
      at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:179)
      at org.apache.myfaces.el.VariableResolverToApplicationELResolverAdapter.resolveVariable(VariableResolverToApplicationELResolverAdapter.java:45)
      at com.traiana.platform.web.tools.CleanMemoryPhaseListener.handleBeanSessionMemoryClean(CleanMemoryPhaseListener.java:70)
      at com.traiana.platform.web.tools.CleanMemoryPhaseListener.afterPhase(CleanMemoryPhaseListener.java:58)
      at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:117)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:253)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at com.traiana.platform.core.beans.FacesInstanceManagerFilter.doFilter(FacesInstanceManagerFilter.java:45)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:212)
      at com.traiana.platform.web.security.SessionTrackingFilter.doFilter(SessionTrackingFilter.java:91)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at com.traiana.platform.web.security.ChangePasswordFilter.doFilter(ChangePasswordFilter.java:116)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:212)
      at com.traiana.platform.web.security.TraianaSecurityFilter.doFilter(TraianaSecurityFilter.java:136)
      at com.traiana.solcommon.web.security.CommonSecurityFilter.doFilter(CommonSecurityFilter.java:161)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.myfaces.component.html.util.MultipartFilter.doFilter(MultipartFilter.java:160)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:357)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      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:246)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:559)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
      at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:621)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.InstanceManager from [Module "deployment.DeutscheBankEar.ear:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)

       

      Does anyone have any idea how to resolve this?