【问题标题】:remote weblogic server identity exception远程 weblogic 服务器标识异常
【发布时间】:2013-12-13 13:38:34
【问题描述】:

当我尝试从本地计算机启动 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

【问题讨论】:

    标签: weblogic weblogic12c


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

      在生产模式下,boot.properties 文件不存在。需要在

      中创建这个文件
      $DOMAIN_HOME/servers/AdminServer/security
      

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

      Here is link 显示如何创建和查找此属性。

      如果找不到或者无法重写,可以不用boot.properties文件启动服务器:

      java -Dweblogic.management.username=username-Dweblogic.management.password=password -Dweblogic.system.StoreBootIdentity=true -Dweblogic.Name=myAdminServer weblogic.Server
      

      这个脚本,我在this page.找到


      编辑:

      现在我在anotherforum 中找到了一些有用的提示。

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

      并从weblogictips user of same forum找到这个提示:

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

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

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


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

      【讨论】:

      • 我有 boot.properties 文件,我保存了我的用户名并通过了,但错误仍然存​​在。问题是我可以在本地启动这个 weblogic 服务器,但我无法远程启动它。我需要做一些额外的事情吗?
      • 你有简单的管理服务器还是更多的服务器?你能检查节点管理器 boot.properties 吗?你可以在DOMAIN_HOME/servers/server_name/data/nodemanager找到。
      • 但是如果你可以在本地启动 weblogic,那么这不是用户名/密码错误的问题。如何在本地启动 weblogic,如何远程启动?
      • 我在远程机器“AdminServer”和“myServer”上有 2 个服务器实例。我的本地机器上还有两台服务器,分别称为“AdminServer”和“myServer”(该服务器指向远程“myServer”)。我可以从管理控制台在远程计算机上启动“myServer”而没有任何问题,但是当我尝试使用管理控制台再次从本地计算机运行“myServer”时,它会出现此错误。
      • 我删除了 ldap 目录并将用户名和密码更改为纯文本。在我远程启动服务器后,它再次创建 ldap 目录并加密用户名和密码,但错误仍然存​​在。我发现有很多人在处理这个错误,其中很多人无法解决。 Oracle 论坛上有数百个有关此错误的主题,但都没有解决。我认为这个错误要么是一个错误,要么是 weblogic 服务器不完全支持集群。
      【解决方案3】:

      当我不小心更改了 boot.properties 中的用户名和密码时,我收到了这个错误,我花了一段时间才弄清楚原因。 它具有出于安全目的的加密用户名和密码,并且为了重置它,我必须删除加密的用户名和密码,并以该文件期望的相同模式输入正确的用户名和密码。但是 weblogic 启动仍然失败,原因是由于 LDAP 连接使用了我之前输入的错误凭据,所以我从服务器文件夹中删除了“数据”文件夹以及 tmp、缓存和安全性。它的工作原理是使用新的 weblogic 凭据创建 ldap。

      当您在服务器目录中进行任何更改以恢复时保留备份,以防万一解决方法没有帮助。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-09-07
        • 1970-01-01
        • 2018-10-12
        • 1970-01-01
        • 2016-07-17
        • 1970-01-01
        • 2020-05-27
        相关资源
        最近更新 更多