...
No Format bgColor #000000 borderStyle solid
D:\geronimo-1.1\bin>java -jar deployer.jar --user system --password manager deploy \000-VH-sample\HelloWorld-VH\HelloWorld_1.war
Deployed sample.applications/HelloWorldApp_1/1.1/war @
http://hc2t60phcunico:8080/hello_1
Note that the deployer tool will not tell the Virtual Host where the application was deployed to, it will only tell the machine's defined host name. If you try to access that URL you should get a HTTP Status 404 - /hello_1, resource not available. That error message is a good sign since we deployed the application to a particular Virtual Host.
...
No Format bgColor #000000 borderStyle solid
D:\geronimo-1.1\bin>java -jar deployer.jar --user system --password manager deploy \000-VH-sample\HelloWorld-VH\HelloWorld_2.war
Deployed sample.applications/HelloWorldApp_2/1.1/war @
http://hc2t60phcunico:8080/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:
Host name / Virtual Host | Access |
---|---|
http://hc2t60phcunico:8080/hello_1 | Fail |
http://localhost:8080/hello_1 | Fail |
http://virtualhost1.com:8080/hello_1 | SUCCESS!!! |
http://virtualhost2.com:8080/hello_1 | Fail |
http://virtualhost3.com:8080/hello_1 | Fail |
http://virtualhost4.com:8080/hello_1 | Fail |
...
Host name / Virtual Host | Access |
---|---|
http://hc2t60phcunico:8080/hello_2 | Fail |
http://localhost:8080/hello_2 | Fail |
http://virtualhost1.com:8080/hello_2 | Fail |
http://virtualhost2.com:8080/hello_2 | SUCCESS!!! |
http://virtualhost3.com:8080/hello_2 | SUCCESS!!! |
http://virtualhost4.com:8080/hello_2 | SUCCESS!!! |
...