首页 > Web开发 > 详细

weblogic配置:<prefer-web-inf-classes>true</prefer-web-inf-classes>

时间:2016-05-11 23:21:44      阅读:439      评论:0      收藏:0      [点我收藏+]

<container-descriptor>
     <prefer-web-inf-classes>true</prefer-web-inf-classes>
   </container-descriptor>

 
上面配置的含义:优先使用Web应用里加载的类,即就是优先加载web-inf下lib中的jar包。
 
如果什么时候发现在Tomcat下用的好好的,但是放到weblogic下就出了问题,那么多半在\WEB-INF\weblogic.xml添上上面的设置就会好的,当然有可能还需要添加一些jar包。
 
如果出现错误:‘org.apache.axis.transport.http.AxisServlet‘ doesn‘t have a default constructor,解决方法:加上上面语句

weblogic配置:<prefer-web-inf-classes>true</prefer-web-inf-classes>

原文:http://www.cnblogs.com/sz-zzm/p/5483689.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!