[jboss-jira] [JBoss JIRA] Moved: (JBAS-6795) NullPointerException thrown from getEntityManagerFactory() when persistence unit is packaged with WAR
Shelly McGowan (JIRA)
jira-events at lists.jboss.org
Thu Apr 16 12:05:24 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAS-6795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shelly McGowan moved EMBJOPR-141 to JBAS-6795:
----------------------------------------------
Project: JBoss Application Server (was: Embedded Jopr)
Key: JBAS-6795 (was: EMBJOPR-141)
Affects Version/s: (was: 1.2)
Security: Public
> NullPointerException thrown from getEntityManagerFactory() when persistence unit is packaged with WAR
> -----------------------------------------------------------------------------------------------------
>
> Key: JBAS-6795
> URL: https://jira.jboss.org/jira/browse/JBAS-6795
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Shelly McGowan
> Assignee: Shelly McGowan
>
> 2009-04-15 00:26:45,056 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (ResourceContainer.invoker.nonDaemon-12) deploy, ctxPath=/web_pkg_standalone_component_web
> 2009-04-15 00:26:45,082 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (ResourceContainer.invoker.nonDaemon-12) ENC setup failed
> java.lang.NullPointerException
> at org.jboss.injection.PersistenceUnitHandler.getEntityManagerFactory(PersistenceUnitHandler.java:172)
> at org.jboss.injection.PersistenceUnitHandler.getFactory(PersistenceUnitHandler.java:163)
> at org.jboss.injection.PuEncInjector.inject(PuEncInjector.java:54)
> at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
> 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:310)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
> at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
> This is reproducable with the following packaging scenarios:
> persistence unit in the WEB-INF/classes directory of a standalone .war
> persistence unit in the WEB-INF/lib directory of a standalone .war
> persistence unit in the lib directory of an enterprise archive containing a .war and and ejb.jar
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list