Skip to main content

Re: How can I create a .war file from the deployed content on the disk?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
hzhang_jn
Offline
Joined: 2005-07-22

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...]
> *Sent:* Wednesday, August 07, 2013 9:34 AM
> *To:* users@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
>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hzhang_jn
Offline
Joined: 2005-07-22

On 8/7/2013 11:10 AM, Zhang,Jun wrote:
>
> Will this work?
>
> 1)At the node where app has been deployed: "jar cf app1.war
> instancename", when the current directory is nodes/nodename.
>
You need to go to the relevant application directory under applications
directory, and jar up the relevant application bits.
>
> 2)At the destination node of a different domain: "jar xf app1.war" or
> deploy it from DAS console.
>
Do normal deploy with the re-created application.
>
> Thanks
>
> Jun
>
> *From:*Hong Zhang [mailto:hong.hz.zhang...]
> *Sent:* Wednesday, August 07, 2013 10:02 AM
> *To:* users@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...]
> *Sent:* Wednesday, August 07, 2013 9:34 AM
> *To:* users@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
>