您的位置:首页 > 其它

Weblogic优先加载jar包配置

2011-06-19 16:24 447 查看
weblogic自带了很多jar包 当工程中的jar和weblogic自带jar版本不一致时 往往会出现错误。

为了解决在weblogic中jar包冲突的问题 你可以在web-inf下创建一个weblogic.xml

内容如:

<?xml version="1.0"?>
<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>
<prefer-web-inf-classes>true</prefer-web-inf-classes>//优先加载web工程中的jar包
</container-descriptor>
</weblogic-web-app>

转载请注明地址:http://www.cnblogs.com/likehua/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: