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

Gurmat Bhatia do-not-reply at jboss.com
Fri Dec 17 14:25:20 EST 2010


Gurmat Bhatia [http://community.jboss.org/people/gurmat] created the discussion

"JNDI lookup issue - EJB not bound"

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

--------------------------------------------------------------
Hi All,
I am new to Jboss...We are migrating from WAS4 to JBoss4.3 and are running into issues for EJB.
For all the EJBs, it is giving below exception:

2010-12-17 09:52:29,008 ERROR [STDERR] javax.naming.NameNotFoundException: ejb not bound
2010-12-17 09:52:29,009 ERROR [STDERR]  at org.jnp.server.NamingServer.getBinding(NamingServer.java:581)
2010-12-17 09:52:29,009 ERROR [STDERR]  at org.jnp.server.NamingServer.getBinding(NamingServer.java:589)
2010-12-17 09:52:29,009 ERROR [STDERR]  at org.jnp.server.NamingServer.getObject(NamingServer.java:595)
2010-12-17 09:52:29,009 ERROR [STDERR]  at org.jnp.server.NamingServer.lookup(NamingServer.java:313)
2010-12-17 09:52:29,009 ERROR [STDERR]  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
2010-12-17 09:52:29,009 ERROR [STDERR]  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
2010-12-17 09:52:29,009 ERROR [STDERR]  at javax.naming.InitialContext.lookup(InitialContext.java:351)

Below is the JNDI look up code

InitialContext ic =
*new InitialContext();VendorOSTrackingHome home = (VendorOSTrackingHome) ic.lookup(
"ejb/BulkLoaderApp/VendorOsTracking");

JBoss-web.xml


















<?


xml version=+"1.0"+ encoding=+"UTF-8"+?><



jboss-web>







<


ejb-ref>


<ejb-ref-name>ejb/BulkLoaderApp/VendorOsTracking</ejb-ref-name>


<ejb-link>VendorOsTrackingEJB.jar#VendorOsTracking</ejb-link>


<jndi-name>VendorOsTracking</jndi-name></



ejb-ref>

</


jboss-web>

h2.  +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- jdbc (class: org.jnp.interfaces.NamingContext)
  |   |   +- Profile[link -> java:Profile] (class: javax.naming.LinkRef)
  |   +- ejb (class: org.jnp.interfaces.NamingContext)
  |   |   +- BulkLoaderApp (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- VendorOsTracking[link -> VendorOsTracking] (class: javax.naming.LinkRef)
  |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   +- realmMapping[link -> java:/jaas/customRealm] (class: javax.naming.LinkRef)
  |   |   +- subject[link -> java:/jaas/customRealm/subject] (class: javax.naming.LinkRef)
  |   |   +- securityMgr[link -> java:/jaas/customRealm] (class: javax.naming.LinkRef)
  |   |   +- security-domain[link -> java:/jaas/customRealm] (class: javax.naming.LinkRef)
I am really stuck on this...Can anyone please help us out in this??

Thanks,
Gurmat



 
*
--------------------------------------------------------------

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

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/20101217/1d8c4f3e/attachment.html 


More information about the jboss-user mailing list