EJB programming & troubleshooting: javax.naming.NoInitialContextException

  1. javax.naming.NoInitialContextException (1 messages)

    I get this exception using jboss-4.0.4.GA and NetBeans 5.5. The exception raises when i do InitialContext = new InitialContext(); If instead the InitialContext() i use InitialContext(env) being env a Properties() with all the java.naming.provider.url, etc, properties everything works ok. I've put the in the classpath of the NetBeans (because i've created a new properies file with the wizard and a file was created under the same package) i've also put the in the Java/jre1.5/lib folder. But it doesn't work at all. does anybody know why? Any suggestion would be appreciated. Regards, Iago
  2. If the file is in the classpath, it will definitely pick, you can check the classpath used to run the client programme. cheers,