2013-12-13 156 views
4

当我尝试从本地计算机启动weblogic服务器(该服务器在另一台服务器上运行)时,出现以下错误。我可以停止这个weblogic服务器没有任何问题,但我无法启动。 boot.properties文件中有用户名和密码字段,但我不知道它们是什么。有什么想法吗?远程weblogic服务器身份异常

<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 

回答

1

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

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

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

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

Here is link其中显示了如何创建和找到这个propreties。

如果它没有找到或无法改写它,就可以启动服务器,而不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
    启动命令行服务器后,它将再次加密automitically。
  2. 完全删除ManagedServerDir/data/ldap目录。
  3. 在删除文件之前始终保留文件的备份
  4. 现在尝试从命令提示符启动服务器,并提供用于登录到管理控制台的用户名/密码。

,发现了这个提示从weblogictips user of same forum

我想起以前尝试这些技巧,你应该检查你的身份验证提供域。如果是外部的,则可能需要重置外部ldap的密码。

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

服务器通过管理 控制台/ WLST启动的情况下,

唯一的区别是,你必须移动节点管理器目录也 目前是doamin_home /服务器/ MS1 /数据/节点管理器


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

+0

我有boot.properties文件,我保存了我的用户名和密码,但错误仍然存​​在。问题是我可以在本地启动这个weblogic服务器,但是我无法远程启动它。我需要额外做些什么吗? – hellzone

+0

你有简单的管理服务器或更多的服务器?你可以检查节点管理器的boot.properties?你可以在'DOMAIN_HOME/servers/server_name/data/nodemanager'找到。 – herry

+0

但是,如果您可以在本地启动weblogic,则不是错误的用户名/ passworld问题。你如何启动本地weblogic以及如何远程? – herry

2

只是删除文件,该文件是ManagedServerDir /数据/ LDAP &重启域YOURDOMAIN/bin ./startWeblogic.sh