3 Replies Latest reply on Nov 13, 2008 4:49 PM by Carlo de Wolf

    Missing dependency in jpa processing?

    Adrian Brock Master

      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