Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Save the changed to the geronimo-web.xml file and generate a WAR file by typing the following command from the <APP_HOME> directory:

jar -cvf HelloWorld_1.war *

Once deployed this application should only listed in the virtualhost1.com host name.

...

Save the changed to the geronimo-web.xml file and generate a second WAR file by typing the following command from the <APP_HOME> directory:

jar -cvf HelloWorld_2.war*

You now have two applications ready to be deployed to two different virtual hosts.

...

You should get a successful confirmation message similar to this one:

No Format
bgColor#000000
borderStylesolid

D:\geronimo-tomcat6-jee5-2.2\bin>deploy --user system --password manager deploy \HelloWorld_2.2\HelloWorld_1.war
Using GERONIMO_BASE:   D:\geronimo-tomcat6-jee5-2.2
Using GERONIMO_HOME:   D:\geronimo-tomcat6-jee5-2.2
Using GERONIMO_TMPDIR: var\temp
Using JRE_HOME:        C:\Java\jdk1.5.0_06\jre
    Deployed sample.applications/HelloWorldApp_1/2.2/war @
    /hello_1

Repeat the deployment for the second application.

...

You should get a successful confirmation message similar to this one:

No Format
bgColor#000000
borderStylesolid

D:\geronimo-tomcat6-jee5-2.2\bin>deploy --user system --password manager deploy \HelloWorld_2.2\HelloWorld_2.war
Using GERONIMO_BASE:   D:\geronimo-tomcat6-jee5-2.2
Using GERONIMO_HOME:   D:\geronimo-tomcat6-jee5-2.2
Using GERONIMO_TMPDIR: var\temp
Using JRE_HOME:        C:\Java\jdk1.5.0_06\jre
    Deployed sample.applications/HelloWorldApp_2/2.2/war @
    /hello_2

With the applications deployed the only thing left is to test them. Test hello_1 first, try to access the hosts names defined on the Geronimo server machine:

...