Skip to main content

How to deploy or undeploy web application?

2 replies [Last post]
nicenepal
Offline
Joined: 2006-07-02
Points: 0

Hello everybody,
I am new this glassfish server so I would like to know, how to run Glassfish separately from cmd prompt and also to deploy and undeploy web application without IDE's support?
Thank you.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jdlee
Offline
Joined: 2006-01-25
Points: 0

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

and to undeploy:

$GF_HOME/bin/asadmin undeploy

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. :)

jdlee
Offline
Joined: 2006-01-25
Points: 0

Oddly enough, right after posting this, I needed to find some information on asadmin parameters, and found this:

http://docs.sun.com/app/docs/doc/820-4495/gcode?a=view