December 5, 2010

BEA-171520 and "Could not obtain an exclusive lock for directory" when starting up WebLogic 11g AdminServer


If you have configured your Oracle WebLogic 11g server to perform LDAP authenticaion, when starting up the WebLogic 11g AdminServer, you may receive the following error:
<Dec 3, 2010 8:58:34 AM EST> <Warning> <EmbeddedLDAP> <BEA-171520> <Could not obtain an exclusive lock for directory: /u01/app/oracle/middleware/user_projects/domains/soa_domain/servers/AdminServer/data/ldap/ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>

Upon investigating the AdminServer log file, located here:
You may notice the following, which pretty much indicates the same thing:
####<Dec 3, 2010 8:58:54 AM EST> <Warning> <EmbeddedLDAP> <oradev> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1291384734208> <BEA-171520> <Could not obtain an exclusive lock for directory: /u01/app/oracle/middleware/user_projects/domains/soa_domain/servers/AdminServer/data/ldap/ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>
After shutting down the AdminServer, do a 'ps' for the remaining running processes, and you may find lingering processes which may have to manually be killed.
oracle@oradev:/home/oracle> ps -ef | grep soa | grep -v grep
oracle   29085 24648  0 09:32 pts/3    00:00:00 /bin/sh /u01/app/oracle/middleware/user_projects/domains/soa_domain/bin/
oracle   29133 29085 45 09:32 pts/3    00:00:37 /u01/app/oracle/jdk1.6.0_21/bin/java -server -Xms768m -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=512m -Dweblogic.Name=AdminServer -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/u01/app/oracle/middleware/wlserver_10.3 -Dwls.home=/u01/app/oracle/middleware/wlserver_10.3/server -Dweblogic.home=/u01/app/oracle/middleware/wlserver_10.3/server -Ddomain.home=/u01/app/oracle/middleware/user_projects/domains/soa_domain -Dcommon.components.home=/u01/app/oracle/middleware/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=/u01/app/oracle/middleware/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.domain.config.dir=/u01/app/oracle/middleware/user_projects/domains/soa_domain/config/fmwconfig -Doracle.server.config.dir=/u01/app/oracle/middleware/user_projects/domains/soa_domain/config/fmwconfig/servers/AdminServer -Digf.arisidbeans.carmlloc=/u01/app/oracle/middleware/user_projects/domains/soa_domain/config/fmwconfig/carml -Digf.arisidstack.home=/u01/app/oracle/middleware/user_projects/domains/soa_domain/config/fmwconfig/arisidprovider -Dweblogic.alternateTypesDirectory=/u01/app/oracle/middleware/Oracle_SOA1/modules/oracle.ossoiap_11.1.1,/u01/app/oracle/middleware/Oracle_SOA1/modules/oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=true -da:org.apache.xmlbeans... -Dsoa.archives.dir=/u01/app/oracle/middleware/Oracle_SOA1/soa -Dsoa.instance.home=/u01/app/oracle/middleware/user_projects/domains/soa_domain -Dtangosol.coherence.clusteraddress= -Dtangosol.coherence.clusterport=9778 -Dtangosol.coherence.log=jdk|oracle.fabric.common.classloaderurl.handler|oracle.fabric.common.uddiurl.handler| -Dweblogic.transaction.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Djava.awt.headless=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u01/app/oracle/middleware/patch_wls1033/profiles/default/sysext_manifest_classpath weblogic.Server

1. Shutdown the AdminServer

2. Do a "ps -ef | grep oracle | grep -v grep" and observe and see if you have any lingering processes

3. If so, then do a "kill <processid>"

4. If that doesn't kill the process gracefully, then do a "kill -9 <processid>"

5. Restart the AdminServer and you should be okay

Applicable Versions:
  • Oracle WebLogic 11g (11.1.1.x)


  1. AnonymousMay 15, 2012

    Thanks Ahmed That was really helpful :)

  2. Thanks really worksss :)

  3. Worked...!!!

  4. Thanks it worked

  5. Il RasenBallsport Leipzig e.V. (abbreviato RB Leipzig – in italiano RB Lipsia – e anche noto impropriamente come Red Bull Leipzig), è una società calcistica tedesca con sede nella città di Lipsia, in Sassonia.magliette calcio
    maglie calcio 2017,
    maglie calcio poco prezzo, Maglia inter milan outlet

  6. Our Dolphins Flag is constructed of polyester, measures 3x5 feet, and has two metal grommets for attaching to a traditional flagpole, tailgate pole, or our 6' aluminum flagpole. The perimeter of our Dolphins Flag is double stitched and the Officially Licensed NFL Miami Dolphins team logos are dye sublimated into the flag so they won't peel. Due to its large size, this flag is also perfect to hang in your game room, sports room, office, or kids room.
    nfl house divided flags
    dallas cowboys american flagTampa Bay Buccaneers house divided flags
    Tennessee Titans house divided flags

  7. This blog explains the details about changing the ways of doing that business. That is understand well and doing some different process. Provides he best output of others. Thanks for this blog.
    Digital Marketing Company in Chennai

  8. Thank you for sharing such a nice and interesting blog with us. Hope it might be much useful for us. keep on updating...!!
    seo company in india
    digital marketing company in india
    seo company in chennai
    digital marketing company in chennai

  9. Hi,
    It looks like you spend a large amount of time and effort in writing the blog. I am appreciating your effort. It Was Very Good Information I Was Really happy to read This Article.
    Thank you,
    Oracle Financials training

  10. Thank you, it worked for me !!!

  11. AnonymousJune 30, 2020

    Дамская сумочка – поистине предмет люксовости. Мануфактурщики постоянно экперементируют с цветом и формой, создавая крутые сумки из разных кож. И конечно наряду с этими креативными остаются постоянно топовыми традицонные сумочки из кожи, стильные и подкупающие непосредственной элегантностью и высоким стилем. Настоящая натуральная кожа, идеальная фурнитура, большой опыт и акцент последних веяний итальянской моды мотивируют создаетеле сумки официальный каталог на производство лучших идеальных женских сумочек. Лучшим хитом стала желтая кожаная торба. Обогащенная стильными квадратами из золотистых клепок - станет лучшим дополнением твоего имиджа! Попуупайте красную, чтобы выглядеть изысканно и привлекатьмужские взоры.