Hi!
I'm trying to setup a one-machine GF cluster (2.1). It looks ok, but when I restart GF only one instance is working - second can't start.
I'm lazy :) so I'm doing this as easy as possible:
(my OS is Ubuntu 8.10, 64-bit, Java Sun 1.6.0_10)
a) download GF installation (ML version)
b) java -jar glassfish-installer-v2.1-b60e-linux-ml.jar -Xmx500M
c) cd glassfish
d) ant -f setup-cluster.xml
e) bin/asadmin start-domain
f) cd sample/quickstart/clusterjsp
g) ../../../bin/asant setup-on-machine-cluster
h) start firefox - localhost:4848, login, cluster -> both instances are working
i) stop everything
j) start again (bin/asadmin start-domaint, bin/asadmin start-node-agent)
k) again firefox - localhost:4848, login, cluster -> only one instance is working
It looks like there is a problem with MQ. There is no IMQ directory in instance dir (only in instance-TWO, instance-ONE has it).
On the end is a part of server.log of that instance.
TIA
Lukjel
[#|2009-02-26T23:05:40.882+0100|INFO|sun-appserver2.1|javax.ee.enterprise.system.gms|_ThreadID=10;_ThreadName=main;|Initializing and Starting GroupManagementService|#]
[#|2009-02-26T23:05:41.822+0100|SEVERE|sun-appserver2.1|net.jxta.impl.endpoint.tcp.TcpTransport|_ThreadID=10;_ThreadName=main;_RequestID=59360996-07a5-42a7-8d17-88af7867f95c;|Failed adding selector to write selector pool|#]
[#|2009-02-26T23:05:42.151+0100|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=59360996-07a5-42a7-8d17-88af7867f95c;|CORE5071: An error occured during initialization
java.lang.NullPointerException
at com.sun.enterprise.jxtamgmt.ClusterManager.setBindInterfaceAddress(ClusterManager.java:675)
at com.sun.enterprise.jxtamgmt.ClusterManager.createSystemAdv(ClusterManager.java:641)
at com.sun.enterprise.jxtamgmt.ClusterManager.<init>(ClusterManager.java:146)
at com.sun.enterprise.ee.cms.impl.jxta.GroupCommunicationProviderImpl.initializeGroupCommunicationProvider(GroupCommunicationProviderImpl.java:138)
at com.sun.enterprise.ee.cms.impl.jxta.GMSContext.join(GMSContext.java:123)
at com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl.join(GroupManagementServiceImpl.java:331)
at com.sun.enterprise.ee.cms.lifecycle.GMSLifecycleImpl.initializeGMSForThisInstance(GMSLifecycleImpl.java:217)
at com.sun.enterprise.ee.cms.lifecycle.GMSLifecycleImpl.onInitialization(GMSLifecycleImpl.java:102)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:103)
at com.sun.enterprise.server.PEMain.run(PEMain.java:399)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]
[#|2009-02-26T23:05:42.152+0100|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=59360996-07a5-42a7-8d17-88af7867f95c;|Server Startup failed. Exiting...|#]
[#|2009-02-26T23:05:42.153+0100|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Server shutdown in progress...|#]
[#|2009-02-26T23:05:42.315+0100|WARNING|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=59360996-07a5-42a7-8d17-88af7867f95c;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:171)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:553)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:145)
at com.sun.enterprise.server.PEMain.run(PEMain.java:427)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]
[#|2009-02-26T23:05:42.316+0100|INFO|sun-appserver2.1|ShoalLogger|_ThreadID=10;_ThreadName=main;viewCluster;|Leaving GMS group viewCluster with shutdown type set to InstanceShutdown|#]
[#|2009-02-26T23:05:42.316+0100|WARNING|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=59360996-07a5-42a7-8d17-88af7867f95c;|CORE5061: Exception :
java.lang.NullPointerException
at com.sun.enterprise.ee.cms.impl.jxta.GroupCommunicationProviderImpl.leave(GroupCommunicationProviderImpl.java:173)
at com.sun.enterprise.ee.cms.impl.jxta.GMSContext.leave(GMSContext.java:137)
at com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl.leave(GroupManagementServiceImpl.java:343)
at com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl.shutdown(GroupManagementServiceImpl.java:257)
at com.sun.enterprise.ee.cms.lifecycle.GMSLifecycleImpl.onShutdown(GMSLifecycleImpl.java:451)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:553)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:145)
at com.sun.enterprise.server.PEMain.run(PEMain.java:427)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]
[#|2009-02-26T23:05:42.611+0100|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=59360996-07a5-42a7-8d17-88af7867f95c;|Server stopped due to Server startup failure.|#]
[Message sent by forum member 'lukjel' (lukjel)]
http://forums.java.net/jive/thread.jspa?messageID=334097