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

来源:互联网 发布:如何打开电脑端口 编辑:程序博客网 时间:2024/05/17 07:07
<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,解决方法:加上上面语句