Weblogic92选择产品模式的时候,报了一个异常,但是选择开发模式的时候却能正常运行,这是为什么呢?
<Oct 21, 2011 10:09:08 AM GMT+08:00> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication for user denied
weblogic.security.SecurityInitializationException: Authentication for user denied
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:947)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1029)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:854)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrac
解决:
在对应的domains目录下,例如
[/prodigy/weblogic/user_projects/domains/devdomain/servers/gxServer1]ls
cache data logs security stage tmp
[/prodigy/weblogic/user_projects/domains/devdomain/servers/gxServer1]cd security
[/prodigy/weblogic/user_projects/domains/devdomain/servers/gxServer1/security]ls
boot.properties
[/prodigy/weblogic/user_projects/domains/devdomain/servers/gxServer1/security]
在此目录下用vi创建文件boot.properties文件,输入如下内容:
username=weblogic
password= weblogic
输入完毕后,保存退出即可