aspose file tools
The moose likes EJB and Other Java EE Technologies and the fly likes javax.naming.NamingException while lookup for JNDI Name of EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "javax.naming.NamingException while lookup for JNDI Name of EJB" Watch "javax.naming.NamingException while lookup for JNDI Name of EJB" New topic
Author

javax.naming.NamingException while lookup for JNDI Name of EJB

Hitesh Kumar Modi
Greenhorn

Joined: Aug 31, 2011
Posts: 4

Hi,

I am new to Websphere. I have developed a simple EJB and deployed in Websphere v8. I deployed it by creating EAR File.
Then I developed a standalone java client and trying to call ejb. But it fails while doing lookup for JNDI Name of EJB.




The Exception stack trace is:




Kindly suggest me what should I do to make it work.
Thanks in advance.
Kiran Yadav
Ranch Hand

Joined: Nov 02, 2011
Posts: 33

After deployment, go to deployed module.
Open its properties and set the JNDI name for the EJB.
Hitesh Kumar Modi
Greenhorn

Joined: Aug 31, 2011
Posts: 4

I have already given JNDI name as "app/advice".....
Kiran Yadav
Ranch Hand

Joined: Nov 02, 2011
Posts: 33

You have accessing the EJB with JNDI name= "app/advice".

You have to map name "app/advice" to JNDI tree through Admin console. i.e. after deployment.

Please see attachment.
[Thumb - serverConfig.JPG]
 Filename serverConfig.JPG [Disk] Download
 Description test
 Filesize 74 Kbytes
 Downloaded:  12 time(s)

Hitesh Kumar Modi
Greenhorn

Joined: Aug 31, 2011
Posts: 4

I have already done that, bro!
[Thumb - config.png]
 Filename config.png [Disk] Download
 Description
 Filesize 18 Kbytes
 Downloaded:  7 time(s)

Kiran Yadav
Ranch Hand

Joined: Nov 02, 2011
Posts: 33

You have provided provider url=corbaloc:iiop:localhost:2809,

Is it the correct port? Please verify it, as error log gives out : java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
Hitesh Kumar Modi
Greenhorn

Joined: Aug 31, 2011
Posts: 4

Yes, 2809 is the Boot strap port as specified in "serverindex.xml" .
 
 
subject: javax.naming.NamingException while lookup for JNDI Name of EJB
 
Threads others viewed
initial context problem
Error while getting JMX Connector: "ORB_CONNECT_ERROR (5) - couldn't get Server Subcontract"
Websphere EJB issue. Same application working fine in JBOSS. need help.
JNDI exception
Datasource lookup on remote Websphere Application Server
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture