• Post Reply Bookmark Topic Watch Topic
  • New Topic

runtime error in EJB Client program

 
srinivasarao komatipalli
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error when I am running Client program to call the Bean in OC4J server

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wondering if the following could help :
http://forum.java.sun.com/thread.jspa?threadID=5012497&tstart=0
 
srinivasarao komatipalli
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for replying me.

But I dont have those j2ee.jar and appserv-rt.jar files in my system.
Where should I get those files.
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oracle has written quite a number of docs on the subject. Start here, for example.
 
Debu Panda
author
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See a numerous EJB 3 samples that uses application client at http://www.oracle.com/technology/ejb3

If you are looking earlier versions see a lot of examples

http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!