webtier@glassfish.java.net

Re: How to deploy or undeploy web application?

From: <webtier_at_javadesktop.org>
Date: Wed, 27 Aug 2008 06:22:32 PDT

To start the server, issue this commaind:

$GF_HOME/bin/asadmin start-domain [domain-name]

To stop the server:

$GF_HOME/bin/asadmin stop-domain [domain-nam]

To deploy an app:

$GF_HOME/bin/asadmin deploy <path-to-archive>

and to undeploy:

$GF_HOME/bin/asadmin undeploy <application-name>

Note that deployment requires a file name (extension and all), whereas undeployment requires only the application name, which is usually just the filename minus the extension.

There's a LOT asadmin can, so you might google for some docs on it. GlassFish also has an *excellent* administration console (full disclosure: that's what I work on ; ) available at http://localhost:4848. The default user/pass is admin/adminadmin.

Hope that helps. :)
[Message sent by forum member 'jdlee' (jdlee)]

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