Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

got error while running weblogic from the unix environment

 
Uma Mahi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I went the folder where the weblogic resides and i run the startWeblogic.sh

while running weblogic from the unix server i got the error
"Exception raised: 'weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: ./adminserver/ldap/ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.'
Reason: weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: ./adminserver/ldap/ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.
 
Manhar Puri
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try the command ps | grep java or maybe ps -e | grep java.

There is another instance of weblogic running which you need to kill before being able to run your of weblogic.
 
Uma Mahi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to kill the weblogic instance which is already running?
 
Manhar Puri
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ps command should give you the process id and then use the kill command.

If you gerp for java it should give all java processes, if there are more than one then i am not sure how you will determine which one is the weblogic instance you want to kill

kill -9 should kill the process, but please look up kill's manual for details.

-Manhar.
[ June 15, 2006: Message edited by: Manhar Puri ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic