-
1. Re: JNDI problem- lookup for an ejb object: javax.naming.Nam
divine_comedy Oct 7, 2003 4:49 PM (in response to mafuertes)No 1 : Make sure that your jboss is up and running and that the jndi.properties are correct. Are you running Tomcat as part of JBoss ?
No 2 : Make sure that the jndi name is in jboss.xml for your ejb. -
2. Re: JNDI problem- lookup for an ejb object: javax.naming.Nam
mafuertes Oct 8, 2003 3:46 AM (in response to mafuertes)Thank you for your answer.
I have the EJB in the jboss.xml file, and my jndi.properties (in C:\jboss-3.0.8_tomcat-4.1.24\server\default\conf) is:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://localhost:1099
And I have the tomcat inside the Jboss.
Any idea?
Thanks. -
3. Re: JNDI problem- lookup for an ejb object: javax.naming.Nam
darranl Oct 9, 2003 2:54 AM (in response to mafuertes)The original jndi.properties in 'C:\jboss-3.0.8_tomcat-4.1.24\server\default\conf'
would have looked like
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
# Do NOT uncomment this line as it causes in VM calls to go over
# RMI!
#java.naming.provider.url=localhost
The line that says 'Do NOT uncomment this line as it causes in VM calls to go over RMI!' could also be phrased :-
Do not remove the '#' in front of 'java.naming.provider.url'
It could also be phrased
Do not add a 'java.naming.provider.url' to this file.
Or quite simply it could be phrased
DO NOT EDIT THIS FILE
Could someone get this file changed in CVS to make the comment clearer, I have lost count of the number of times messages have been posted relating to this file being edited. -
4. Re: JNDI problem- lookup for an ejb object: javax.naming.Nam
adrian.brock Oct 9, 2003 6:29 AM (in response to mafuertes)Done here is the new version:
# DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING
#
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
Regards,
Adrian -
5. Re: JNDI problem- lookup for an ejb object: javax.naming.Nam
mafuertes Oct 9, 2003 12:57 PM (in response to mafuertes)Adrian,
Thank you very much.
I take it into account. It seems to work now after modifying it and some other changes.
Regards,
Miguel