3 Replies Latest reply on Dec 23, 2009 7:20 PM by peterj

    jboss 5.0.1 shutdown.sh and shutdown.jar errors out of the box

    joels999

      I just installed jboss 5.0.1.GA on redhat linux 5.3 using sun java jdk1.6.0_17.

       

      The server starts up perfectly, but will not shutdown using the shutdown.sh or shutdown.jar.  I have the kill the pids

      I get the following errors, and this is a new fresh install.

       

      [root@fss-adc-qce1 bin]# ./shutdown.sh -S
      Exception in thread "main" java.lang.NoClassDefFoundError: javax.management.MalformedObjectNameException
         at org.jboss.mx.util.ObjectNameFactory.create(ObjectNameFactory.java:52)
         at org.jboss.system.server.ServerImplMBean.<clinit>(ServerImplMBean.java:35)
         at java.lang.Class.initializeClass(libgcj.so.7rh)
         at org.jboss.Shutdown.main(Shutdown.java:118)

      If I use the init scirpts given

       

      [root@fss-adc-qce1 bin]# ./jboss-p8 stop
      JBOSS_CMD_STOP = java -classpath /opt/jboss/jboss-5.0.1.GA/bin/shutdown.jar:/opt/jboss/jboss-5.0.1.GA/lib/jboss-system.jar:/opt/jboss/jboss-5.0.1.GA/client/jboss-system-client.jar:/opt/jboss/jboss-5.0.1.GA/client/jboss-system-jmx-client.jar:/opt/jboss/jboss-5.0.1.GA/client/jboss-common-core.jar org.jboss.Shutdown --shutdown -s 10.199.74.23
      Exception in thread "main" java.lang.NoClassDefFoundError: javax.management.MalformedObjectNameException
         at org.jboss.mx.util.ObjectNameFactory.create(ObjectNameFactory.java:52)
         at org.jboss.system.server.ServerImplMBean.<clinit>(ServerImplMBean.java:35)
         at java.lang.Class.initializeClass(libgcj.so.7rh)
         at org.jboss.Shutdown.main(Shutdown.java:118)

      I tried to add to the class path the jars needed to fix the errors, but so far no luck.

      And I know this may be fixed in 5.1.x but I need to use 5.0.1 for now.

      Any sugguestions?