title: How do I resolve duplicate property errors in this j2ee schema?
body: <p>I inherited a J2EE app written for deployment on Weblogic 10 and the developer primarily responsible for this application does not get this error when he opens the project in Eclipse.</p>
  
  <p>I have the following very simple <code>weblogic.xml</code> file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/920/weblogic-web-app.xsd"&gt;   
      &lt;container-descriptor&gt;
          &lt;prefer-web-inf-classes&gt;true&lt;/prefer-web-inf-classes&gt;
      &lt;/container-descriptor&gt;
  &lt;/weblogic-web-app&gt;
  </code></pre>
  
  <p>Eclipse generates a single XML validation problem for this file, which actually consists of a number of the same errors. The parent text of the XML problem is this:</p>
  
  <blockquote>
    <p>The errors below were detected when validating the file "j2ee_1_4.xsd"
    via the file "weblogic.xml".  In most cases these errors can be
    detected by validating "j2ee_1_4.xsd" directly.  However it is
    possible that errors will only occur when j2ee_1_4.xsd is validated in
    the context of weblogic.xml.</p>
  </blockquote>
  
  <p>And an example of the child errors. They all read this way:</p>
  
  <blockquote>
    <p>sch-props.correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://java.sun.com/xml/ns/j2ee,descriptionGroup'.</p>
  </blockquote>
  
  <p>This is followed by a line number. There are about 50 of these errors, and only the quoted name at the end of the error changes.</p>
  
  <p>I found the following bug in Sun's bug tracker which seemed to indicate a possible cause, but I'm not sure how I'd apply it to my project, if it's even relevant.</p>
  
  <p><a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6402288" rel="nofollow">Impossible to create javax.xml.validation.Schema instance from "web-app_2_4.xsd"</a></p>
  
  <p>I can't help but think that this is related to my Eclipse configuration, but at this point I'm at a loss.</p>
  
  <p>Thanks for your time.</p>