Weblogic之domain启动,设置默认用户名和密码 以及遇到的问题

Weblogic的domain实例在启动,需要设置默认密码等。如果在启动的时候,没有设置默认密码,会出现异常。

下面来写一下domain实例启动,密码设置(再次启动可以不用再输入密码),服务部署和数据源配置:

步骤1:
在控制台,进入到domain实例的安装目录,在Linux控制台,执行:
sh startWeblogic.sh

在这里插入图片描述

启动时,需要手动输入用户名和密码。

启动完成后,执行命令:
netstat -ntlp查看端口。

步骤2:设置启动不用再次输入用户名密码
在这里插入图片描述
在这里插入图片描述
创建domain时候设置的用户名和密码,如我创建domain时的用户名和密码时 weblogic/12345678
那么boot.properties中的内容为:

username=weblogic 
password=password

启动时遇到的问题,如下:
在这里插入图片描述

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:888)
    at weblogic.security.SecurityService.start(SecurityService.java:141)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    Truncated. see log file for complete stacktrace
Caused By: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User bhybt_dev javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User bhybt_dev denied
    at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
    at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Truncated. see log file for complete stacktrace
>
<Dec 15, 2018 10:40:53 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Dec 15, 2018 10:40:53 AM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Dec 15, 2018 10:40:53 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

当时的分析:
1)密码错误,重装了好几次,密码一定没问题,排除;
2)安装完后,在启动前,需要再xxxServer下建个密码文件文件,明文用户名,密码,也没问题

最后,抱着试试心态,用户名使用了默认的 weblogic,就可以了!!!!

关于weblogic部署服务和配置数据源,就不写了,下一篇,会写一下 shell脚本启停weblogic服务

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值