Frank Langelage [http://community.jboss.org/people/lafr] created the discussion

"Session Bean not in JNDI"

To view the discussion, visit: http://community.jboss.org/message/559900#559900

--------------------------------------------------------------
I'm trying an upgrade from 4.24 to 6.00.M4.

I have a problem with  class MessageEraser.

@Stateless
public class MessageEraser extends EraserBase implements TimedObject, 
MessageEraserLocal
{
...
}

MessageEraserLocal is:
@Local
public interface MessageEraserLocal extends EraserBaseLocal
{
...
}

Base class EraserBase implements some common methods:
public abstract class EraserBase implements EraserBaseLocal
{
...
}

MessageEraser is deployed:
22:15:16,300 INFO  [JBossASKernel] installing bean: 
jboss.j2ee:ear=fey2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=MessageEraser,service=EJB3
22:15:16,300 INFO  [JBossASKernel]   with dependencies:
22:15:16,301 INFO  [JBossASKernel]   and demands:
22:15:16,301 INFO  [JBossASKernel]  
jndi:fey2e-lafr-sb2000-ipc/ejb-session-core.jar/MessageEraser!biz.mbisoftware.fn.ejb.session.core.MessageEraserLocal;
 Required: Described
22:15:16,302 INFO  [JBossASKernel]  
jndi:fey2e-lafr-sb2000-ipc/ejb-session-common.jar/Version!biz.mbisoftware.fn.ejb.session.common.VersionLocal;
 Required: Described
22:15:16,302 INFO  [JBossASKernel]  jboss.ejb:service=EJBTimerService; 
Required: Described
22:15:16,302 INFO  [JBossASKernel]  
jndi:fey2e-lafr-sb2000-ipc/ejb-session-core.jar/MessageSink!biz.mbisoftware.fn.ejb.session.core.MessageSinkLocal;
 Required: Described
22:15:16,303 INFO  [JBossASKernel]  
jndi:fey2e-lafr-sb2000-ipc/ejb-session-core.jar/TaskHandler!biz.mbisoftware.fn.ejb.session.core.TaskHandlerLocal;
 Required: Described
22:15:16,303 INFO  [JBossASKernel]  
jndi:fey2e-lafr-sb2000-ipc/ejb-session-common.jar/MbiFxtxtFacade!biz.mbisoftware.fn.ejb.session.common.MbiFxtxtFacadeLocal;
 Required: Described
22:15:16,303 INFO  [JBossASKernel]  
persistence.unit:unitName=fey2e-lafr-sb2000-ipc.ear/ejb-entity.jar#fey2e-lafr-sb2000-ipc;
 Required: Described
22:15:16,304 INFO  [JBossASKernel]   and supplies:
22:15:16,304 INFO  [JBossASKernel]  
jndi:fey2e-lafr-sb2000-ipc/ejb-session-core.jar/MessageEraser!biz.mbisoftware.fn.ejb.session.core.MessageEraserLocal
22:15:16,305 INFO  [JBossASKernel]  
jndi:fey2e-lafr-sb2000-ipc/ejb-session-core.jar/MessageEraser!local
22:15:16,305 INFO  [JBossASKernel]  
Class:biz.mbisoftware.fn.ejb.session.core.MessageEraserLocal
22:15:16,305 INFO  [JBossASKernel]  jndi:MessageEraser
22:15:16,306 INFO  [JBossASKernel] Added 
bean(jboss.j2ee:ear=fey2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=MessageEraser,service=EJB3)
 to KernelDeployment of: ejb-session-core.jar

But looking at the global JNDI view afterwards it's not there.

The class StartupTimers want's to use MessageEraser through injection:
public class StartupTimers implements ServletContextListener
{
    @EJB
    private MessageEraserLocal messageEraser;
....
}

But the injection fails:
22:16:16,867 ERROR [[/mbi/fey2e-lafr-sb2000-ipc/web]] Error configuring 
application listener of class biz.mbisoftware.fn.web.StartupTimers: 
java.lang.RuntimeException: Unable to inject jndi dependency: 
env/biz.mbisoftware.fn.web.StartupTimers/messageEraser into property 
biz.mbisoftware.fn.web.StartupTimers.messageEraser: 
MessageEraser!biz.mbisoftware.fn.ejb.session.core.MessageEraserLocal not bound
    at 
org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:82) 
[:1.5.0]
    at 
org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99) 
[:1.5.0]
    at 
org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:395)
 [:6.0.0-SNAPSHOT]
    at 
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:291)
 [:6.0.0-SNAPSHOT]
    at 
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:285)
 [:6.0.0-SNAPSHOT]
    at 
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:268)
 [:6.0.0-SNAPSHOT]
    at 
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3319)
 [:]
    at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:]
    at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:299)
 [:6.0.0-SNAPSHOT]
    at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:138)
 [:6.0.0-SNAPSHOT]
    at 
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
 [:6.0.0-SNAPSHOT]
    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) 
[:6.0.0-SNAPSHOT]
    at org.jboss.web.deployers.WebModule.start(WebModule.java:95) 
[:6.0.0-SNAPSHOT]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_21]
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
[:1.6.0_21]
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [:1.6.0_21]
    at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_21]
    at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
 [:6.0.0.Beta5]
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) 
[:6.0.0.Beta5]
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.Beta5]
    at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) 
[:6.0.0.Beta5]
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) 
[:6.0.0.Beta5]
    at 
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) 
[:2.2.0.Alpha10]
    at $Proxy41.start(Unknown Source)   at 
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)
 [:2.2.0.Alpha10]

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/559900#559900]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to