I am having difficulty getting Geronimo 2.2.1 virtual hosts to work. I have followed the documentation And once I got past the whole GBEANs configuration syntax its seems straight forward enough. I've gotten the server to run and the test app to deploy but it always deploys to the default host. I can't figure out what I'm missing. Any advice would be appreciated. I have attached the tomcat configuration from my config.xml and the geronimo-web.xml. The test application itself is a single jsp.
config.xml (line breaks added for clarity): <module name="org.apache.geronimo.configs/tomcat6/2.2.1/car"> <gbean name="org.apache.geronimo.configs/tomcat6/2.2.1/car? ServiceModule=org.apache.geronimo.configs/tomcat6/2.2.1/car,j2eeType=Hos t,name=TestHost2" gbeanInfo="org.apache.geronimo.tomcat.HostGBean"> <attribute name="className">org.apache.catalina.core.StandardHost</attribute> <attribute name="initParams">name=testhost2.vhainc.local appBase= workDir=work</attribute> <reference name="Engine"> <pattern> <name>TomcatEngine</name> </pattern> </reference> </gbean> </module> geronimo-web.xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <web:web-app xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client- 2.0" xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2" xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0" xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:pers="http://java.sun.com/xml/ns/persistence" xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"> <dep:environment> <dep:moduleId> <dep:groupId>default</dep:groupId> <dep:artifactId>test</dep:artifactId> <dep:version>1.0</dep:version> <dep:type>war</dep:type> </dep:moduleId> <dep:dependencies/> </dep:environment> <web:context-root>/test</web:context-root> <web:container-config> <tomcat xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"> <host>testhost1.vhainc.local</host> </tomcat> </web:container-config> </web:web-app>