-
Bug
-
Resolution: Won't Do
-
Critical
-
None
-
JBossAS-5.0.0.CR2
-
High
Our application EAR has Web and App Module. The App Module has a stateless bean which needs to be called from the ServletContextListener of the WebModule. The jndi lookups return the EJBObject of the corresponding bean but when the method is invoked exception is raised as follows.
Caused by: java.lang.NullPointerException
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:420)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:97)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy192.invoke(Unknown Source)
at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:125)
After the EAR is deployed the EJB call can be successfully made through any servlet but fails if made from ServletContextListener