• Post Reply Bookmark Topic Watch Topic
  • New Topic

Solution for "NoInitialContextException" error in session bean's client  RSS feed

 
rameshmca rk
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have generated a EJB Program that is session bean giving advice to the main() method class client when is requested.I got the exception "NoInitialContextException". In the client program I have specified the JNDI name "hellobean".How can I set this name in Sun Java Application Server 8.2? .There is no specification for JNDI name in the server's deploy tool. Where can I set the JNDI name?I have been trying myself for months without getting results.My bean uses local interfaces.Is it possible to specify JNDI name for local client?. help me to resolve this problem.Also I tried headfirst EJB.

Thanks and regards,
Ramesh RK
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rameshmca rk"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real full last name.

Thanks

Mark
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rameshmca rk:
I got the exception "NoInitialContextException"... How can I set this name in Sun Java Application Server 8.2?


You have first to set some vendor specific parameters to create your InitialContext. Each vendor has its own procedure for this.

I think this thread How to resolve NoInitialContextException? solves your problem.
[ February 25, 2007: Message edited by: Darya Akbari ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!