2 Replies Latest reply on Feb 27, 2002 6:38 AM by Aqil

    javax.naming.CommunicationException......how to solve this p

    Aqil Newbie

      i dont know why but the following exception occures while compling JMS samples,plz help me to find what should i do ?
      =========================================
      C:\jboss\\build>ant jms-hello-subscriber
      Buildfile: build.xml

      validate-servlet:

      validate-jboss:

      fail_if_not_valid:

      init:
      [echo] Using JBoss directory=C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss
      [echo] Using base classpath=C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\client
      \ejb.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\client\jaas.jar;C:\Jetty\JBoss
      -2.2.2_Jetty-3.1.RC5\jboss\client\jbosssx-client.jar;C:\Jetty\JBoss-2.2.2_Jetty-
      3.1.RC5\jboss\client\jboss-client.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\c
      lient\jnp-client.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty\lib\javax.servlet.
      jar
      [echo] Using Source directory=C:\JbossTom\jboss\Examples\documentation-exam
      ple\examples
      [echo] Using Build directory=C:\JbossTom\jboss\Examples\documentation-examp
      le\examples/build-examples

      jms-hello-subscriber:

      validate:

      fail_if_not_valid:

      init:
      [echo] Using JBoss directory=C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss
      [echo] Using base classpath=C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\client
      \ejb.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\client\jaas.jar;C:\Jetty\JBoss
      -2.2.2_Jetty-3.1.RC5\jboss\client\jbosssx-client.jar;C:\Jetty\JBoss-2.2.2_Jetty-
      3.1.RC5\jboss\client\jboss-client.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\c
      lient\jnp-client.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty\lib\javax.servlet.
      jar
      [echo] Using Source directory=C:\JbossTom\jboss\Examples\documentation-exam
      ple\examples
      [echo] Using Build directory=C:\JbossTom\jboss\Examples\documentation-examp
      le\examples/build-examples

      compile:

      jms-hello-subscriber:
      [echo] Using resources from: C:\JbossTom\jboss\Examples\documentation-examp
      le\examples/resources

      [java] An exception occured while testing HelloPublisher: javax.naming.Comm
      unicationException [Root exception is java.rmi.UnmarshalException: error unmarsh
      alling return; nested exception is:
      [java] java.lang.ClassNotFoundException: org.jboss.mq.referenceable.Obj
      ectRefAddr (no security manager: RMI class loader disabled)]
      [java] javax.naming.CommunicationException. Root exception is java.rmi.Unm
      arshalException: error unmarshalling return; nested exception is:
      [java] java.lang.ClassNotFoundException: org.jboss.mq.referenceable.Obj
      ectRefAddr (no security manager: RMI class loader disabled)
      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:169)
      [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:34
      9)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:33
      3)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:42
      1)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:33
      3)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      [java] at org.jboss.docs.jms.client.HelloSubscriber.(HelloSubscri
      ber.java:72)
      [java] at org.jboss.docs.jms.client.HelloSubscriber.main(HelloSubscribe
      r.java:133)
      [java] Caused by: java.lang.ClassNotFoundException: org.jboss.mq.referencea
      ble.ObjectRefAddr (no security manager: RMI class loader disabled)
      [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368
      )
      [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159
      )
      [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.jav
      a:629)
      [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:
      257)
      [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputSt
      ream.java:200)
      [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.
      java:1503)
      [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.jav
      a:1425)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1616)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1264)
      [java] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:15
      93)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1261)
      [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
      .java:1830)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
      va:1756)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1636)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1264)
      [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
      .java:1830)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
      va:1756)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1636)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1264)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
      22)
      [java] at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297)

      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:146)
      [java] ... 9 more

      BUILD SUCCESSFUL

      Total time: 4 seconds