关于spring3.0和hibernate3.3在weblogic部署问题的解决
来源:互联网 发布:最好用的手机编程软件 编辑:程序博客网 时间:2024/04/28 06:56
由于spring3.0与weblogic10x有jar包的冲突,启动程序时一般都是从外层开始,今天我部署一个spring3.0和hibernate3.3的工程到weblogic时,开始会报java.lang.NoClassDefFoundError: org/apache/log4j/Category的错误。
但是当我在WEB-INF下加入配置文件weblogic.xml后,工程正常启动。
配置文件内容如下:
<weblogic-web-app
xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<container-descriptor>
<!-- 优先加载web工程中的jar包,默认为false-->
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
这是限定weblogic在启动工程时首先加载工程中的jar,否则它会先加载外层的jar。此时,问题简单解决。
希望对大家有用!
但是当我在WEB-INF下加入配置文件weblogic.xml后,工程正常启动。
配置文件内容如下:
<weblogic-web-app
xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<container-descriptor>
<!-- 优先加载web工程中的jar包,默认为false-->
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
这是限定weblogic在启动工程时首先加载工程中的jar,否则它会先加载外层的jar。此时,问题简单解决。
希望对大家有用!
0 0
- 关于spring3.0和hibernate3.3在weblogic部署问题的解决
- 框架回忆之Struts2.1+Spring3.0+Hibernate3.3的部署问题
- struts2.1.6 + hibernate3.3 + spring3.0 遇到的问题
- struts2.1.6+hibernate3.3+spring3.0遇到的问题
- weblogic下使用hibernate3的异常问题及解决
- 关于struts2,hibernate3,spring3的配置
- struts2.1.8+spring3.0+hibernate3.3整合开发问题
- [Apache Click快速开发]整合Hibernate3.3和Spring3.0
- 关于如何在eclipse中部署服务遇到的一些问题和解决。
- strust2、hibernate3和spring3
- 第五章 Spring3.0 、Hibernate3.3与Struts2的整合
- 关于在Apache和Weblogic中分别部署静态页面的对比报告
- spring3.0 + hibernate3.5 + struts2的整合
- 解决weblogic的JDK和编码问题
- 整合Struts2.1+Hibernate3.3+Spring3.0
- JasperReports在Unix环境下的Weblogic部署问题
- weblogic部署WAR的问题
- 关于在weblogic上部署web项目
- jsp显示一对多的数据
- 遇到问题----------安装DBD:mysql时报错install_driver(mysql) failed: Can't load '/usr/lib64/perl5/site_perl/5.8
- The specified child already has a parent. You must call removeView() on the child's parent first.
- <NEED YOUR HELP> indenty field'value after do the insert action
- 数据库水平切分方法
- 关于spring3.0和hibernate3.3在weblogic部署问题的解决
- CGI编程学习
- diff命令
- sql 2005提示未能加载包"Microsoft SQL Management Studio Package "
- JQuery,你知多少?(一)
- 半同步半异步I/O的设计模式(half sync/half async)
- JavaScript Math(算数)对象
- jquery中的this和$(this)
- C# Winform鼠标左键点击按钮弹出设置菜单