Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

There are several alternatives available for installing and removing applications:

...

Geronimo Administration Console Anchor GACGAC

To install a new application via the Geronimo Administration Console the Install New Applications portlet is available by selecting Deploy New on the Console Navigation menu on the left hand side. This portlet also allows you to start automatically the application right after it was deployed.

...

Once deployed you should see a confirmation message similar to this one: No FormatbgColor

#000000borderStylesolid D:\geronimo-1.2-Tomcat\bin>deploy --user system --password manager deploy \HelloWorld_1.2\HelloWorld.war Using GERONIMO_BASE: D:\geronimo-1.2-Tomcat Using GERONIMO_HOME: D:\geronimo-1.2-Tomcat Using GERONIMO_TMPDIR: D:\geronimo-1.2-Tomcat\var\temp Using JRE_HOME: C:\Java\jdk1.5.0_06\\jre Deployed sample.applications/HelloWorldApp/1.2/war @ http://hcunico:8080/hello

As a difference from the deployment via de Geronimo Administration Console, using the command line tool you receive more information in the confirmation message. For instance you receive the Component Name (a.k.a. moduleId) and you also receive the context root and port where the application was deployed. This is very useful when installing, testing and uninstalling several different applications where it would be hard to remember all these values.

...

You will receive a list similar as the one shown in the following example.noformat

bgColor#000000borderStylesolid D:\geronimo-1.2-Tomcat\bin>deploy --user system --password manager list-modules Using GERONIMO_BASE: D:\geronimo-1.2-Tomcat Using GERONIMO_HOME: D:\geronimo-1.2-Tomcat Using GERONIMO_TMPDIR: D:\geronimo-1.2-Tomcat\var\temp Using JRE_HOME: C:\Java\jdk1.5.0_06\\jre Found 42 modules + org.apache.geronimo.configs/activemq/1.2/car + org.apache.geronimo.configs/activemq-broker/1.2/car + org.apache.geronimo.configs/axis/1.2/car + org.apache.geronimo.configs/axis-deployer/1.2/car + org.apache.geronimo.configs/client-deployer/1.2/car + org.apache.geronimo.configs/connector-deployer/1.2/car + org.apache.geronimo.configs/dojo-tomcat/1.2/car @ http://hcunico:8080/dojo + org.apache.geronimo.configs/geronimo-gbean-deployer/1.2/car + org.apache.geronimo.configs/hot-deployer/1.2/car + org.apache.geronimo.configs/j2ee-deployer/1.2/car + org.apache.geronimo.configs/j2ee-security/1.2/car + org.apache.geronimo.configs/j2ee-server/1.2/car + org.apache.geronimo.configs/j2ee-system/1.2/car + org.apache.geronimo.configs/openejb/1.2/car + org.apache.geronimo.configs/openejb-deployer/1.2/car + org.apache.geronimo.configs/persistence-jpa10-deployer/1.2/car + org.apache.geronimo.configs/remote-deploy-tomcat/1.2/car @ http://hcunico:8080/remote-deploy + org.apache.geronimo.configs/rmi-naming/1.2/car + org.apache.geronimo.configs/sharedlib/1.2/car + org.apache.geronimo.configs/system-database/1.2/car + org.apache.geronimo.configs/tomcat/1.2/car + org.apache.geronimo.configs/tomcat-deployer/1.2/car + org.apache.geronimo.configs/transaction/1.2/car + org.apache.geronimo.configs/webconsole-tomcat/1.2/car `-> framework.war @ http://hcunico:8080/console `-> standard.war @ http://hcunico:8080/console-standard + org.apache.geronimo.configs/welcome-tomcat/1.2/car @ http://hcunico:8080/ + sample.applications/HelloWorldApp/1.2/war @ http://hcunico:8080/hello org.apache.geronimo.configs/ca-helper-tomcat/1.2/car org.apache.geronimo.configs/client/1.2/car org.apache.geronimo.configs/client-corba-yoko/1.2/car org.apache.geronimo.configs/client-security/1.2/car org.apache.geronimo.configs/client-system/1.2/car org.apache.geronimo.configs/client-transaction/1.2/car org.apache.geronimo.configs/directory/1.2/car org.apache.geronimo.configs/j2ee-corba-yoko/1.2/car org.apache.geronimo.configs/javamail/1.2/car org.apache.geronimo.configs/ldap-realm/1.2/car org.apache.geronimo.configs/online-deployer/1.2/car org.apache.geronimo.configs/openejb-corba-deployer/1.2/car org.apache.geronimo.configs/openjpa/1.2/car org.apache.geronimo.configs/shutdown/1.2/car org.apache.geronimo.configs/transformer-agent/1.2/car org.apache.geronimo.configs/uddi-tomcat/1.2/car

Look for the sample.applications/HelloWorldApp/1.2/war entry, thas is the value you will have to use when trying to uninstall the application.

...

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

No FormatbgColor#000000borderStylesolid D:\geronimo-1.2-Tomcat\bin>deploy --user system --password manager undeploy sample.applications/HelloWorldApp/1.2/war Using GERONIMO_BASE: D:\geronimo-1.2-Tomcat Using GERONIMO_HOME: D:\geronimo-1.2-Tomcat Using GERONIMO_TMPDIR: D:\geronimo-1.2-Tomcat\var\temp Using JRE_HOME: C:\Java\jdk1.5.0_06\\jre Module sample.applications/HelloWorldApp/1.2/war unloaded. Module sample.applications/HelloWorldApp/1.2/war uninstalled. Undeployed sample.applications/HelloWorldApp/1.2/war

In this example you have used the same tool with three different commands:

...

When you copy an application in the deploy directory, let's say HelloWorld.war, you will see a confirmation message in the console where Geronimo is running stating the application was deployed and the context to access that application.

No FormatbgColor#000000borderStylesolid 16:26:49,453 INFO [Hot Deployer] Deploying HelloWorld.war Deployed sample.applications/HelloWorldApp/1.1/war @ http://hcunico:8080/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 console where Geronimo is running stating the application was undeployed. No FormatbgColor

#000000borderStylesolid 16:30:03,796 INFO [Hot Deployer] Undeploying HelloWorld.war 16:30:04,015 INFO [DirectoryMonitor] Hot deployer notified that an artifact was removed: sample.applications/HelloWorldApp/1.1/war Undeployed sample.applications/HelloWorldApp/1.1/war