JBoss Community

Re: EJB - JBOSS - JNDI HELP!!!

created by jaikiran pai in JNDI and Naming - View the full discussion

stefano bertozzi wrote:

 

p.p.s. i have also this warn:

log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).

log4j:WARN Please initialize the log4j system properly.

For this WARN message, you are missing a log4j.properties (or log4j.xml) in your client's (the program that runs in a different JVM) classpath.

 

 

stefano bertozzi wrote:

 

downloaded JBOSS 6.0 final, unpacked it in C:\Jboss_releases.

i run it directly inside Eclipse, but it works fine also launching it from the console ( p.s. i have WIN7 64bit ).

 

 

If i exlude that i get:

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resourcefile: java.naming.factory.initial

 

This too is because of a missing jndi.properties in the client classpath. For both these issues, all you have to do is figure out how to set the classpath in Eclipse (assuming you are running the client program from Eclipse), for the client program, so that those files are picked up from the classpath.

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community