项目从weblogic10.0.2迁移到weblogic10.3.6遇到的问题
2012-05-03 18:11
477 查看
1、java.lang.ExceptionInInitializerError和java.lang.NoClassDefFoundError,在我这,这两个错误是同时出现的。
解决方法:在WEB-INF/weblogic.xml文件中加入元素prefer-web-inf-classes,值为TRUE。下面附prefer-web-inf-classes的配置和说明。
<container-descriptor>
<prefer-web-inf-classes>
true
</prefer-web-inf-classes>
</container-descriptor>
2、The validator class:
"org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception:
"java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory".
<%@page contentType="text/html;charset=utf-8"%>
^---------------------------------------------^
解决方法:出现这种情况一般是xml-apis.jar和weblogic解析器冲突导致的问题,这里,我是把xml-apis.jar从WEB-INF/lib底下删除。
3、java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilder
解决方法:weblogic解析xml时和第三方包冲突,删掉WEB-INF/lib的xercesImpl.jar。
解决方法:在WEB-INF/weblogic.xml文件中加入元素prefer-web-inf-classes,值为TRUE。下面附prefer-web-inf-classes的配置和说明。
<container-descriptor>
<prefer-web-inf-classes>
true
</prefer-web-inf-classes>
</container-descriptor>
prefer-web-inf-classes Element The weblogic.xml Web application deployment descriptor contains a <prefer-web-inf-classes> element (a sub-element of the <container-descriptor> element). By default, this element is set to False. Setting this element to True subverts the classloader delegation model so that class definitions from the Web application are loaded in preference to class definitions in higher-level classloaders. This allows a Web application to use its own version of a third-party class, which might also be part of WebLogic Server. See weblogic.xml Deployment Descriptor Elements. When using this feature, you must be careful not to mix instances created from the Web application's class definition with issuances created from the server's definition. If such instances are mixed, a ClassCastException results.
2、The validator class:
"org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception:
"java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory".
<%@page contentType="text/html;charset=utf-8"%>
^---------------------------------------------^
解决方法:出现这种情况一般是xml-apis.jar和weblogic解析器冲突导致的问题,这里,我是把xml-apis.jar从WEB-INF/lib底下删除。
3、java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilder
解决方法:weblogic解析xml时和第三方包冲突,删掉WEB-INF/lib的xercesImpl.jar。
相关文章推荐
- 项目从tomcat向weblogic迁移遇到的一些问题
- 项目从tomcat向weblogic迁移遇到的一些问题
- 我做的一个web项目从tomcat迁移到weblogic遇到的问题
- 项目迁移到Linux WebLogic遇到的问题与解决
- tomcat项目迁移到weblogic过程中遇到的问题(持续更新)
- WebLogic使用总结(五)——Web项目使用Sigar在WebLogic服务器部署遇到的问题
- android项目迁移到新android studio所遇到的Gradle问题汇总
- WebLogic使用总结(五)——Web项目使用Sigar在WebLogic服务器部署遇到的问题
- weblogic下部署项目遇到session被覆盖问题
- 解决django项目迁移过程中遇到的问题。
- WebLogic使用总结(五)——Web项目使用Sigar在WebLogic服务器部署遇到的问题
- 迁移项目中mysq中遇到的问题
- rails项目迁移中遇到的问题及解决方法
- Struts2+Hibernate+Spring+Webservice项目从Tomcat到WebLogic遇到问题的解决方法
- 项目迁移腾讯云服务器,遇到的SMTP,25端口发邮件失败问题
- 项目从xcode4.6迁移到xcode5.0 中遇到的若干问题
- 项目从tomcat迁移到weblogic环境下问题汇总
- 更新到Android Studio 3.0项目迁移遇到的问题解决方案
- 项目从.NET 4.5迁移到.NET 4.0遇到的问题
- ubuntu将svn项目迁移到git步骤以及遇到问题的解决方案