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:
And the key is prefer-web-inf-classes.
After do that, the system will load the embedded jar library, not the environment one.
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.
相关文章推荐
- How to Use `strace` to Trace the System Call in Linux
- Error:OX wants to use the "System" keychain
- AndroidStudio项目无法运行,Migrate Project to Gradle? This project does not use the Gradle build system.
- 解决php It is not safe to rely on the system's timezone settings. You are *required* to use the date.
- Unable to locate JAR/zip in file system as specified by the driver definition: mysql-connector-java-
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- How can I force Python's file.write() to use the same newline format in Windows as in Linux (“\r\n”
- Use the endorsed directory mechanism to place jaxb-api.jar(jaxb-api.jar、jaxws-api.jar与jdk1.6不兼容问题)
- tsm客户端 the system date and use the ACCEPT DATE command to establish the current
- eclipse创建Adnroid虚拟机提示:XXXX目录.avd is in the way. Use --force if you want to overwrite.
- How To Use the System Tray Directly from Visual Basic
- cannot be resolved to absolute file path because it does not reside in the file system : jar:file:/D
- How and Why to use the System.servicemodel.MessageParameterAttribute in WCF
- How to use the System Restore API to save and to restore system data in Visual C++
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- use java to execute the cmd and compile to jar file
- ffmpeg 音频转换: use ffmpeg convert the audio from stereo to mono without changing the video part
- PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings
- 2017美国数学建模ICM F题(政策)翻译 迁移到火星 (Migration to Mars: Utopian Workforce of the 2100 Urban Society)