【发布时间】:2013-01-16 10:00:08
【问题描述】:
在我的 WebSphere 8 应用服务器上,默认的类加载顺序是 parent_first(尝试从应用服务器类加载器加载,然后才从 EAR 类加载器加载)。
这会在我的应用程序对 Apache 的 HttpClient 的使用和 WebSphere 的内部使用之间产生冲突。
我正在考虑将加载顺序切换到 parent_last(prefer-web-inf-classes 在 WebLogic 中)。
将 Java EE 应用程序类加载顺序翻转到 parent_last 时需要注意哪些陷阱?
【问题讨论】:
标签: jakarta-ee classloader nosuchmethoderror websphere-8