mws shutdown issue

Folks,

Iam trying to implement the MWS 7.1.2 failover hardware clustering at OS level.

a) Installed MWS on Server A (Active).
b) Created the startup, shutdown scripts for veritas VCS software to unmount and mount to Server B (Passive).
c) Virtual IP has been created and mapped in the /etc/hosts.
d) from MWS GUI (Administration → MyWebMethods ->Cluster Settings), changed the front end url to Virtual IP(Logical). Also changed the HostName to Virtual IP.

Now, I can able to logon the MWS on Server A using the front end url provided on step d.

But when I try to shutdown the server using ./mws.sh -s default stop &

The follwoing error has been thrown.

JAVA_HOME: /Portal/jvm/sol150
MWS_HOME: /Portal/MWS
SERVER_HOME: /Portal/MWS/server/default
Stopping MWS…
loading configuration from MWS database…
shutting down: http://X.X.com:8073
2008-12-08 16:33:57 EST (Framework : INFO) [RID:8] - Processing request [1kz2zv7dakcgl:null] http://X.X.com:8073/ (GET)
2008-12-08 16:33:57 EST (Framework : WARN) [RID:8] - Checking Local Control addr: 157.184.155.56
invalid stream header
java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764)
at java.io.ObjectInputStream.(ObjectInputStream.java:277)
at com.webMethods.rtl.util.ObjectUtil$ClassLoaderObjectInputStream.(ObjectUtil.java:939)
at com.webMethods.rtl.util.ObjectUtil.load(ObjectUtil.java:874)
at com.webMethods.rtl.util.ObjectUtil.load(ObjectUtil.java:858)
at com.webMethods.portal.system.SystemControlUtil.connect(SystemControl

Even I tried using -n option to specify the node name of the cluster with no luck.

Checked the cluster.xml (need to get it from DB from verison 7.1.2) and it looked same as in the “Advanced or Clustered Configuration” MWS clustering page.

Not sure where I went wrong. Any help is appreciated.