javaWeb项目tomcat部署上没错、换成weblogic就出问题了 :

报这个问题、哪位大神帮我看看weblogic.xml.jaxp.RegistryDocumentBuilderFactorycannotbecasttojavax.xml... 报这个问题、哪位大神帮我看看

weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory
具体报错:
[HTTP:101216]Servlet: "Spirit" failed to preload on startup in Web application: "WebContent".org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/kvbms/Spring-Jwf5-flex.xml]; nested exception is java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
展开
 我来答
jamxval
推荐于2018-03-11 · TA获得超过6821个赞
知道大有可为答主
回答量:4308
采纳率:82%
帮助的人:1364万
展开全部
如果服务器已经自带了一些 API 类库,我们就不要在应用程序中再自带一份,把你的 Spring 提供的一些 jar 去掉,你觉得哪些是 J2EE API 的就去掉,所谓 J2EE API 就是实现了或扩展了 javax...包内类或接口的类。

服务器一般会自带这些类。你放在 tomcat 上能跑是因为 tomcat 刚好没有自带完整的 J2EE 包,因为它仅支持 web 部分不支持 EJB。
jxcome2010
2014-11-06 · TA获得超过252个赞
知道小有建树答主
回答量:178
采纳率:100%
帮助的人:148万
展开全部
jar包冲突了,weblogic有内部包和你的web项目里面的包冲突,关于XML解析的包
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式