title: changing the order of jars in eclipse project
body: <p>I recently converted an eclipse Java project into a dynamic web project.  The imported jars listed in both the before and after projects are the same, but the change to dynamic web project causes the following compilation error:  </p>
  
  <pre><code>W3C_XML_SCHEMA_NS_URI cannot be resolved or is not a field  
  </code></pre>
  
  <p>to be thrown by the following line of code:  </p>
  
  <pre><code>SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
  </code></pre>
  
  <p>I have researched this error, and it seems to be thrown by conflicting versions of <code>javax.xml.XMLConstants</code> in different jars, but I compared the lists of jars in both projects and they are identical, so <strong>I think one has to change the order of the jars. How does one do this?</strong>  </p>
  
  <p>Part of the solution might logically involve figuring out which jars include a package named <code>javax.xml.XMLConstants</code>.  So I followed @DiogoSantana's advice and used the Type wizard to get the results in the following print screen:  </p>
  
  <p><img src="https://s13.postimg.org/vdqndavxz/typewizard.jpg">  </p>
  
  <p>I then followed DiogoSantana's advice and ran <code>mvn dependency:tree</code> and got the following results:  </p>
  
  <p><img src="https://s2.postimg.org/kz2piqh89/dependencytree.jpg"></p>
  
  <p>I next made the following change to the <code>pom.xml</code>:  </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
      &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
      &lt;version&gt;2.2.7&lt;/version&gt;
      &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;jsr173_api&lt;/groupId&gt;
          &lt;/exclusion&gt;
      &lt;/exclusions&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And then I ran <code>mvn clean install</code> before refreshing the eclipse project and even doing <code>maven..update project</code> from within eclipse, but the error remains.</p>
  
  <p>Note: a search for the string <code>infoset</code> in the <code>pom</code> did not produce any results, so I tried the next higher level <code>jar</code>.  </p>