users@glassfish.java.net

Cannot deploy j2ee app on backup server

From: <glassfish_at_javadesktop.org>
Date: Fri, 01 May 2009 05:29:38 PDT

I got two servers (production-server1 and development-server2), production server and is hosting 2 enterprise applications.
On Development server, in case first would broke I would like to be able to
as a backup host enterprise applications from the first one.

I have device plan, moved with rsync to development server:
- ear files ,
- created domain1 on development server2,
- moved domain.xml from server1 (I have with sed repleaced server1 with server2),
- started domain1 on server2

All this worked I can see all the resources and configuration from server1 on server2), all what is left to deploy applications.

Unfortunately deployment of the enterprise applications failed:

[root_at_server2 prod]# sudo -u glassd asadmin deploy --user admin --port 4848 --name eric /usr/java/deployment/deployed/lms/prod/eric/20090404/erics-ear-1.1.5.ear
Please enter the admin password>
CLI171 Command deploy failed : While redeploying, trying to stop the application in target server failed; Error Flushing ConfigContext com.sun.enterprise.config.ConfigContext: Url=/usr/java/glassfish/domains/domain1/config/domain.xml, ReadOnly=false, ResolvePath=true, LastModified Timestamp=1241178440000, isChanged=false, Autocommit=false, isConfigBeanNull=false

Additionally I have copied from server1 to server2
/usr/java/glassfish/domains/domain1/applications/j2ee-apps/eric
but it did not help.

It seems that glassfish before deploying is trying to stop application on server2 which is impossible because application
was never running on that server.

Any suggestion how to solve that problem would be greatly appreciated.
Regards
Slawek
[Message sent by forum member 'chenin' (chenin)]

http://forums.java.net/jive/thread.jspa?messageID=344648