This content has been marked as final.
Show 3 replies
-
1. Re: Exception javax.naming.NoInitalContextException
peterj May 25, 2009 12:01 PM (in response to cffranco)Do you have a jndi.properties file? If not, you need to provide one. If you have one, please post it's contents. Also, if you have one are you sure that it is in the classpath?
-
2. Re: Exception javax.naming.NoInitalContextException
cffranco May 25, 2009 12:38 PM (in response to cffranco)Hi Peter,
Thank you for answering! ;o)
I have one jndi.properties, this is my project in eclipse.
Content the jndi.properties
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jnp.interfaces
[]´s
Claudemir. -
3. Re: Exception javax.naming.NoInitalContextException
peterj May 25, 2009 7:11 PM (in response to cffranco)That looks correct. I suspect that it is not in your classpath. Did you declare the folder containing the jndi.properties file to be a source folder?