Here's what my original thread post should have been... Not sure what happened there...
When I use proper WASCE v2.1 namespace in my geronimo-web.xml, and add the <web:host> for a virtual host, Eclipse tells me that its invalid. It deploys fine, so I guess its correct?
Here's the Eclipse error:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'web:host'. One of '{"http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1":work-dir, "http://
geronimo.apache.org/xml/ns/naming-1.2":web-container, "http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1":container-config, "http://geronimo.apache.org/xml/ns/
naming-1.2":abstract-naming-entry, "http://geronimo.apache.org/xml/ns/naming-1.2":ejb-ref, "http://geronimo.apache.org/xml/ns/naming-1.2":ejb-local-ref, "http://
geronimo.apache.org/xml/ns/naming-1.2":service-ref, "http://geronimo.apache.org/xml/ns/naming-1.2":resource-ref, "http://geronimo.apache.org/xml/ns/naming-1.2":resource-
env-ref, "http://geronimo.apache.org/xml/ns/naming-1.2":message-destination, "http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1":security-realm-name, "http://
geronimo.apache.org/xml/ns/deployment-1.2":service, "http://java.sun.com/xml/ns/persistence":persistence}' is expected.
Here's the relevant sections of geronimo-web.xml:
<web:web-app
xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
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: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:tomcat="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
>
<web:context-root>/</web:context-root>
<web:host>www.myvirtualhost.com</web:host>
Is the XSD in the GEP incorrect? I don't see anything for 'host' in the schema doc either (http://geronimo.apache.org/schemas-2.1/docs/geronimo-web-2.0.1.xsd.html).
If this is any kind of bug I'll submit it to JIRA but thought I'd check here first.