This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Intial Context Problem on Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Intial Context Problem on Jboss " Watch "Intial Context Problem on Jboss " New topic

Intial Context Problem on Jboss


Joined: May 15, 2002
Posts: 13
I am new to Jboss. I have written Hello World session bean. And deployed successfully. I have also written a simple client application. but while running Client application I am facing following exception.
Javax.naming.NoIntialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: Java.naming.factory.intial
To rectify this I have Taken following actions.But couldnt find any solution
1.I wrote a files as following.
java.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces
I did put path of this file in my classpath Environment variable
2.I did put folloing files in class path.
C:\Hello World\resources\
I am working on jboss3.0.0 and Tomcat. Operating System is Windows 2000 server.
Actually this example is from ? Developing EJB2.0 Components by Praveen Tulachan?s book Chapter 4(

sripad devaraju
jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Well put in the folder where u have putten client file of your ejb.
Jawwad Ahmed
I agree. Here's the link:
subject: Intial Context Problem on Jboss
It's not a secret anymore!