[jboss-dev-forums] [Design of POJO Server] - Missing dependency?

adrian@jboss.org do-not-reply at jboss.com
Thu Nov 13 10:20:06 EST 2008


There appears to be a missing dependency in the jpa processing.

If I try to deploy a persistence.xml that references a datasource that doesn't exist
I get this uninformative error message:


  | Caused by: java.lang.RuntimeException: java.lang.NullPointerException
  |         at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:540)
  |         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  |         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
  |         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
  |         ... 121 more
  | Caused by: java.lang.NullPointerException
  |         at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:137)
  |         at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)
  |         at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:477)
  |         at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:528)
  | 

To reproduce, remove hsqldb-ds.xml from server/web/deploy
then go to the testsuite and do ./build.sh run-web-profile-unit

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189109#4189109

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189109



More information about the jboss-dev-forums mailing list