Thursday, March 01, 2012

WebLogic 11g Exclusive Lock Errors

While developing with JDeveloper 11g, there may be a time when Integrated WLS does not shut down properly and on restart, IWLS throws exclusive lock or persistent store errors.

Below are the errors you may receive, in order, and how to resolve them:

<Warning> <EmbeddedLDAP> <BEA-171520> <Could not obtain an exclusive lock for directory: /.jdeveloper/system11.1.1.5.37.60.13/DefaultDomain/servers/DefaultServer/data/ldap/ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>


Go to the folder detailed in the error (the path may be a hidden depending on your OS). Delete the .lok file in the indicated folder.

<Mar 1, 2012 1:05:17 PM EST> <Error> <Store> <BEA-280061> <The persistent store "_WLS_DefaultServer" could not be deployed: weblogic.store.PersistentStoreException: [Store:280105]The persistent file store "_WLS_DefaultServer" cannot open file _WLS_DEFAULTSERVER000000.DAT.


Staying in the data folder, go to /store/default and delete the file indicated in the error.

<Mar 1, 2012 1:15:41 PM EST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: There are 1 nested errors: weblogic.store.PersistentStoreException: [Store:280105]The persistent file store "WLS_DIAGNOSTICS" cannot open file WLS_DIAGNOSTICS000000.DAT.


Staying in the data folder, go to /store/diagnostics and delete the file indicated in the error.