Few days ago I have moved from JBoss 5.1 to Jboss 6.0. I am using a script for starting and stopping jboss. So when I tried to stop jboss with the same file that was using for jboss 5.1 gives me following error.
[root@server2~/Desktop]#/etc/init.d/jboss stop
JBOSS_CMD_START = cd /data5/jboss/bin; /data5/jboss/bin/run.sh -c default -b 192.168.2.102
JBOSS_CMD_STOP = cd /data5/jboss/bin; /data5/jboss/bin/shutdown.sh -s 192.168.2.102
Exception in thread "main" java.net.MalformedURLException: Service URL must start with service:jmx:
at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:143)
at org.jboss.Shutdown.main(Shutdown.java:234)
After doing some R&D I have found the Soluntion for this.
For This do some modification in script and changes parameter passed for JBOSSSTOP variable.
Old One :
JBOSSSTOP=${JBOSSSTOP:-"$JBOSS_HOME/bin/shutdown.sh -s $JBOSS_BIND_ADDR "}
New One :
JBOSSSTOP=${JBOSSSTOP:-"$JBOSS_HOME/bin/shutdown.sh --host $JBOSS_BIND_ADDR -S"}
!Enjoy
Kuldeep Sharma
[root@server2~/Desktop]#/etc/init.d/jboss stop
JBOSS_CMD_START = cd /data5/jboss/bin; /data5/jboss/bin/run.sh -c default -b 192.168.2.102
JBOSS_CMD_STOP = cd /data5/jboss/bin; /data5/jboss/bin/shutdown.sh -s 192.168.2.102
Exception in thread "main" java.net.MalformedURLException: Service URL must start with service:jmx:
at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:143)
at org.jboss.Shutdown.main(Shutdown.java:234)
After doing some R&D I have found the Soluntion for this.
For This do some modification in script and changes parameter passed for JBOSSSTOP variable.
Old One :
JBOSSSTOP=${JBOSSSTOP:-"$JBOSS_HOME/bin/shutdown.sh -s $JBOSS_BIND_ADDR "}
New One :
JBOSSSTOP=${JBOSSSTOP:-"$JBOSS_HOME/bin/shutdown.sh --host $JBOSS_BIND_ADDR -S"}
!Enjoy
Kuldeep Sharma
No comments:
Post a Comment