如何在Liberty WebSphere IBM的默认服务器中安装一个JAR库。

huangapple go评论83阅读模式
英文:

how to install a jar library in liberty web sphere IBM in default server

问题

我正在尝试在Web Sphere Liberty IBM的默认服务器中安装一个JAR库,我已经尝试将它放在文件夹**..\wlp\lib**中,但服务器无法识别它。
我不知道是否需要XML配置或类似的东西。

有什么可能我做错的想法吗?

我想要放在服务器上的库是:com.ibm.ws.webservices.thinclient_8.5.0.jar

英文:

I am trying to install a jar library in the default server in Web Sphere liberty IBM, I already tried putting it in the folder: ..\wlp\lib but the server doesn't recognize it.
I don´t knoe if I need a xml configuration or some thing like this.

any idea that I may be doing wrong?

the library that i wanna put in the server is: com.ibm.ws.webservices.thinclient_8.5.0.jar

答案1

得分: 2

以下是翻译好的部分:

"wlp/lib" 目录用于存放Liberty功能捆绑包。如果您想安装一个可以被多个应用程序加载的JAR文件,您需要创建一个共享库。创建共享库的说明可在此处找到:https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_classloader.html

还可以安装一个无需进行任何配置更改即可加载的JAR文件 - 这称为全局共享库。要使其生效,您需要将JAR文件复制到wlp/usr/servers//lib/global或wlp/usr/shared/lib/global目录中。更多信息请参考此处:https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_classloader_global_libs.html

还有其他添加JAR文件以使其对应用程序和/或Liberty运行时可用的方法,称为用户特性和产品扩展,但这可能超出了您所寻求的范围。如果您想了解更多关于这些方法的信息,可以在此处找到它们:https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_feat_develop.html

英文:

The wlp/lib directory is intended for Liberty feature bundles. If you want to install a JAR file that can be loaded by multiple applications, you will need to create a shared library. Instructions for creating shared libraries are available here: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_classloader.html

It is also possible to install a JAR file that can be loaded without needing to make any configuration changes - this is called the global shared library. To make that work, you would need to copy the JAR file to the wlp/usr/servers/<serverName>/lib/global or wlp/usr/shared/lib/global directories. More info here: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_classloader_global_libs.html

There are other ways to add JARs to make them available to applications and/or the Liberty runtime called user features and product extensions, but that probably goes beyond what you are looking for. If you want more information on these approaches, you can find them here: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_feat_develop.html

huangapple
  • 本文由 发表于 2020年8月13日 07:42:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/63386068.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定