Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

 « Return to Thread: Error on my xml descriptor when deploying a war file in 2.1

Error on my xml descriptor when deploying a war file in 2.1

by newbie-gero :: Rate this Message:

Reply to Author | View in Thread

Greetings,
i have deploy a war file in the geronimo 2.1 and i encounter some errors.

This is the file i deploy: security.war

This is the errors i encounter:

Error: Unable to distribute security.war: xml problem for web app .

        Invalid deployment descriptor: errors:


    error: cvc-complex-type.3.2.1: Attribute not allowed (no wildcards
    allowed): configId


    error: cvc-complex-type.3.2.1: Attribute not allowed (no wildcards
    allowed): parentId


    error: cvc-complex-type.2.4a: Expected elements
    'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
    web-container@http://geronimo.apache.org/xml/ns/naming-1.2
    host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    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/naming-1.2
    security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    service@http://geronimo.apache.org/xml/ns/deployment-1.2
    persistence@http://java.sun.com/xml/ns/persistence' instead of
    'context-priority-classloader@http://geronimo.apache.org/xml/ns/j2ee/web/tom
cat-2.0.1'
    here


    Descriptor:

    <xml-fragment configId="com/ibm/geronimo/security/myDbApp"
    parentId="com/ibm/geronimo/security/myDbPlan"
    xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.0"
    xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
    xmlns:sec1="http://geronimo.apache.org/xml/ns/security-2.0">

      <tom:context-root>/sqlSecurityDemo</tom:context-root>


    <tom:context-priority-classloader>false</tom:context-priority-classloader>

      <tom:security-realm-name>my-sql-realm</tom:security-realm-name>

      <sec1:security>

        <sec1:role-mappings>

          <sec1:role role-name="registered-users">

            <sec1:principal
    class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"
    name="registeredUsers"/>

          </sec1:role>

          <sec1:role role-name="administrators">

            <sec1:principal
    class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
    name="system"/>

            <sec1:principal
    class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
    name="admin"/>

          </sec1:role>

        </sec1:role-mappings>

      </sec1:security>

    </xml-fragment>


Thanks

 « Return to Thread: Error on my xml descriptor when deploying a war file in 2.1