WebLoigic文件被锁解决方案

来源:互联网 发布:可以ps图片的软件 编辑:程序博客网 时间:2024/06/15 14:32

启动WebLogic时有如下提示:

>weblogic.management.ManagementException: Unable to obtain lock on *******/AdminServer.lok. Server may already be running

此时domain被死锁,不能stop服务。需要终止进程。

这时应该使用"fuser -u 文件名"这个命令查找该文件是被哪个进程死锁。例如:

fuser -u *******/AdminServer.lok

*******/AdminServer.lok 1800958

kill 1800958

再尝试启动WebLogic看是否还被死锁。

如果不能解决,尝试删除该文件,再重启时将出现以下的错误:

Could not obtain an exclusive lock for directory: ***********/servers/AdminServer/data/ldap/ldapfiles.
Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>

An error occurred while initializing the Embedded LDAP Server. The exception thown is java.lang.ClassCastException:
com.octetstring.vde.backend.BackendRoot. This may indicate a problem with the data files for the Embedded LDAP Server
. If the problem is with the data files and it can not be corrected, backups of previous versions of the data files
exist in *********/servers/AdminServer/data/ldap/backup.>

<Error opening the Transaction Log: *********/AdminServer/data/ldap/ldapfiles/
EmbeddedLDAP.tran (权限被否定)>

删除ldapfiles目录(记得备份),重启时提示:

Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.>
<YYYY-MM-DD 下午HH时MM分SS秒 CST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason:
weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.

启动错误:weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid;

该错误表明启动身份文件 (boot.properties) 中的用户名和/或密码无效。可能是在创建启动身份文件后更改过启动身份。请使用正确的用户名和密码编辑和更新启动身份文件。首次使用更新后的启动身份文件启动服务器时会将这些新值加密。解决方法:以明文形式更改 boot.properties 中的参数值。“boot.properties”通常位于域根目录中安装weblogic92后,创建了一个域***domain,然后在$BEA_HOME/user_projects/domains**servers/AdminServer/security目录下也存在一个boot.properties文件。

附说明:

fuser -u 文件名

对于文件被死锁使用命令:#fuser -u 文件名,可以查找出由哪个进程造成的死锁。


更多文章请点击熊猫TEAM

0 0
原创粉丝点击