`
jiaoronggui
  • 浏览: 1304253 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
博客专栏
B7c2eb31-a8ea-3973-a517-d00141f39b89
项目管理软件-redmin...
浏览量:115279
4a63e153-250f-30f6-a051-97cfc67cb3d3
IT职业规划
浏览量:197758
社区版块
存档分类
最新评论

weblogic启动用户不对导致的weblogic报java.lang.ClassCastException

阅读更多

今天,现场维护的小伙子发回来一个weblogic错误日志,weblogic10.3.6版本,服务器为redhat linux操作系统

 

 

 

<Jul 27, 2009 10:47:51 AM CST> <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 /home/***/*_domain/servers/AdminServer/data/ldap/backup.> 


<Jul 27, 2009 10:47:51 AM CST> <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:273)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

>

 

导致的结果是无法生成静态文件,通过几个消息奋斗,终于找到原因,原因就是小伙子使用了root用户来启动weblogic,但是weblogic的目录目录是开放给weblogic这个用户和用户组,所以导致了该错误,解决方案

 

第一步、kill掉现在启动weblogic
使用kill pid来

第二部、修改weblogic目录的用户权限

chown -R bea:bea weblogic【其中bea:bea】分别是用户组和用户,weblogic是weblogic的安装目录;

第三部、使用service weblogic start启动weblogic服务器,问题解决;


 

终极解决方案是

1、不用使用root用户通过脚本方式启动weblogic
2、通过service weblogic start方式启动weblogic

 

1
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics