本文介绍了什么类加载器在Websphere(或一般而言)中加载Ear的lib目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关类加载器的文档此处 ( you have to go through the menus... WebSphere Application Server (Distributed operating systems), Version 8.5 > Developing applications > Developing applications in the full profile environment > Class loading )说关于类加载顺序:

The documentation on classloaders here ( you have to go through the menus... WebSphere Application Server (Distributed operating systems), Version 8.5 > Developing applications > Developing applications in the full profile environment > Class loading ) say this in regards to class loading order:

  1. 由Java虚拟机创建的引导程序,扩展和CLASSPATH类加载器
  2. WebSphere扩展类加载器
  3. 一个或多个应用程序模块类加载器,用于加载服务器中运行的企业应用程序的元素(jar,ejb mod等)
  4. 零个或多个Web模块类加载器(警告...)
  1. The bootstrap, extensions, and CLASSPATH class loaders created by the Java virtual machine
  2. A WebSphere extensions class loader
  3. One or more application module class loaders that load elements of enterprise applications running in the server (jars, ejb mods, etc...)
  4. Zero or more web module class loaders (wars...)

在第3点下,它简短地表示The product enables you to associate shared libraries with an application.,但是我假设这是指Websphere共享库在耳朵本身外部的功能.

under point 3 it briefly says that The product enables you to associate shared libraries with an application. however I'm assuming that refers to the websphere shared libraries feature external to the ear itself.

我找不到它说什么类加载器加载EAR的lib文件夹.是哪一个?

I cannot find where it says what classloader loads the lib folder of an EAR. Which one is it?

推荐答案

EAR库应该由应用程序类加载器加载,这与您在第3点中提到的类加载器相同提及(应用程序模块类加载器).

The EAR lib libraries should be loaded by the application class loader which is the same with the class loader referred in No 3 point you mention (the application module class loader).

以下形状更清楚地显示了这一点. EAR lib库属于应用程序类路径.

This is more clearly showed in the following shape. The EAR lib libraries belong in the Application Classpath.

这篇关于什么类加载器在Websphere(或一般而言)中加载Ear的lib目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 19:55