JNDI lookup issue - EJB not bound
gurmat Dec 17, 2010 2:25 PMHi 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 <? ?> < > < > > > > </ > </ >
I am really stuck on this...Can anyone please help us out in this?? Thanks, Gurmat +- 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)