Hi,

I'm writing a very simple client atm, but something's wrong... I get
this exception:


javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at eenloketsysteem.TestClient.main(TestClient.java:16)

I've done a bit of research, and it seems that a jndi.properties file
needs to be on the classpath... However, in the jboss docs I find:

"When you use the JNDI API within the same VM that the JBoss server is
running do not have to perform any special configuration to create a
JNDI InitialContext. You simply create an InitialContext without any
arguments."

I'm using the same "java" command to launch jboss as I use to launch the
client, so I'm pretty sure this is the case... So why am I still getting
this exception?

Thanks,

Hans

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to