Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15311

Error in validation of jboss-deployment-structure.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 4.2.0.Alpha1
    • None
    • upstream
    • None
    • Hide

      1. Create Seam Web project type EAR (keep default values)
      2. Set or select Seam 2.3.1.Final-redhat-2 runtime from WFK 2.3.0.GA
      3. Notice validation error cvc-complex-type.2.4.a ...

      Show
      1. Create Seam Web project type EAR (keep default values) 2. Set or select Seam 2.3.1.Final-redhat-2 runtime from WFK 2.3.0.GA 3. Notice validation error cvc-complex-type.2.4.a ...

      Wrong validation error on jboss-deployment-structure.xml file:

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
        <deployment>
        	  <dependencies>
      	      <module name="org.hibernate" export="true"/>
      	      <module name="javax.faces.api" export="true" />
                <module name="com.sun.jsf-impl" export="true"/>
                <module name="org.dom4j" export="true"/>
                <module name="org.hibernate.validator" export="true"/>
      	    </dependencies>
        </deployment>  
      </jboss-deployment-structure> 
      

      Validation error:

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'deployment'. One of '{ear-subdeployments-isolated, deployment, sub-deployment, module}' is expected.	jboss-deployment-structure.xml
      

      The error says exactly what is in jboss-deployment-structure.xml - we have there deployment, so this is valid and not invalid content.

              alexeykazakov Alexey Kazakov
              mnovotny@redhat.com Marek Novotny
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: