Weblogic在启动的时“./myserver/ldap/ldapfiles”文件锁定异常
在Weblogic中新建了一个domain,电脑没有关之前没有任何错误,但是电脑一重启之后,再去启动Webligc的domain就会出现启动文件被锁定的错误。
<2008-10-23 上午09时05分28秒 CST> <Critical> <WebLogicServer> <BEA-000364> <Serv
er failed during initialization. Exception:weblogic.server.ServiceFailureExcepti
on: Could not obtain an exclusive lock to the embedded LDAP data files directory
: .\myserver\ldap\ldapfiles because another WebLogic Server is already using thi
s directory. Ensure that the first WebLogic Server is completely shutdown and re
start the server.
weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to t
he embedded LDAP data files directory: .\myserver\ldap\ldapfiles because another
WebLogic Server is already using this directory. Ensure that the first WebLogic
Server is completely shutdown and restart the server.
at weblogic.ldap.EmbeddedLDAP.ensureExclusiveAccess(Ljava/lang/String;)V
(EmbeddedLDAP.java:960)
at weblogic.ldap.EmbeddedLDAP.initialize()V(EmbeddedLDAP.java:222)
at weblogic.t3.srvr.T3Srvr.initializeHere()V(T3Srvr.java:815)
at weblogic.t3.srvr.T3Srvr.initialize()V(T3Srvr.java:669)
at weblogic.t3.srvr.T3Srvr.run([Ljava/lang/String;)I(T3Srvr.java:343)
at weblogic.Server.main([Ljava/lang/String;)V(Server.java:32)
>
解决方法1:先在进程中结束beasvc,然后删除bea/user_projects/domains/mydomain/myserver/ldap/ldapfiles下的EmbeddedLDAP.lok文件
解决方法2:再建一个domain
解决方法3:出现这样的问题是当计算机启机时把weblogic中的beasvc.exe当成一个服务自动起来的,所以当再一次启动Weblogic的start server时,系统会提示已经有一个weblogic启来了.因此只要在服务中把beasvc.exe禁用就可 以了.