[jboss-dev-forums] [Design of POJO Server] - Re: NPE in TransactionScopedEntityManager

ALRubinger do-not-reply at jboss.com
Wed Nov 5 01:45:00 EST 2008


That's not it; "profileservice" config has:

<bean name="XPCResolver" class="org.jboss.ejb3.stateful.EJB3XPCResolver"/>

...as expected in deployers/ejb3.deployer/META-INF/jpa-deployers-jboss-beans.xml.

The issue is that @Inject is not getting called on setXPCResolver() of PersistenceUnitDeployment before the SeamListener (ServletContext) does its initialization.  From the stacktrace when assertions are enabled:

Contexts.startup(ScopeType) line: 278	
  | ServletLifecycle.endInitialization() line: 112	
  | Initialization.init() line: 727	
  | SeamListener.contextInitialized(ServletContextEvent) line: 34	
  | StandardContext.listenerStart() line: 3910	

S,
ALR

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

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



More information about the jboss-dev-forums mailing list