Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy war to remote glassfish 3 server

I have a war file and I would like to deploy it to remote machine. Both on local and remote machine glassfish 3 is installed and it would be responsible for deploying the app. How can I perform remote deploy from one machine to another? Is it possible to do it using asadmin console on one machine and deploy to the other?

like image 578
Arek Avatar asked Dec 13 '22 07:12

Arek


1 Answers

In order to send ANY commands to a remote Domain Application Server (DAS) from a remote client like asadmin, you must first enable security. By default, this feature is turned off. It's simple to fix:

(1) While "on" the remote machine (2) DAS is running (3) asadmin enable-secure-admin (4) asadmin restart-domain

Now you should be able to send asadmin commands from any remote machine.

The change is permanent. Run the command once and forget it.

For help on the command run this: asadmin enable-secure-admin --help

like image 108
codeplumber Avatar answered Dec 30 '22 10:12

codeplumber