myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Hedtfeld <myfa...@xsoftahead.net>
Subject Re: [Tobago] NullPointerException on first request on JBoss 5.0.0.RC1
Date Thu, 10 Jul 2008 18:36:37 GMT
Should have added before: I'm using tobago 1.1.0-SNAPSHOT :)

Stefan Hedtfeld schrieb:
> Hi,
>
> here is some more information. The key which is going to be looked up 
> is "com.sun.faces.CANT_INSTANTIATE_CLASS", and while trying to access 
> the view root the following WARNing is logged out:
>
> JSF1004: Cannot instantiate component of type javax.faces.ViewRoot
>
> The JSF implementation shipped with JBoss 5.0 is the following (taken 
> from the manifest file):
>
> Implementation-Title: Sun Microsystems JavaServer Faces Implementation
> Specification-Vendor: JBoss (http://www.jboss.org/)
> Specification-Version: 1.2MR1
> Implementation-Vendor-Id: com.sun
> Extension-Name: com.sun.faces
> Implementation-Version: 1.2_08-b06-FCS
> Implementation-Vendor: Sun Microsystems, Inc.
> Implementation-URL: http://www.jboss.org/
>
> Anyone having experience in running tobago with JSF RI 1.2?
>
> Regards,
>
> Stefan.
>
> Stefan Hedtfeld schrieb:
>> Hi,
>>
>> I try to get tobago running on JBoss 5.0.0.RC1. I create my ear 
>> containing the web application, some of my on libs and external libs 
>> (using maven2) and deployment works fine. But during the first 
>> request I get a NullPointerException in 
>> TobagoResourceBundle.handleGetObject (see below). It seems to me that 
>> something is not setup correctly. As JBoss is bundled with the JSF RI 
>> I had to solve some problems before getting this far, so I guess I 
>> simply missed something here. Any ideas?
>>
>> 2008-07-09 20:19:47,083 ERROR 
>> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/myapp].[Faces 
>> Servlet]] (http-127.0.0.1-8080-2:) Servlet.service() for servlet 
>> Faces Servlet threw exception
>> java.lang.NullPointerException
>>        at 
>> org.apache.myfaces.tobago.context.TobagoResourceBundle.handleGetObject(TobagoResourceBundle.java:44)

>>
>>        at java.util.ResourceBundle.getObject(ResourceBundle.java:378)
>>        at java.util.ResourceBundle.getString(ResourceBundle.java:344)
>>        at 
>> com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:162)
>>        at 
>> com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:133)
>>        at 
>> com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:351)

>>
>>        at 
>> com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1029) 
>>
>>        at 
>> com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:550)

>>
>>        at 
>> com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:332) 
>>
>>        at 
>> org.apache.myfaces.tobago.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:57)

>>
>>        at 
>> com.sun.facelets.FaceletViewHandler.createView(FaceletViewHandler.java:799) 
>>
>>        at 
>> org.apache.myfaces.tobago.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:110)

>>
>>        at 
>> org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.executePhase(TobagoLifecycle.java:105)

>>
>>        at 
>> org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.execute(TobagoLifecycle.java:79)

>>
>>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
>>        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:183)

>>
>>        at 
>> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)

>>
>>        at 
>> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90) 
>>
>>        at 
>> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)

>>
>>        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:157)

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

>>
>>        at 
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325) 
>>
>>        at 
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) 
>>
>>        at 
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)

>>
>>        at 
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>        at java.lang.Thread.run(Thread.java:619)
>>
>>
>> Regards,
>>
>> Stefan.
>>
>
>


Mime
View raw message