I try to access the JNDI service of a JBoss server from within an Eclipse 3.0 plugin.
The plugin classpath contains :
- jboss-j2ee.jar
- jnp-client.jar
- jndi.properties file conteining the follwing three lines:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=xxx.xxx.xxx.xxx
The error message I get is :
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
Does anybody have an idea where to start looking for the cause of this problem?
The same code does work as standalone code run from the command line.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839259#3839259
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839259
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user