Details
-
Bug
-
Resolution: Obsolete
-
Minor
-
JBossAS-5.1.0.GA
-
None
-
None
Description
If create is not called on the PersistenceUnitDeployment it'll lead to a NPE when assuming it can be found in the PersistenceUnitRegistry. This can happen if MC injection fails for some reason for example. (In this case no CEMFBuilder installed.)
java.lang.NullPointerException
at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)
at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
... 108 more