title: ClassLoader issue on WAS 7.0.0.0 - DocumentBuilderFactoryImpl
body: <p>I am working with a Web application written in cocoon framework (Java) and running on WAS 7.0.0.0. 
  When running on WAS 6.X.X.X everything works fine.</p>
  
  <p>However, on WAS 7 during runtime I am receiving the following error:</p>
  
  <p><code>java.lang.ClassCastException org.apache.xerces.jaxp.DocumentBuilderFactoryImpl incompatible with javax.xml.parsers.DocumentBuilderFactory
  at javax.xml.parsers.DocumentBuilderFactory.newInstance</code></p>
  
  <p>We suspect that this is a ClassLoader issue.</p>
  
  <p>I have tried many steps to overcome this issue:</p>
  
  <ol>
  <li><p>I have tried to add in the WAS Administration Console a new Custom properties:</p>
  
  <p>Application servers -> Server Name -> Process definition -> Java Virtual Machine -> Custom properties</p>
  
  <ul>
  <li>Name = javax.xml.parsers.DocumentBuilderFactory</li>
  <li>Value = org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</li>
  </ul>
  
  <p>But this did not resolve the problem!</p></li>
  <li><p>I tried to change the WAS class loader order in the WAS Admin Console between parent first and parent last - both options did not resolve the issue.</p></li>
  </ol>
  
  <p>Please let me know if you need additional information.</p>