如何在Weblogic 中热部署共享库?

How to make a hot deployment of a shared library in Weblogic?

我的应用程序 AdfWeb.war 部署在 Weblogic 10.3.6.0。它使用一个经常修改的共享库 my.shared.lib.jar。服务器 运行 处于开发模式。

每次当我尝试使用选项 "Deploy to Application Server" 部署新版本的库时,我都会收到以下错误:

[05:43:49 PM] [Deployer:149034] An exception occurred for task [Deployer:149117] deploy library my.shared.lib [LibSpecVersion=7.1.0,LibImplVersion=1.0.0] on ADFServer.: Cannot undeploy library Extension-Name: my.shared.lib, Specification-Version: 7.1, Implementation-Version: 1.0.0 from server ADFServer, because the following deployed applications reference it: AdfWeb.war. [05:43:49 PM] #### Deployment incomplete. #### [05:43:49 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

该应用程序基于 ADF。我正在使用 JDeveloper 11.1.1.7。 如何在Weblogic 中热部署共享库?现在我总是要停止一个应用程序,这需要很多时间。

您不能在不重新启动应用程序或服务器的情况下对应用程序正在使用的共享库进行热重新部署。

我认为这个人是通过使用库版本来实现的(您可能会感兴趣):

http://andrejusb.blogspot.com/2010/07/redeploy-and-version-adf-shared.html

There are already two versions of our ADF shared library deployed. Because main site doesn't specify, which version of shared library to use, the latest one will be always used automatically.

Because we are using shared library deployment, there is no need to redeploy main site

但最后他证实了我说的话:

We need to reload main site in order to use latest available shared library. Otherwise we would need to restart WLS server in order to pick up latest redamurai.shared.lib library updates

Class 正在加载...