Weblogic并行应用程序部署

Weblogic并行应用程序部署,weblogic,web-deployment,Weblogic,Web Deployment,通过并行应用程序部署,我要说的是消除Weblogic部署中的编辑锁错误 [Deployer:149163]The domain edit lock is owned by another session in non-exclusive mode - this deployment operation requires exclusive access to the edit lock and hence cannot proceed. If you are using "Automatica

通过并行应用程序部署,我要说的是消除Weblogic部署中的编辑锁错误

[Deployer:149163]The domain edit lock is owned by another session in non-exclusive mode - this deployment operation requires exclusive access to the edit lock and hence cannot proceed. If you are using "Automatically Aquire Lock and Activate Changes" in the console, then the lock will expire shortly so retry this operation. -> [Help 1] [Deployer:149163]域编辑锁在非独占模式下由另一个会话拥有- 此部署操作需要以独占方式访问编辑锁,因此无法继续。 如果您在控制台中使用“自动获取锁定并激活更改”, 然后锁将很快过期,请重试此操作。->[帮助1] 我通过谷歌、stackoverflow和甲骨文自己进行了研究,但一无所获

我认为像Weblogic这样强大的软件应该涵盖这一功能, 有人能帮我吗

**编辑1:** 我通过一些Ant脚本进行部署,所以并行部署才是我真正需要的

**编辑2:**
我需要通过一些自动化(如Ant或Maven)进行并行部署,因此手动解锁确实不是我的选择…

似乎之前对配置的修改没有提交。如果您修改了配置(例如通过控制台),但忘记提交,则可能会发生这种情况

打开管理控制台(默认-
http://localhost:7101/console
)登录。成功登录后,查看左上角。在那里,您可以看到一个按钮,在那里您可以激活挂起的更改(或撤销它们)。 然后重试部署

[Deployer:149163]The domain edit lock is owned by another session in non-exclusive mode - this deployment operation requires exclusive access to the edit lock and hence cannot proceed. If you are using "Automatically Aquire Lock and Activate Changes" in the console, then the lock will expire shortly so retry this operation. -> [Help 1]
Peter

转到weblogic管理控制台,在localhost:7001中显示,然后在左侧查看您是否已释放配置,即“释放配置”按钮是否为灰色。如果没有。单击该按钮,然后尝试从IDE重新部署。这至少对我有用:)祝你好运

我的夜间构建部署也有同样的问题

文档告诉您使用非独占部署模式:

使用非独占锁

指定部署操作(部署、重新部署、停止等) on)使用已启用的域上的现有锁 由执行操作的同一用户获取

当用户使用多个属性时,此属性特别有用 部署工具(Ant任务、命令行、管理控制台和 以此类推)同时,其中一个工具已获得锁 在域名上

此属性的有效值为true和false。默认值为 错

来源:

蚂蚁示例:

weblogic.Deployer示例:

java weblogic.Deployer -debug -remote -verbose -name MyWebApp -source MyWebApp.ear -targets server1 -adminurl t3://localhost:7001 -user weblogic -deploy -stage -upload -usenonexclusivelock

我在尝试使用wlst在线脚本部署应用程序时遇到了这个问题。我的编辑模式有问题。我在startEdit()中使用了exclusive=“true”。
这就是我出错的地方

点击释放配置按钮(如果在启用模式下显示),释放锁。这解决了我的问题


我说的是通过一些部署脚本(比如Ant或Maven等)进行并行部署。在Ant示例中,它描述了*在另一个示例中,它不会失败,而是优雅地存在,让您在释放锁时应用部署*,然后使用
nonexclusivelock
选项我更喜欢它挂起,直到它完成部署,或者一个错误也打断了它,但它似乎是并行部署的唯一选项。