header

WebLogic Fails to Start with Error "PersistentStoreException" or "Couldn't obtain an exclusive lock to the embedded LDAP data files directory"

This problem occurs if you kill the WebLogic process via kill -9 on Unix or via CTL+C from the PIA command prompt on a Windows system.



Make sure that no other java process is using the same port that this server is trying to acquire. If there is another process using this port, you will need to either change the port WebLogic uses or the port for the process that is already running. This can be done through netstat or on Unix, by listing all of the running java processes with "ps -ef|grep java".

OPTION #1:
============
To resolve the error, remove the ldap directory from:
    For PeopleTools 8.44 to 8.48: \webserv\\\
    For PeopleTools 8.49+: \webserv\\servers\\data\

There is file called EmbeddedLDAP.lok that is created under the ldapfiles folder (within the ldap directory). If this file is present, the server cannot boot and you will see the exceptions above.

This file is normally unlocked on shutdown, but if the previous shutdown occurred in an abnormal way, such as a crash, then this file may not be unlocked properly and the server will generate those exceptions.

OPTION #2:
===========
Remove the *.DAT and EmbeddedLDAP.lok files.

1. Make sure the server is stopped.
2. Go to the following directory
     For PeopleTools 8.44 to 8.48: \webserv\\\ldap\ldapfiles
     For PeopleTools 8.49+: \webserv\\servers\\data\ldap\ldapfiles
3. Remove "EmbeddedLDAP.lok"
4. Remove "*.DAT"
5. Restart WebLogic.

No comments: