0 Replies Latest reply on Jun 18, 2004 12:37 PM by rverlind

    EJB JNDI access from within an eclipse plugin

    rverlind

      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.