Topic
  • 6 replies
  • Latest Post - ‏2013-11-29T13:36:55Z by AnandKumarMatta
SystemAdmin
SystemAdmin
2233 Posts

Pinned topic Missing xsd file for wadi clustering?

‏2010-06-30T14:54:11Z |
I am testing a small clustered application on WASCE 2.1.1.4-20100420.

I am using Eclipse Helios to write the application - and the application deployes correctly across my two-server cluster.

But Eclipse complains about the <tomcat-clustering-wadi/> tag in my geronimo-web.xml and indicates the following message:
Description Resource Path Location Type
cvc-complex-type.2.4.a: Invalid content was found starting with element 'tomcat-clustering-wadi'. One of '{"http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1":context-root, "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. geronimo-web.xml /ClusterTest/WebContent/WEB-INF line 11 XML Problem

From what I've been able to Google, the namespace was omitted from the distribution by error. Does anyone know where to find it?

Thanks
Updated on 2010-07-07T13:41:03Z at 2010-07-07T13:41:03Z by SystemAdmin
  • Shawn_Jiang
    Shawn_Jiang
    154 Posts

    Re: Missing xsd file for wadi clustering?

    ‏2010-07-01T03:16:10Z  
    Use tomcat-2.0.1 instead of web-2.0.1 as the default namespace if you want use the wadi clustering functionality.

    <?xml version="1.0" encoding="UTF-8" ?>
    <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/*web-2.0.1*">
    ...
    <tomcat-clustering-wadi />
    ...
    </web-app>

    should be

    <?xml version="1.0" encoding="UTF-8" ?>
    <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/*tomcat-2.0.1*">
    ...
    <tomcat-clustering-wadi />
    ...
    </web-app>
  • SystemAdmin
    SystemAdmin
    2233 Posts

    Re: Missing xsd file for wadi clustering?

    ‏2010-07-01T05:47:50Z  
    Use tomcat-2.0.1 instead of web-2.0.1 as the default namespace if you want use the wadi clustering functionality.

    <?xml version="1.0" encoding="UTF-8" ?>
    <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/*web-2.0.1*">
    ...
    <tomcat-clustering-wadi />
    ...
    </web-app>

    should be

    <?xml version="1.0" encoding="UTF-8" ?>
    <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/*tomcat-2.0.1*">
    ...
    <tomcat-clustering-wadi />
    ...
    </web-app>
    My geronimo-config.xml file looks like this:

    <?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>ClusterTest</dep:groupId>
    <dep:artifactId>clutest001</dep:artifactId>
    <dep:version>1.0</dep:version>
    <dep:type>car</dep:type>
    </dep:moduleId>
    </dep:environment>
    <tomcat-clustering-wadi/>
    <web:context-root>/ClusterTest</web:context-root>
    </web:web-app>

    I tried replacing xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" with xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" but I still get the error.
  • Ashish_Jain
    Ashish_Jain
    274 Posts

    Re: Missing xsd file for wadi clustering?

    ‏2010-07-02T06:03:32Z  
    My geronimo-config.xml file looks like this:

    <?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>ClusterTest</dep:groupId>
    <dep:artifactId>clutest001</dep:artifactId>
    <dep:version>1.0</dep:version>
    <dep:type>car</dep:type>
    </dep:moduleId>
    </dep:environment>
    <tomcat-clustering-wadi/>
    <web:context-root>/ClusterTest</web:context-root>
    </web:web-app>

    I tried replacing xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" with xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" but I still get the error.
    Can you try starting the module "org.apache.geronimo.configs/tomcat6-clustering-builder-wadi/2.1.4/car" before continuing with your application deployment and see if you hit the error.
  • SystemAdmin
    SystemAdmin
    2233 Posts

    Re: Missing xsd file for wadi clustering?

    ‏2010-07-06T07:30:17Z  
    Can you try starting the module "org.apache.geronimo.configs/tomcat6-clustering-builder-wadi/2.1.4/car" before continuing with your application deployment and see if you hit the error.
    Posting the application is not a problem - it runs just fine.

    I'm simply trying to get rid of the validation error in Eclipse.

    Perhaps my initial post wasn't clear enough - sorry!
  • Kevan
    Kevan
    121 Posts

    Re: Missing xsd file for wadi clustering?

    ‏2010-07-06T18:58:59Z  
    Right. Here you go -- https://svn.apache.org/repos/asf/geronimo/server/tags/geronimo-2.1.5/plugins/tomcat/geronimo-tomcat6-clustering-builder-wadi/src/main/xsd/geronimo-tomcat-clustering-wadi-1.2.xsd

    --kevan
  • SystemAdmin
    SystemAdmin
    2233 Posts

    Re: Missing xsd file for wadi clustering?

    ‏2010-07-07T13:41:03Z  
    • Kevan
    • ‏2010-07-06T18:58:59Z
    Right. Here you go -- https://svn.apache.org/repos/asf/geronimo/server/tags/geronimo-2.1.5/plugins/tomcat/geronimo-tomcat6-clustering-builder-wadi/src/main/xsd/geronimo-tomcat-clustering-wadi-1.2.xsd

    --kevan
    Where do I place the file, and what modification must I make to the geronimo-web-xml, please?

    /Alex