我必须做些什么来保证在aaa.jar之前加载ccc.jar? [英] What I have to do to guarantee that ccc.jar is loaded before aaa.jar?
问题描述
有人知道加载的罐子的优先顺序是什么?
Does somebody know in which order of precedence are the jars loaded?
在 WEB-INF / lib 中有几个罐子(在在 WAS 6.1 中的 ear 内 war 。
Having several jars in WEB-INF/lib (in a war inside an ear in WAS 6.1).
假设 aaa.jar , bbb.jar , ccc.jar 。我在 aaa.jar 和 ccc.jar
ccc.jar 中的一个是正确的; aaa.jar 中的那个是错误的。
The one inside ccc.jar is the correct one; the one in the aaa.jar is the wrong.
似乎错误的版本在正确版本之前已本地化。
It seems that the wrong version is localized before the correct one.
有人知道我必须做些什么才能保证在 aaa.jar 之前加载 ccc.jar ?
Does somebody know what I have to do to guarantee that ccc.jar is loaded before aaa.jar?
(这是一个更真实/复杂问题的简化,因此在这种情况下重命名罐子不适用。)
(This is a simplification of a more real/complex problem, so renaming jars doesn't apply in this case).
提前谢谢
推荐答案
WebSphere Application Server不保证 WEB-中JAR的排序INF / lib
,并且没有强制特定排序的选项。我建议删除重复的类和资源。
WebSphere Application Server makes no guarantees about the ordering of JARs within WEB-INF/lib
, and there is no option to force a particular ordering. I recommend removing duplicate classes and resources.
这篇关于我必须做些什么来保证在aaa.jar之前加载ccc.jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!