1 Reply Latest reply on Mar 21, 2011 5:44 AM by Ma Va

    problem with JSF impl bundled in WAR

    Ma Va Newbie

      Hi,

       

      my web app contains Mojarra (1.2_08-b06-FCS)

      jsf-api.jar

      jsf-impl.jar

      and facelets:

      jsf-facelets.jar 1.1.14

       

      I added this to the web.xml to ignore JSF implementation in jboss:

          <context-param>

            <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

            <param-value>true</param-value>

          </context-param>

      So I believe no JBoss JSF packages are on the classpath.

      (jboss-6.0.0.Final)

       

      WAR also includes my own library configured like this:

          <context-param>

              <param-name>facelets.LIBRARIES</param-name>

              <param-value>/WEB-INF/myapp.taglib.xml</param-value>

          </context-param>

       

      When I access JSF URL, I get this error:

       

      02:13:02,689 SEVERE [facelets.compiler] Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar

      02:13:02,839 SEVERE [facelets.viewhandler] Error Rendering View[/gui/login.xml]: java.lang.NullPointerException

              at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) [:1.1.14]

              at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) [:1.1.14]

              at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) [:1.1.14]

              at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524) [:1.1.14]

              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567) [:1.1.14]

              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) [:3.3.2.SR1]

              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) [:3.3.2.SR1]

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109) [:1.2_08-b06-FCS]

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [:1.2_08-b06-FCS]

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [:1.2_08-b06-FCS]

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) [:1.2_08-b06-FCS]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) [:3.3.2.SR1]

              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [:3.3.2.SR1]

              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [:3.3.2.SR1]

              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [:3.3.2.SR1]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81) [:6.1.5]

              at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132) [:6.1.5]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) [:2.5.6]

              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [:2.5.6]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

       

      I don't undestand the message

      [facelets.compiler] Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar

      Could it be related to the NPE?

       

      WAR with the same jars runs in tomcat and jetty so I believe there is something wrong with configuration, not with jars.

       

      I've found this similar older post:

      http://community.jboss.org/message/326155#326155

       

      Any ideas?

       

      Thanks

      Martin