weblogic 启动 startWebLogic.sh 的时候报错。
Error creating logFile: /opt/pinweb/10_3domains/base_domain/servers/AdminServer/data/ldap/log/EmbeddedLDAP.log (Permission denied (errno:13))
<Sep 5, 2016 2:45:34 PM GMT+08:00> <Error> <EmbeddedLDAP> <BEA-000000> <Error opening the Transaction Log: /opt/pinweb/10_3domains/base_domain/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.tran (Permission denied (errno:13))>
<Sep 5, 2016 2:45:34 PM GMT+08:00> <Error> <EmbeddedLDAP> <BEA-000000> <Error Instantiating 'dc=base_domain': null>
<Sep 5, 2016 2:45:34 PM GMT+08:00> <Critical> <EmbeddedLDAP> <BEA-171522> <An error occurred while initializing the Embedded LDAP Server. The exception thrown is java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot cannot be cast to com.octetstring.vde.backend.standard.BackendStandard. This may indicate a problem with the data files for the Embedded LDAP Server. If the problem is with the data files and it can not be corrected, backups of previous versions of the data files exist in /opt/pinweb/10_3domains/base_domain/servers/AdminServer/data/ldap/backup.>
<Sep 5, 2016 2:45:34 PM GMT+08:00> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot cannot be cast to com.octetstring.vde.backend.standard.BackendStandard
at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:303)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
原因是:
启动的时候用了不同的账户启动。首先用了root 启动,导致一些启动文件的权限是root,后面再用其它用户启动的时候无法写这些文件。
解决方法:
修改相关文件夹的权限,统一下来。