0 Replies Latest reply on Nov 11, 2003 10:22 AM by Horatiu Stanciu

    client in class ok, client in jar fails to bind

    Horatiu Stanciu Newbie

      Hi!

      I deployed a component on JBoss, all was ok. When I tried to pack the client also in a jar file I receive this error:

      javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
      Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory

      The difference between the two start bat files is not great, the both have included the same jars in class path, jnp-client.jar that contains the unfounded org.jnp.interfaces.NamingContextFactory is included. I don't get why this behavior.


      The bat to start the client for the two cases are:

      1. for the class client:

      cmd /k java -jar -cp .;D:\java\jboss-3.2.2RC4\client\jnp-client.jar;D:\java\jboss-3.2.2RC4\client\jboss-client.jar;D:\java\jboss-3.2.2RC4\client\jboss-j2ee.jar;D:\java\jboss-3.2.2RC4\client\log4j.jar;D:\java\jboss-3.2.2RC4\client\jboss-common-client.jar;D:\java\jboss-3.2.2RC4\client\jboss-system-client.jar;D:\java\jboss-3.2.2RC4\client\jbosssx-client.jar;D:\java\jboss-3.2.2RC4\client\jboss-transaction-client.jar;D:\Projects\Work\Teste\JBoss5\build\HelloWorld.jar;D:\java\j2sdkee1.3.1\lib\j2ee.jar; home.stanciu.ejb.hello.HelloWorldClient


      2. for the jar archive:

      cmd /k java -jar -cp .;D:\java\jboss-3.2.2RC4\client\jnp-client.jar;D:\java\jboss-3.2.2RC4\client\jboss-client.jar;D:\java\jboss-3.2.2RC4\client\jbossall-client.jar;D:\java\jboss-3.2.2RC4\client\jboss-j2ee.jar;D:\java\jboss-3.2.2RC4\client\log4j.jar;D:\java\jboss-3.2.2RC4\client\jboss-common-client.jar;D:\java\jboss-3.2.2RC4\client\jboss-system-client.jar;D:\java\jboss-3.2.2RC4\client\jbosssx-client.jar;D:\java\jboss-3.2.2RC4\client\jboss-transaction-client.jar;D:\Projects\Work\Teste\JBoss5/build\HelloWorld.jar;D:\java\j2sdkee1.3.1\lib\j2ee.jar HelloClient.jar

      Thank you very much for any idea,

      H