2 Replies Latest reply on Aug 6, 2004 11:55 AM by Jeffrey Smith

    Problems running shutdown.bat from directory other than bin

    Jeffrey Smith Newbie

      I have found that if you run shutdown.bat from any directory other than the bin directory you get the following error message:

      Exception in thread "main" javax.naming.NamingException: Could not dereference object. Root exception is javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptor (no sec
      urity manager: RMI class loader disabled)
      at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:521)
      at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:6
      39)
      at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:309
      )
      at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStrea
      m.java:241)
      at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1469)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1432)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      626)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:3
      0)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:551)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:965)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:614)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at org.jboss.Shutdown.main(Shutdown.java:182)

      RMIAdapter is found in jbossall-client.jar and in shutdown.bat when setting the JBOSS_CLASSPATH it has ../client/jbossall-client.jar If I change this to the full path name it works. Is there a patch that addresses this bug yet?

      Thanks

      Jeff Smith
      Software Developer
      Compuware Corporation