Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2484

Incompatible Schemas "j2ee_1_4.xsd" "ejb-jar_2_1.xsd" in folder $JBOSS_HOME/docs/schemas

XMLWordPrintable

    • Compatibility/Configuration

      The global element declaration
      <xsd:complexType name="java-typeType">
      occurs in both of the following schemas:

      "j2ee_1_4.xsd" and "ejb-jar_2_1.xsd"

      in the docs/schemas folder.

      So if one wants to validate a ejb-jar.xml file locally, using this "ejb-jar_2_1.xsd" schema, one gets an error message because it includes the "j2ee_1_4.xsd" schema file :

      (<xsd:include schemaLocation="http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd"/>)

      When I commented out the declaration of this element in "j2ee_1_4.xsd" , I could validate the "ejb-jar.xml" without any further difficulties.

      Could You please try an answer to the question whether this "fix" could cause any other problems using this modified version j2ee_1_4.xsd out the definition of that element?

      **********************************
      I would like to thank all of You for providing the world with such a great open source product!!

      Yours Andreas Merziger

              starksm64 Scott Stark (Inactive)
              jboss_is_great Andreas Merziger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 5 minutes
                  5m
                  Remaining:
                  Remaining Estimate - 5 minutes
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified