Weblogic启动报错信息如下:Server subsystem failed. Reason: weblogic.security.SecurityInitializationException:

报错信息:

<Oct 23, 2015 9:35:26 AM 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; 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(Unknown Source)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)
        at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)
        at weblogic.security.SecurityService.start(SecurityService.java:141)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        Truncated. see log file for complete stacktrace

<Oct 23, 2015 9:35:26 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED> 
<Oct 23, 2015 9:35:26 AM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down> 
<Oct 23, 2015 9:35:26 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

解决方式:

weblogic.security.SecurityInitializationException: Authentication denied: Boot.properties

weblogic启动过程中,如果出现以下类似的错误的话,很有可能是boot.properties的用户名,密码错误的问题,。

weblogic.security.SecurityInitializationException: Authentication denied: Boot.properties 

重新设定weblogic的用户名和密码参照我的博客:

https://blog.youkuaiyun.com/u013310119/article/details/80770878

原理:
在domain下,有个配置文件boot.properties,在第一次启动时,用户名和密码为明文,启动weblogic成功后,就自动将用户名和密码加密了。
boot.properties示例:
明文:
password=weblogic
username=weblogic
密文:
password={3DES}TEhJGBWLgld4CJFYrA82iw\=\=
username={3DES}TEhJGBWLgld4CJFYrA82iw\=\=

在domain/SERVER_NAME/ldap下的文件中,保存了weblogic的用户认证信息,将其删除,weblogic在启动时就会以明文的方式使用boot.properties中重设的用户名和密码。

### WebLogic 认证失败解决方案 当遇到 `Authentication for user weblogic denied` 或者由其引发的 `weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not authenticated` 错误时,这通常意味着WebLogic服务器无法验证用于启动的身份凭证。此问题可能源于多个方面。 #### 验证 boot.properties 文件配置 确保 `boot.properties` 文件位于正确的路径下,并且已正确加密。该文件应放置于域的安全目录内,例如 `/home/weblogic/domains/testdomains/servers/AdminServer/security/`[^2]。如果手动创建了这个文件,则需确认其中的内容格式无误: ```properties username=weblogic password=mypassword ``` 注意:上述内容仅为示例,在实际环境中不应明文存储密码;应当利用WebLogic提供的工具来加密这些信息并保存到文件中。 #### 使用命令行工具更新 boot.properties 为了防止因手动生成而导致错误,建议采用官方推荐的方法——通过WLST (WebLogic Scripting Tool) 来设置管理员账户的信息。这样可以自动处理好所有必要的编码工作: ```bash $MW_HOME/oracle_common/common/bin/wlst.sh connect('weblogic','mypassword','t3://localhost:7001') edit() startEdit() cd('/SecurityConfiguration/base_domain/User/WebLogic') cmo.setPassword('new_password') save() activate() exit() ``` 以上脚本会连接至正在运行中的管理服务器实例,并更改指定用户的密码。完成之后重启服务即可使新设置生效[^1]。 #### 检查日志记录级别 适当调整诊断日志等级可以帮助更深入地了解为何身份验证过程出现问题。可以在控制台上修改全局或特定组件的日志阈值,以便收集更多关于登录尝试期间发生的事件详情。 #### 审核权限与环境变量 还需审查操作系统层面的因素,比如检查是否有足够的磁盘空间可用、SELinux策略是否阻止访问敏感资源以及JAVA_HOME和其他重要环境参数是否被正确定义等。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

李晓LOVE向阳

你的鼓励是我持续的不断动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值