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

    EJB JNDI access from within an eclipse plugin

    Ruben Verlinden Newbie

      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:

      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.