如何在Weblogic EAR中设置jar的顺序? [英] How to set the orders of jars in Weblogic EAR?

查看:168
本文介绍了如何在Weblogic EAR中设置jar的顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个EAR文件,其中包含两个不同的jar,这些jar共享某些具有相同package + class名称的类。这导致在EAR文件本身的内部 中加载类的重要性。

I have an EAR file that contains two different jars that share some classes with an identical package+class name. This results in importance of classloading inside the EAR file itself.

我如何告诉Weblogic之前从APP-INF / lib加载一个jar在同一个APP-INF / lib中加载另一个?我需要定义一个特定的顺序,如果发生冲突,它将从JAR a而不是JAR b中获取。

How can I tell Weblogic to load one jar from APP-INF/lib before loading a different one in the same APP-INF/lib? I need to define a specific order to that if there is a conflict, it will take from JAR a and not JAR b.

我正在使用Webogic 11g(10.3)

I'm using Webogic 11g (10.3).

谢谢。

推荐答案

如果您收到ClassNotFound异常,请尝试检查每个模块的MANIFEST.MF,以查看 Class-Path属性是否正确填充了APP-INF / lib中jar的位置-我已经花了一个星期或更长时间才撕裂我的头发试图找到解决类似问题的方法,这就是解决问题的方法。

If you're getting ClassNotFound exceptions, try checking out the MANIFEST.MF for each of your modules to see if the "Class-Path" attribute is correctly populated with the locations of your jars in your APP-INF/lib - I've just spent a week or more tearing my hair out trying to find a solution to a similar problem, and this is what fixed it.

这篇关于如何在Weblogic EAR中设置jar的顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆