This content has been marked as final. Show 6 replies
I am having a problem restarting my Oracle WebLogic Server 10.3.
If I try to restart or republish my server, it gives me the error 'weblogic.management.ManagementException: Unable to obtain lock on D:\user_projects\userdomain\servers\AdminServer\tmp\AdminServer.lok. Server may already be running'.
This problem happens only when the server is inactive for a while. Say, if I leave the server running overnight without any activity, the server state reads stopped in the morning, even though background java processes are still running. Now, at this point, it doesn't let me restart or republish my server until I explicitly kill all the java process from windows task manager.
Any help to solve this highly frustrating problem is gratefully appreciated. BTW, this happens on development systems, running on windows, using Oracle Workshop for WebLogic v10.3.
There are 1 nested errors:
weblogic.management.ManagementException: Unable to obtain lock on D:\user_projects\userdomain\servers\AdminServer\tmp\AdminServer.lok. Server may already be running
<May 11, 2009 9:16:50 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<May 11, 2009 9:16:50 AM PDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<May 11, 2009 9:16:50 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Stopping PointBase server...
PointBase server stopped.
I'm having the same issue and have verified there are no java or weblogic processes running. I believe one fix is to delete some .lok files but I'm not sure which ones. Hopefully someone will respond.
Please delete the following file
I believe your domain name is userdomain.
Remove the file
It will restart then.
<b><a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free)</b>
This code almost always indicates that another server with the same name is running in the domain. Use the task manager to see if any java processes are active.
Thanks, deleting the .lok file worked for me.
If the server is still running you might not be able to remove the *.lok file. In this case got to task manager and stop java.exe process and then remove the server_name.lok file.
Now start the server.