Open WhyNotRunning opened 7 years ago
weblogic报java.lang.ClassCastException:com.octetstring.vde.backend.BackendRoot之解决
如果在启动weblogic的时候忘记切换用户用root启动一次后,再次用weblogic启动,就会出现如下错误:
<Aug 7, 2008 3:19:24 PM CST>
There are 1 nested errors:
java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:273) at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
上面的错误原因主要是在用root用户启动weblogic的时候会在base_domain里产生root权限的文件,或者用root权限的文件覆盖了原来存在的weblogic所属文件,当再次切换到weblogic用户后,启动的时候就会出现权限问题,所以报告上面的错误。 解决办法: sudo chown -R weblogic:weblogic ./base_domain
错误信息
<Jul 17, 2017 2:08:18 PM CST> <Critical> <Security> <BEA-090403> <Authentication for user denied> <Jul 17, 2017 2:08:18 PM CST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.Secur weblogic.security.SecurityInitializationException: Authentication for user denied at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDe at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImp 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 javax.security.auth.log 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
解决: 还原误删除的域密码文件: /Oracle/Middleware/user_projects/domains/base_domain/boot.properties 修改或删除控制台节点密码文件: /Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties 删除旧的控制台节点权限文件夹的内容: /Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/data/ldap