Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update Gshell to gogocommand and geronimo home directory in script

...

For our example, access the Installed Web Applications portlet and click on Uninstall for the Component Name listing sample.applications/HelloWorldApp/21.0/war. This will stop the application first and then uninstall it. The confirmation message " Uninstalled application " should be listed at the bottom of the portlet.

...

Code Block
11:45:23,500 INFO  [DirectoryHotDeployer] Deploying HelloWorld.war
11:45:23,953 INFO  [DirectoryHotDeployer] Deployed sample.applications/HelloWorldApp/21.0/war @ /hello

To remove the application, just delete the WAR or EAR file from the deploy directory. When the application has been removed you should see a confirmation message in the geronimo.log which locates in the <geronimo_home>/var/log directory.

Code Block
11:46:17,953 INFO  [DirectoryHotDeployer] Undeploying HelloWorld.war
11:46:18,281 INFO  [DirectoryMonitor] Hot deployer notified that an artifact was removed: sample.applications/HelloWorldApp/21.0/war
11:46:18,281 INFO  [DirectoryHotDeployer]     Undeployed sample.applications/HelloWorldApp/21.0/war

Via Deployer tool
Anchor
deployertool
deployertool

...

Once deployed you should see a confirmation message similar to this one with moduleID sample.applications/HelloWorldApp/21.0/war assigned to this application within your deployment plan:

No Format
bgColor#000000
borderStylesolid
D:\geronimo-tomcat6tomcat7-jee5javaee6-23.20\bin>deploy --user system --password manager deploy \HelloWorld_21.0\HelloWorld.war
Using GERONIMO_BASE:   D:\geronimo-tomcat6tomcat7-jee5javaee6-23.20
Using GERONIMO_HOME:   D:\geronimo-tomcat6tomcat7-jee5javaee6-23.20
Using GERONIMO_TMPDIR: D:\geronimo-tomcat6tomcat7-jee5javaee6-23.20\var\temp
Using JRE_HOME:        C:\Java\jdk1.56.0_0621\\jre
    Deployed sample.applications/HelloWorldApp/21.0/war @ /hello

As a difference from the deployment via the Geronimo Administration Console, using the command line tool you receive instant information in the command line for confirmation. Alternatively, if you have not yet packaged your application you could use the --inPlace option for deploying your application directly from the directory you are actually developing the application. This option is used to deploy this sample application in the Quick start - Apache Geronimo for the impatient section.

...

deploy --user system --password manager undeploy sample.applications/HelloWorldApp/21.0/war

This command will first stop the running application and then uninstall it. You should see a confirmation message similar to this:

No Format
bgColor#000000
borderStylesolid
D:\geronimo-tomcat6tomcat7-jee5javaee6-23.20\bin>deploy --user system --password manager undeploy sample.applications/HelloWorldApp/21.0/war
Using GERONIMO_BASE:   D:\geronimo-tomcat6tomcat7-jee5javaee6-23.20
Using GERONIMO_HOME:   D:\geronimo-tomcat6tomcat7-jee5javaee6-23.20
Using GERONIMO_TMPDIR: D:\geronimo-tomcat6tomcat7-jee5javaee6-23.20\var\temp
Using JRE_HOME:        C:\Java\jdk1.56.0_0621\\jre
    Module sample.applications/HelloWorldApp/21.0/war unloaded.
    Module sample.applications/HelloWorldApp/21.0/war uninstalled.

    Undeployed sample.applications/HelloWorldApp/21.0/war

These are other options and commands available for this deployer tool, please visit the Tools and commands section for additional details.

Via

...

gogo command
Anchor

...

gogodeploy

...

gogodeploy

You can also deploy or undeploy applications in GShellKaraf shell. See Deploying an Application to a Server Instance in GShell gogo commands in Geronimo for detailed information about deploying and undeploying GShell gogo commands.

Via GEP
Anchor
GEPdeploy
GEPdeploy

...