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

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

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

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

Weblogic之domain启动,设置默认用户名和密码 以及遇到的问题_第1张图片

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

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

步骤2:设置启动不用再次输入用户名密码
Weblogic之domain启动,设置默认用户名和密码 以及遇到的问题_第2张图片
Weblogic之domain启动,设置默认用户名和密码 以及遇到的问题_第3张图片
创建domain时候设置的用户名和密码,如我创建domain时的用户名和密码时 weblogic/12345678
那么boot.properties中的内容为:

username=weblogic 
password=password

启动时遇到的问题,如下:
Weblogic之domain启动,设置默认用户名和密码 以及遇到的问题_第4张图片

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
>
    
    
    

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

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

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

你可能感兴趣的:(Weblogic)