Jakarta ee WLST:部署共享库不起作用

Jakarta ee WLST:部署共享库不起作用,jakarta-ee,jax-rs,weblogic,wlst,Jakarta Ee,Jax Rs,Weblogic,Wlst,我正在尝试使用WLST部署jax-rs共享库。以下是实施方案: deploy(name, path, targets, 'true') 这是日志 Starting an edit session ... Started edit session, be sure to save and activate your changes once you are done. Deploying application from /u01/oracle/user_projects/domains/Kkv

我正在尝试使用WLST部署jax-rs共享库。以下是实施方案:

deploy(name, path, targets, 'true')
这是日志

Starting an edit session ...
Started edit session, be sure to save and activate your changes once you are done.
Deploying application from /u01/oracle/user_projects/domains/KkvA4/../../../wlserver/common/deployable-libraries/jax-rs-2.0.war to targets KkvA4Cluster (upload=false) ...
You have an edit session in progress, hence WLST will not block for your deployment to complete.
Started the Deployment of Application. Please refer to the returned WLSTProgress object or variable LAST to track the status.
Saving all your changes ...
Saved all your changes successfully.
Activating all your changes, this may take a while ... 
The edit lock associated with this edit session is released once the activation is completed.
Activation completed
Successfully disconnected from Node Manager.

但是,该库是作为web应用程序安装部署的,而不是作为共享库部署的。为什么?

使用部署功能时,必须将选项libraryModule设置为true,以强制将模块部署为共享库。

必须将libraryModule='true'用于第四个参数:

deploy(name, path, targets, libraryModule='true')