weblogic报java.lang.ClassCastException之解决
大多数情况下,我们会对weblogic的domain新建立一个用户,从而用该用户来管理domain,避免多个domain之间出现加载jvm,加载jar包,加载war,加载so文件等死锁或者重复加载异常。我们现在weblogic924上就建立domain,用weblogic去管理,并将
权限分别设置为weblogic,该命令如下:
chown -R weblogic.weblogic /home/weblogic/domains
如果在启动weblogic的时候忘记切换用户用root启动一次后,再次用weblogic启动,就会出现如下错误:
<Aug 7, 2008 3:19:24 PM CST> <Critical> <EmbeddedLDAP> <BEA-171522> <An error occurred while initializing the Embedded LDAP Server. The exception thown is java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot. 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 ./servers/AdminServer/data/ldap/backup.>
<Aug 7, 2008 3:19:24 PM CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
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用户后,启动的时候就会出现权限问题,所以报告上面的错误。
解决办法:
在root用户下,执行:
chown -R weblogic.weblogic /home/weblogic/domains
再次切换到weblogic下启动就没有问题了。
页:
[1]