Weblogic部署报com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory

Weblogic部署Web应用时报com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory,weblogic.xml配置为:

  <container-descriptor>  

  <servlet-reload-check-secs>-1</servlet-reload-check-secs>

  <prefer-web-inf-classes>true</prefer-web-inf-classes>

  </container-descriptor>  

改为:
  <container-descriptor>  
  <servlet-reload-check-secs>-1</servlet-reload-check-secs>
  <prefer-web-inf-classes>false</prefer-web-inf-classes>
  </container-descriptor>  
可以解决。
 
原因是Xerces是一个开放源代码的XML语法分析器 与weblogic不兼容 删除 xerces *.jar xml-apis*.jar 文件试一试

 

你可能感兴趣的:(weblogic)