[jboss-jira] [JBoss JIRA] Resolved: (JBAS-6795) NullPointerException thrown from getEntityManagerFactory() when persistence unit is packaged with WAR

Shelly McGowan (JIRA) jira-events at lists.jboss.org
Fri Sep 24 09:55:31 EDT 2010


     [ https://jira.jboss.org/browse/JBAS-6795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shelly McGowan resolved JBAS-6795.
----------------------------------

    Fix Version/s:  6.0.0.M5
                       (was: 6.0.0.CR1)
       Resolution: Done


> NullPointerException thrown from getEntityManagerFactory() when persistence unit is packaged with WAR
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-6795
>                 URL: https://jira.jboss.org/browse/JBAS-6795
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Deployers
>            Reporter: Shelly McGowan
>            Assignee: Carlo de Wolf
>            Priority: Critical
>             Fix For:  6.0.0.M5
>
>
> 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/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list