3 Replies Latest reply on Dec 30, 2008 1:28 PM by nickarls

    WebBeans example library

    thejavafreak

      Hi all,


      Would it be possible to distribute facelets 1.1.5B1 in the distribution, or define it in the example's pom.xml version element or in the README file so user that is going to try out the examples won't get this error:



      2008-12-30 12:59:22,390 DEBUG [facelets.factory] (http-127.0.0.1-8080-2) Resource-Url from external context: jndi:/localhost/webbeans-1.0.0.ALPHA1/home.xhtml
      2008-12-30 12:59:22,390 DEBUG [facelets.factory] (http-127.0.0.1-8080-2) Creating Facelet for: jndi:/localhost/webbeans-1.0.0.ALPHA1/home.xhtml
      2008-12-30 12:59:22,390 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Initializing
      2008-12-30 12:59:22,578 ERROR [facelets.compiler] (http-127.0.0.1-8080-2) Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar
      2008-12-30 12:59:22,578 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Initialization Successful
      2008-12-30 12:59:22,578 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Starting Unit: TextUnit[0] and adding it to parent: com.sun.facelets.compiler.CompilationUnit@293404
      2008-12-30 12:59:22,578 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Namespace Pushed : http://www.w3.org/1999/xhtml
      2008-12-30 12:59:22,578 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Starting Unit: com.sun.facelets.compiler.NamespaceUnit@c13eca and adding it to parent: TextUnit[0]
      2008-12-30 12:59:22,578 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Namespace Pushed ui: http://java.sun.com/jsf/facelets
      2008-12-30 12:59:22,578 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Namespace Pushed h: http://java.sun.com/jsf/html
      2008-12-30 12:59:22,578 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Namespace Pushed f: http://java.sun.com/jsf/core
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @6,46 <html>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Starting Unit: TextUnit[0] and adding it to parent: com.sun.facelets.compiler.NamespaceUnit@c13eca
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @8,43 <ui:composition>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Composition Found, Popping Parent Tags
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Starting Unit: /home.xhtml @8,43 <ui:composition> and adding it to parent: com.sun.facelets.compiler.NamespaceUnit@1534f4f
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) New Namespace and [Trimmed] TagUnit pushed
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Starting Unit: TextUnit[0] and adding it to parent: /home.xhtml @8,43 <ui:composition>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @9,31 <ui:define>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @11,22 <h:messages>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @12,17 <h:form>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @13,68 <h:panelGrid>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @14,47 <h:outputLabel>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @15,77 <h:inputText>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @16,47 <h:outputLabel>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @17,77 <h:inputText>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @19,99 <h:commandButton>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Tag Pushed: /home.xhtml @20,100 <h:commandButton>
      2008-12-30 12:59:22,593 DEBUG [facelets.compiler] (http-127.0.0.1-8080-2) Finished Unit: TextUnit[0]
      2008-12-30 12:59:22,609 ERROR [facelets.viewhandler] (http-127.0.0.1-8080-2) Error Rendering View[/home.xhtml]
      java.lang.NullPointerException
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
           at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
           at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:905)
           at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:595)
           at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2036)
           at java.lang.Thread.run(Thread.java:619) 



      It took me quite a while to figure out the problems. Other than that, great work guys.


      Thanks guys.