JBoss Community

Re: Local lookup failing

created by shinosha in JNDI and Naming - View the full discussion

So I put my properties file in my src folder of my .war and it looks like this :

 

endpoint.name=client-endpoint

remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false

 

remote.connections=default

 

remote.connection.default.host=127.0.0.1

remote.connection.default.port = 4447

remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false

 

remote.connection.default.username=Shinosha

remote.connection.default.password=*****

 

 

I of course have ejb-client.jar in my build path. But it's still asking me for an initial context :

 

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(Unknown Source)

 

What have I done wrong here ?

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community