7 Replies Latest reply on Mar 14, 2005 4:01 AM by nicolas.jouanin

    Classpath problem when developing Eclipse Plugin project to

    charleszq

      Hi,

      I'm tring to develop a plugin project in Eclipse 3.0, a UI to remotely access JBoss EJBs. I define a method 'getContext' somewhere to get the instance of InitialContext, like this:

      Hashtable props = new Hashtable();
      props.put( "java.naming.factory.initial",
      "org.jnp.interfaces.NamingContextFactory" );
      props.put( "java.naming.provider.url", "jnp://localhost:1099" );
      props.put( "java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces" );

      return new InitialContext( props );

      The above code can run successfully in a standalone program, but when running in the PDE environment, I always get the 'ClassNotFoundException' of NamingContextFactory. But I'm sure that I've put the jbossall-client.jar in the runtime classpath of the plugin.

      Anyone here encountered the same problem? Please help.

      Thanks.

      Charles