首页 > 代码库 > weblogic.management.ManagementException: The domain edit lock is owned by another session in ...

weblogic.management.ManagementException: The domain edit lock is owned by another session in ...

    今天启动 weblogic 10.3.6 时老是报这个异常:

<Error> <Application Poller> <BEA-149408> <An exception occurred while deploying an application _appsdir_G2_dir: weblogic.management.ManagementException: weblogic.management.ManagementException: [Deployer:149164]The domain edit lock is owned by another session in exclusive mode - hence this deployment operation cannot proceed..
weblogic.management.ManagementException: weblogic.management.ManagementException: [Deployer:149164]The domain edit lock is owned by another session in exclusive mode - hence this deployment operation cannot proceed.
	at weblogic.management.deploy.ApplicationsDirPoller.doActivate(ApplicationsDirPoller.java:246)
	at weblogic.management.deploy.GenericAppPoller.doit(GenericAppPoller.java:275)
	at weblogic.management.deploy.ApplicationsDirPoller.<init>(ApplicationsDirPoller.java:97)
	at weblogic.management.deploy.ApplicationsDirPoller.<init>(ApplicationsDirPoller.java:107)
	at weblogic.management.deploy.internal.DeploymentServerService.startAutoDeploymentPoller(DeploymentServerService.java:322)
	Truncated. see log file for complete stacktrace
> 

    网上的答案都是说进入控制台后会看左上角“锁定并编辑”按钮是灰色,点击“释放配置”,然后重启 weblogic 即可,但我通过 http://127.0.0.1:7001/console/ 进入 weblogic 的控制台后并没有看到他们所说的按钮,查询资料后得知解决办法如下(完成下述步骤后,页面左上解将显示如图所示的两个按钮):
技术分享

    进入控制台后,依次点击 “首选项” --> “用户首选项” --> 去掉“自动获取锁并激活更改”前面的勾,点击“保存”,然后在控制台的左上角就能看到上图红色区域中的按钮了,这时时候再点击“释放配置”即可,操作完成后不要忘了重启 weblogic,下面是操作图解:

技术分享

weblogic.management.ManagementException: The domain edit lock is owned by another session in ...