Hi Bernd,
adding the listener changed the behaviour - now the application soesn't
even deploy on the JBoss - but as far as I can see this is really a
JBoss issue (something like tables already existing while trying to
create them - seems to be some configuration from the JBoss default
configuration which causes these) - so thanks for your answers so far
:) I will take a look at this now and maybe come back to you (i.e. the
list) later.
Regards,
Stefan.
Bernd Bohmann schrieb:
Hello Stefan,
I think Tobago hasn't been initialized.
I would expect something like this in the log file:
2008-07-10 21:00:21 INFO -
org.apache.myfaces.tobago.webapp.TobagoServletContextListener:40 - ***
contextInitialized ***
Maybe you can add
<listener>
<listener-class>org.apache.myfaces.tobago.webapp.TobagoServletContextListener</listener-class>
</listener>
to your web.xml
Or a ViewRoot is missing
Regards
Bernd
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.
|