2 Replies Latest reply on May 2, 2002 3:57 AM by kumar

    Help Me !!! Error While Running Client Program

      Hi,

      Iam pretty new to JBOSS 2.4 plz help in setting the paths required to run.

      I had able to deploy my jar file in deploy directory and Server also deploying the bean . but when i running the client program iam getting this error

      C:\Hello\hellojb>java hemo.HelloClient
      Exception in thread "main" javax.naming.NoInitialContextException: Cannot instan
      tiate class: org.jnp.interfaces.NamingContextFactory. Root exception is java.la
      ng.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
      at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.init(Unknown Source)
      at javax.naming.InitialContext.(Unknown Source)
      at hemo.HelloClient.main(HelloClient.java:19)


      Makham

        • 1. Re: Help Me !!! Error While Running Client Program

          You will find the jars you need in
          ${jboss.home}/client

          For this one it is jnp-client.jar

          Regards,
          Adrian

          • 2. Re: Help Me !!! Error While Running Client Program

            Hi,

            Thank You Adrian !

            But iam again struck with one more prob's

            after your answere i tried to run my client program but this time error is

            Exception in thread "main" javax.naming.CommunicationException. Root exception
            is java.lang.ClassNotFoundException: org.jboss.ejb.plugins.jrmp13.interfaces.Hom
            eProxy (no security manager: RMI class loader disabled)
            at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
            at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
            at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
            at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)
            at java.io.ObjectInputStream.readObject(Unknown Source)
            at java.io.ObjectInputStream.readObject(Unknown Source)
            at java.io.ObjectInputStream.inputObject(Unknown Source)
            at java.io.ObjectInputStream.readObject(Unknown Source)
            at java.io.ObjectInputStream.inputClassFields(Unknown Source)
            at java.io.ObjectInputStream.defaultReadObject(Unknown Source)
            at java.io.ObjectInputStream.inputObject(Unknown Source)
            at java.io.ObjectInputStream.readObject(Unknown Source)
            at java.io.ObjectInputStream.readObject(Unknown Source)
            at java.rmi.MarshalledObject.get(Unknown Source)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
            at javax.naming.InitialContext.lookup(Unknown Source)
            at hemo.HelloClient.main(HelloClient.java:20)


            Could You ince again help me in this regard


            Thank You

            rgds
            Makham