---
title: "weblogic报java.lang.ClassCastException"
author: "mofeichen"
date: "2015-01-10T20:46:05Z"
tags: []
categories: ["Web前端"]
slug: "weblogic-java-lang-classcastexception"
draft: false
lastmod: "2015-01-10T20:46:05Z"
id: 2174684
url: "https://mofeichen.iteye.com/blog/2174684"
---

&lt;Jun 17, 2011 12:05:00 AM CST&gt; &lt;Critical&gt; &lt;EmbeddedLDAP&gt; &lt;BEA-171522&gt; &lt;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 /app/oracle/base\_domain/servers/AdminServer/data/ldap/backup.&gt;**   
&lt;Jun 17, 2011 12:05:00 AM CST&gt; &lt;Critical&gt; &lt;WebLogicServer&gt; &lt;BEA-000362&gt; &lt;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

 

解决方法：

经查找，此文件的权限变成了root，原来是开始测试启动脚本的时候用root去启动了，忘记用普通用户去启动了

chown -R dmadmin:root **/app/oracle/base\_domain**