我正在尝试使用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应用程序安装而不是共享库部署的。为什么?
答案 0 :(得分:1)
在使用deploy()函数时,必须将选项libraryModule设置为true,以强制将模块部署为共享库。
答案 1 :(得分:0)
您必须对第四个参数使用libraryModule ='true':
deploy(name, path, targets, libraryModule='true')