File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Runtime error in EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Runtime error in EJB" Watch "Runtime error in EJB" New topic
Author

Runtime error in EJB

srinivasarao komatipalli
Greenhorn

Joined: Mar 16, 2007
Posts: 5
I am getting the following error when I am running Client program 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
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

You should become familiar with Bea's online documentation. It is searchable, so answers are easy to find, for instance:
The property java.naming.factory.initial is used to specify how the InitialContext is created. To use WebLogic JNDI, you must always set the java.naming.factory.initial property to weblogic.jndi.WLInitialContextFactory. This setting identifies the factory that actually creates the Context.

Weblogic JNDI


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Runtime error in EJB
 
Similar Threads
Tomcat Error
ORA-02291: integrity constraint, can not find parent key
cannot find the declaration of element taglib
Integrity constraint in Hibernate
HOw to get session variables between portlets ?