remote deployment of WAR file

Hello,Is it possible to deploy WAR file to Sun Java System App Server (SJSAS) remotely? I mean, the .war file is placed in machine A, and the actual server is installed in machine B. Machine A can access SJSAP on machine B only by HTTP protocol.Thanks,
[280 byte] By [vakrat1] at [2007-11-26 6:59:56]
# 1

hi,

Yes, it is very much possible to deploy an application remotely to the Sun Appserver. All you need to do is login to the Admin Console (thru' the browser) from your remote machine where your war or ear file resides. Then Click on Common Tasks and it will guide you through the deployment process.

On the deployment page, there are two options :

1. Specify a package file to upload to the Application Server.

This is what you need

2. Specify a package file or a directory path that must be accessible from the server.

Use this option if you know the location of the ear/war file on the machine where the appserver is installed.

Hope this helps.

Cheers,

Vasanth

pts_forum at 2007-7-6 15:38:38 > top of Java-index,Application & Integration Servers,Application Servers...
# 2
thanks for the reply.I should have emphasized it in the first question, but i'm looking for a way to deploy the WAR file remotely using a script utility (like ANT for example)Sorry for not being clear enough.Thanks.
vakrat1 at 2007-7-6 15:38:38 > top of Java-index,Application & Integration Servers,Application Servers...
# 3

This is also possible. You will need to install one of the below on machine A where your war/ear file resides.

1. Complete Application Server installation (I don't think you want to do this)

2. Application Server Administration Client梐sadmin utility.

http://docs.sun.com/app/docs/doc/819-2649/6n4u3fd31?a=view#abnav

You can then use the asadmin deploy --host --port command to deploy your application. Type asadmin deploy --help for the complete syntax.

Cheers,

pts_forum at 2007-7-6 15:38:38 > top of Java-index,Application & Integration Servers,Application Servers...
# 4
it worked. many thanks.
vakrat1 at 2007-7-6 15:38:38 > top of Java-index,Application & Integration Servers,Application Servers...
# 5

Hi,

This is Naveen. Can this remote deployment be done through ant . using scp tag.

I tried doing this but i got a connection refused error.

This is the code

<target name="deploy" depends="package">

<scp file="${output}/war/${appname}.war" todir="asia/bgh08599@BGHWF5382:/C$" password="PassWord3"/>

</target>

error

deploy:

[scp] Connecting to BGHWF5382:22

BUILD FAILED

D:\eclipse\workspace\ServletDemo\build.xml:110: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused: connect

Total time: 4 seconds

pls let me know how should i go about it..

thanx in advance

Playwith_Java at 2007-7-6 15:38:38 > top of Java-index,Application & Integration Servers,Application Servers...