2 Replies Latest reply on Aug 8, 2014 11:34 AM by fpelliccia

    Migration from jboss AS 5 to jboss-eap 6.1, RichFaces Problem

    fpelliccia

      Hello,

      I'm performing a migration of a JSF-based portal, from JBoss AS 5-1.GA to Jboss EAP 6.1.0 GA (AS 7.2.0.Final-redhat-8)

       

      I'm using the following libraries: in webapp/WEB-INF/lib

      jsf-facelets-1.1.15.jar

      jsfcl-1.0.jar

      jsflot-0.7.0.jar

      portletbridge-api-2-1-0.FINAL.jar

      portletbridge-impl-2.1.0.FINAL.jar

      richfaces-api-3.3.3.Final.jar

      richfaces-impl-3.3.3.Final.jar

      richfaces-ui-3.3.3.Final.jar

       

      in my web.xml I have (in addition of some others) in particular the following parameter:

      <context-param>
         <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
         <param-value>true</param-value>

          </context-param>

       

      In Jboss 5 the application worked as expected.

       

      Now that I'm facing the migration to Jboss EAP 6.1, with the same used libraries I have some exceptions in the server.log file, related to JSF :

      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111) [pc-portlet.jar:2.4.0.Final]

          at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:165) [pc-portlet.jar:2.4.0.Final]

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111) [pc-portlet.jar:2.4.0.Final]

          at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:905) [exo.portal.webui.portal.jar:3.5.10-PLF]

          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:190) [exo.portal.webui.portal.jar:3.5.10-PLF]

          ... 263 more

      Caused by: javax.portlet.faces.BridgeException: java.lang.NullPointerException

          at org.jboss.portletbridge.richfaces.RichFacesStrategy.finishResponse(RichFacesStrategy.java:179)

          at org.jboss.portletbridge.richfaces.RichFacesStrategy.afterRenderRequest(RichFacesStrategy.java:260)

          at org.jboss.portletbridge.BridgeStrategyWrapper.afterRenderRequest(BridgeStrategyWrapper.java:105)

          at org.jboss.portletbridge.BridgeStrategyWrapper.afterRenderRequest(BridgeStrategyWrapper.java:105)

          at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:720)

          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:598)

          ... 327 more

      Caused by: java.lang.NullPointerException

          at org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:401)

          at org.jboss.portletbridge.richfaces.RichFacesStrategy.finishResponse(RichFacesStrategy.java:162)

          ... 332 more

       

      during the startup of Jboss AS, I saw some warnings in the log file like this one:

      10:51:12,746 WARN  [org.jboss.as.jsf] (MSC service thread 1-4) JBAS012603: Unknown JSF version 'WAR_BUNDLES_JSF_IMPL'.  Default version 'main' will be used instead.

      10:51:12,756 WARN  [org.jboss.as.jsf] (MSC service thread 1-6) JBAS012603: Unknown JSF version 'WAR_BUNDLES_JSF_IMPL'.  Default version 'main' will be used instead.

       

      and this one:

       

      10:25:40,671 WARN  [org.ajax4jsf.webapp.BaseXMLFilter] (ServerService Thread Pool -- 69) This version of RichFaces implementation compatible for JSF1.2, but running under JSF2.0

       

       

      So, I suppose that Jboss is not using my JSF implementation

       

      From what I know, this was related to an issue (impossibility to use the jsf bundled version in the application rather than the jboss jsf subsystem) that should have been resolved in an earlier version of jboss than mine (7.1 I think, is correct?).

       

      Do you think that the exception that I got could be related to the fact of JBoss is not using my JSF version? (I don't know the reason why jsf libraries are into WEB-INF/lib instead of using the bundled libraries of the AS because this is a pre-existing application that I just have to migrate)

       

      Anyone knows how I can tell the container to use my JSF libraries?

       

       

      Thank you very much.

       

      Regards

       

      Federico