title: Problems deploying javax.xml.stream.XMLInputFactory in Weblogic 12c
body: <p>I'm trying deploy a web application (.war format) in Weblogic 12c. 
  When I try deploy it, Weblogic throws the following error:</p>
  
  <pre><code>java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
  Error weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
  </code></pre>
  
  <p>I have read too many threads and "solutions" about this error, but none served me.</p>
  
  <p>This is my weblogic.xml:</p>
  
  <pre><code>&lt;weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"&gt;
      &lt;context-root&gt;appName&lt;/context-root&gt;
      &lt;container-descriptor&gt;
          &lt;prefer-web-inf-classes&gt;true&lt;/prefer-web-inf-classes&gt;
      &lt;/container-descriptor&gt;
      &lt;resource-description&gt;
          &lt;res-ref-name&gt;jdbc/testdb&lt;/res-ref-name&gt;
          &lt;jndi-name&gt;jdbc/testdb&lt;/jndi-name&gt;
      &lt;/resource-description&gt;
  &lt;/weblogic-web-app&gt;
  </code></pre>
  
  <p>And these are my dependencies in pom.xml:</p>
  
  <pre><code>    &lt;spring.version&gt;3.1.1.RELEASE&lt;/spring.version&gt;
      &lt;dependency&gt;  
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;  
          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;  
          &lt;version&gt;${spring.version}&lt;/version&gt;  
      &lt;/dependency&gt; 
      &lt;dependency&gt;  
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;  
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;  
          &lt;version&gt;${spring.version}&lt;/version&gt;  
      &lt;/dependency&gt;  
      &lt;dependency&gt;  
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;  
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;  
          &lt;version&gt;${spring.version}&lt;/version&gt;  
      &lt;/dependency&gt;  
      &lt;dependency&gt;  
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;  
          &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;  
          &lt;version&gt;${spring.version}&lt;/version&gt;  
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.ws&lt;/groupId&gt;
          &lt;artifactId&gt;spring-ws-core&lt;/artifactId&gt;
          &lt;version&gt;2.1.0.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
          &lt;version&gt;2.2.11&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;wsdl4j&lt;/groupId&gt;
          &lt;artifactId&gt;wsdl4j&lt;/artifactId&gt;
          &lt;version&gt;1.6.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.ws.xmlschema&lt;/groupId&gt;
          &lt;artifactId&gt;xmlschema-core&lt;/artifactId&gt;
          &lt;version&gt;2.2.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Could you assist me in troubleshooting this? Thank you!</p>