2 Replies Latest reply on Sep 20, 2002 5:35 AM by jaulin vincent

    help me

    zhaotianhai Newbie

      i run a program.there is the error message:
      javax.naming.CommunicationException. Root exception is java.rmi.UnmarshalExcep
      ion: error unmarshalling return; nested exception is:
      java.lang.ClassNotFoundException: org.jnp.interfaces.MarshalledValuePai
      (no security manager: RMI class loader disabled)
      java.lang.ClassNotFoundException: org.jnp.interfaces.MarshalledValuePair (no se
      urity manager: RMI class loader disabled)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132)
      at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.ja
      a:143)
      at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.jav
      :918)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
      at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
      at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:300)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:134)
      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at HelloClient.main(HelloClient.java:12)

        • 1. Re: help me
          J. Wolfgang Kaltz Novice

          > java.lang.ClassNotFoundException: org.jnp.interfaces.MarshalledValuePair

          It looks like this class is not in the classpath of your HelloClient program.
          Verify that you have all necessary jars in your classpath.

          • 2. Re: help me
            jaulin vincent Newbie

            org.jnp.interfaces.MarshalledValuePair is in JBOSS/server/default/lib/jnpserver.jar.
            to add jnpserver.jar to the place of jnp-client.jar in the classpath (in the case, or you use jboss and tomcat separately, not when you use tomcat-service).

            version: Jboss-3.0.0_tomcat-4.0.3

            vince.