• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Lookup problem on OC4J

 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have successfully deployed Stateless Session Bean on OC4J.
I am trying to lookup the EJB through some Test code given below:

hostname, port number and JNDI name of EJB changed intentionally.

However I am getting following exception when I execute this code
at Object obj=ctx.lookup("OrderBean"); line




EJB deployment is successful and when i checked the log i could see that clearly. also JNDI name of EJB is correct and hostname and port number is correct and I could access that through code as well as telnet.


Could somebody please point out what is the issue with this.

Thanks,
Shriniwas
[ July 31, 2008: Message edited by: Scott Selikoff ]
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure about why you can't load the home class. Make sure your home interface is on the client classpath, though.
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike,

I do have home interface on the client classpath.

Thanks,
Shriniwas
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check wheather JNDI has bound with the name you are requesting?
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I deleted all the class files rebuild the application and created new EJB jars and it worked. There was no special step I have performed compared to when I posted this issue.

It did work finally. Really surprising.

Thanks to all

Shriniwas
 
Yogesh Gandhi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right, rebuilding the project made it work for me as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic