weblogic部署错误:weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

转自:http://blog.163.com/czwangli88@126/blog/static/4245153620125203171415/

报错信息如下:

weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

解决办法:

删除xml-apis-1.3.03 从WEB-INF/lib下 。

 

 

配置weblogic.xml ,强制weblogic 首先加载应用WEB-INF 中的class。内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app>
  <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
  </container-descriptor>
</weblogic-web-app>

直接将
 
weblogic.xml放到和web.xml同目录下就可以了。这样可以优先执行web-inf下的包或者类。可以解决包冲突的解决办法。

posted @ 2014-02-26 14:18  miss you  阅读(1552)  评论(0编辑  收藏  举报