BEA-141297 - 无法获取服务器文件锁

BEA-141297 - Could not get the server file lock

尝试启动 Oracle Weblogic Server 时遇到以下错误:

<Info> <Management> <BEA-141297> <Could not get the server file lock. Ensure that another server is not running in the same directory. Retrying for another 60 seconds.>

如何克服这个错误并启动服务器?

该错误表示存在无法释放的文件锁,因为之前未正确关闭服务器。

在这种情况下,您必须执行以下步骤:

  • 导航到 $DOMAIN_HOME 目录中的 tmp 文件夹。 (例如:C:\Oracle\Middleware\Oracle_Home\user_projects\domains\mydomain\servers\AdminServer\tmp
  • 删除服务器实例的锁定文件,AdminServer.lok
  • 检查是否有 java.exe 个进程 运行,不应该存在。有的话就得杀了
  • 重启你的服务器