远程Weblogic服务器身份异常

hel*_*one 4 weblogic weblogic12c

当我尝试从本地计算机启动weblogic服务器(在另一台服务器上运行)时,出现以下错误。我可以毫无问题地停止此weblogic服务器,但无法启动。boot.properties文件中有用户名和密码字段,但我不知道它们是什么。有什么主意吗

<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; 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.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:960)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:148)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
Run Code Online (Sandbox Code Playgroud)

Poy*_*raz 5

只需删除ManagedServerDir / data / ldap文件并重启域yourdomain / bin ./startWeblogic.sh


her*_*rry 4

您可以将用户名和密码保存在 boot.properties 文件中。

\n\n

在生产模式下,boot.properties 文件不存在\xe2\x80\x99。需要在中创建这个文件

\n\n
$DOMAIN_HOME/servers/AdminServer/security\n
Run Code Online (Sandbox Code Playgroud)\n\n

我认为你需要检查这个路径和这个属性。可能是密码或用户名不正确。

\n\n

这是显示如何创建和查找此属性的链接。

\n\n

如果找不到或无法重写它,您可以在没有 boot.properties 文件的情况下启动服务器:

\n\n
java -Dweblogic.management.username=username-Dweblogic.management.password=password -Dweblogic.system.StoreBootIdentity=true -Dweblogic.Name=myAdminServer weblogic.Server\n
Run Code Online (Sandbox Code Playgroud)\n\n

我在这个页面找到了这个脚本

\n\n
\n\n

编辑:

\n\n

现在我在另一个 论坛找到了一些有用的提示中找到了一些有用的提示。

\n\n
    \n
  1. 编辑 boot.properties 文件,使用纯文本用户名和密码,而不是加密的,例如:\n\n
    \n用户名: weblogic \n密码: Weblogic1\n
    \n从命令行启动服务器后,它将再次自动加密。
  2. \n\n
  3. 完全删除 ManagedServerDir/data/ldap 目录。
  4. \n\n
  5. 在删除文件之前始终保留文件的备份
  6. \n\n
  7. 现在尝试从命令提示符启动服务器并提供用于登录管理控制台的用户名/密码。
  8. \n
\n\n

并从同一论坛的 weblogictips 用户那里找到了这个提示:

\n\n

我认为在尝试这些提示之前,您应该检查域的身份验证提供商。如果是外部的,那么您可能需要从外部 ldap 重置密码。

\n\n
\n

如果本地存在,还要移动 ldap dir 和 boot.properties 文件。

\n\n

通过管理\n控制台/WLST启动服务器的唯一区别是您还必须移动nodemanager目录\n存在的是doamin_home/servers/ms1/data/nodemanager

\n
\n\n
\n\n

我希望这些提示对您有所帮助。如果没有,请尝试删除所有 boot.properties 文件中的用户名和密码(不需要username=在文件中删除)并从头开始...

\n

  • 我删除了 ldap 目录并将用户名和密码更改为纯文本。当我远程启动服务器后,它再次创建 ldap 目录并加密用户名和密码,但错误仍然存​​在。我发现有很多人处理这个错误,而且很多人都无法解决。Oracle 论坛上有数百个关于此错误的主题,但没有一个得到解决。我认为这个错误要么是一个错误,要么是weblogic服务器不完全支持集群。 (2认同)