Will this work?
1) At the node where app has been deployed: "jar cf app1.war instancename", when the current directory is nodes/nodename.
2) At the destination node of a different domain: "jar xf app1.war" or deploy it from DAS console.
Thanks
Jun
From: Hong Zhang [mailto:hong.hz.zhang_at_oracle.com]
Sent: Wednesday, August 07, 2013 10:02 AM
To: users_at_glassfish.java.net
Subject: Re: How can I create a .war file from the deployed content on the disk?
I see. In that case, if you no longer have access to the original application, you could jar up the contents of the application repository to re-create the original application and then use that to deploy to a different domain.
On 8/7/2013 10:42 AM, Zhang,Jun wrote:
Thank you Hong for your quick reply.
The destination node belongs to different domain. How do I benefit from create-application-reference in that situation?
Jun
From: Hong Zhang [mailto:hong.hz.zhang_at_oracle.com]
Sent: Wednesday, August 07, 2013 9:34 AM
To: users_at_glassfish.java.net<mailto:users_at_glassfish.java.net>
Subject: Re: How can I create a .war file from the deployed content on the disk?
If the application is already deployed to domain, you can just use "asadmin create-application-reference" command to deploy the application on an additional target (standalone instance etc).
On 8/7/2013 10:19 AM, Zhang,Jun wrote:
So that I can deploy the .war on another node's standalone instance. Is it right and enough to use the content at nodes/nodename/instancename?
Thank you!
Jun