weblogic 启动报错 java.lang.LinkageError: loader constraint violation in interface itable initialization
2015-11-13 11:42
609 查看
Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.impl.xs.opti.DefaultElement.getSchemaTypeInfo()Lorg/w3c/dom/TypeInfo;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/xerces/impl/xs/opti/DefaultElement, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Element have different Class objects for the type org/w3c/dom/TypeInfo used in the signature at org.apache.xerces.impl.xs.opti.SchemaDOM.reset(Unknown Source) at org.apache.xerces.impl.xs.opti.SchemaDOM.<init>(Unknown Source) at org.apache.xerces.impl.xs.opti.SchemaDOMParser.startDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
原因:jar包冲突,我的程序中依赖xercesImpl-2.9.1.jar,weblogic也有相应的包,去掉我自己的包就行啦。
在weblogic.xml中,配置prefer-web-inf-classes 为true,表示优先加载,程序中的jar包。weblogic还会加载它自己的,所以就冲突了,将这个值改成false,也行,不用删除程序中的jar,weblogic也能起来,但是log4j也是用的weblogic的了,自己配置log4j配置文件就不管用了。
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
相关文章推荐
- windows7服务器上weblogic启动失败异常解决方法
- CentOS 6.3安装配置Weblogic-10方法
- (Weblogic Portal 9.2.3集群)Oracle数据库初始化报PF_MARKUP...
- Weblogic在Linux环境下配置Https
- jstack和线程dump分析
- weblogic92应用jar冲突初解决
- 【集群】WebLogic线程阻塞的问题(图)
- WebLogic 安装与配置指南
- Unable to obtain file lock but will retry
- Linux下的WebLogic安装部署
- hp-unix WebLogic 安装笔记
- weblogic 修改端口
- 在Redhat中 weblogic 设置域名绑定的问题
- weblogix中文文档
- eclipse集成weblogic开发环境的搭建
- tomcat和weblogic设置编码方式
- javax.naming.NameNotFoundException: Unable to resolve '*'. Resolved ''; remaining na
- WebLogic 重置用户密码
- weblogic超链接下载文件未提示
- weblogic集群介绍