[jboss-user] [JNDI and Naming] - Re: JNDI lookup issue - EJB not bound

Sam Tsang do-not-reply at jboss.com
Mon Dec 20 20:00:02 EST 2010


Sam Tsang [http://community.jboss.org/people/newguy2010] created the discussion

"Re: JNDI lookup issue - EJB not bound"

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

--------------------------------------------------------------
I have similar issue but I am using JBoss 6 CR1 with EJB 2.1
> Caused by: javax.naming.NameNotFoundException: EBMyBean not bound
> at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) [:5.0.5.Final]
>     at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) [:5.0.5.Final]
>     at org.jnp.server.NamingServer.getObject(NamingServer.java:785) [:5.0.5.Final]
>     at org.jnp.server.NamingServer.lookup(NamingServer.java:443) [:5.0.5.Final]
>     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) [:5.0.5.Final]
>     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]
>     at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_22]
>     at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154) [:3.0.5.RELEASE]
>     at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87) [:3.0.5.RELEASE]
>     at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) [:3.0.5.RELEASE]
>     at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) [:3.0.5.RELEASE]
>     at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95) [:3.0.5.RELEASE]
>     at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105) [:3.0.5.RELEASE]
>     at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201) [:3.0.5.RELEASE]
>     at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187) [:3.0.5.RELEASE]
>     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [:3.0.5.RELEASE]
> 
>     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) [:3.0.5.RELEASE]
>     ... 114 more
I tried to look it up through JMX console but I couldn't find the jndi name of the bean. However in the deployment log it said
09:19:03,062 INFO  [EjbDeployer] installing bean: ejb/myapp.jar#EBMyBean,uid1165664
09:19:03,062 INFO  [EjbDeployer]   with dependencies:
09:19:03,062 INFO  [EjbDeployer]   and supplies:
09:19:03,062 INFO  [EjbDeployer]     jndi:EBMyBean
09:19:03,062 INFO  [EjbDeployer]     jndi:local/EBMyBean at 11368117

so I am confused.
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101220/b5a4b68a/attachment-0001.html 


More information about the jboss-user mailing list