您的位置:首页 > 其它

Force the system to use the embedded jar

2009-06-24 16:51 295 查看
Scenario:

There is an old version jar library in the environment, but now i want to use the embedded jar library in my system. Now the jar library is placed under the WEB-INF/lib.

The only step is to add a section to weblogic.xml.

likes:

<container-descriptor>
<index-directory-enabled>true</index-directory-enabled>
<servlet-reload-check-secs>-1</servlet-reload-check-secs>
<save-sessions-enabled>true</save-sessions-enabled>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
<default-mime-type>text/html</default-mime-type>
</container-descriptor>


And the key is prefer-web-inf-classes.

After do that, the system will load the embedded jar library, not the environment one.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐