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

This is the file i deploy: 
http://www.nabble.com/file/p16993213/security.war 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
    '[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/application-2.0
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2
   
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
    [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.2
    [EMAIL PROTECTED]://java.sun.com/xml/ns/persistence' instead of
   
'[EMAIL PROTECTED]://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
-- 
View this message in context: 
http://www.nabble.com/Error-on-my-xml-descriptor-when-deploying-a-war-file-in-2.1-tp16993213s134p16993213.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.

Reply via email to