I have been running a Java EE 5 app for over a year on a production machine and several qa machines. I'm now trying to deploy the application on a cluster on two qa machines(qa1 and qa2). I recently upgraded to v2ur1 StandAlone and the app has been running on the two machines. I added cluster support. Then I created cluster1 with the DAS on qa1. nodeAgent1 with qaInstance1 is on qa1. nodeAgent2 with qaInstance2 is on qa2.
I went through all the resources in the admin console and added cluster1 in the Target tabs
I deployed the app with CLI --
asadmin deploy --target cluster1 --port 4848 DVN-EAR.ear
The app fails to load in either instance, apparently not finding different resources
in qaInstance1, it doesn't find my PostgreSQL data source--
[#|2008-01-23T21:20:46.216-0500|WARNING|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=6375a80f-5f5d-4223-9021-cc19835daf55;|javax.naming.NameNotFoundException: VDCNetDS not found
java.lang.RuntimeException: javax.naming.NameNotFoundException: VDCNetDS not found
at com.sun.enterprise.server.PersistenceUnitInfoImpl._getJtaDataSource(PersistenceUnitInfoImpl.java:283)
In qaInstance2 - a Derby (default?) datasource
[#|2008-01-23T21:18:30.984-0500|WARNING|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=3589598a-9b91-4578-bf56-34d61c7a727d;|javax.naming.NameNotFoundException: __default not found
java.lang.RuntimeException: javax.naming.NameNotFoundException: __default not found
at com.sun.enterprise.server.PersistenceUnitInfoImpl._getNonJtaDataSource(PersistenceUnitInfoImpl.java:339)
I am also getting RMI errors in qaInstance2
[#|2008-01-23T21:19:29.019-0500|WARNING|sun-appserver9.1|javax.management.remote.misc|_ThreadID=19;_ThreadName=Thread-24;_RequestID=1140ef4d-f6aa-4940-9144-a004d66a0da6;|Failed to restart: java.io.IOException: Failed to get a RMI stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: vdc-build.hmdc.harvard.edu; nested exception is:
java.net.ConnectException: Connection refused]|#]
and JMS errors on qaInstance1
[#|2008-01-23T21:20:26.858-0500|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_LB1101: Looking for Broker Running at:localhost:37676|#]
[#|2008-01-23T21:20:27.017-0500|WARNING|sun-appserver9.1|javax.jms|_ThreadID=10;_ThreadName=main;_RequestID=6375a80f-5f5d-4223-9021-cc19835daf55;|[C4003]: Error occurred on connection creation [localhost:37676]. - cause: java.net.ConnectException: Connection refused|#]
[Message sent by forum member 'bobtreacy' (bobtreacy)]
http://forums.java.net/jive/thread.jspa?messageID=255513