This discussion is archived
6 Replies Latest reply: Sep 5, 2013 8:04 AM by Kochapz RSS

Problem restarting my Oracle WebLogic Server 10.3

SirishVadala Newbie
Currently Being Moderated
 
  • 1. Re: Problem restarting my Oracle WebLogic Server 10.3
    SirishVadala Newbie
    Currently Being Moderated
    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
         at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:159)
         at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:58)
         at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:73)
         at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:459)
         at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:164)
         at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:711)
         at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:482)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
         at weblogic.Server.main(Server.java:67)

    >
    <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.


    Thanks.
  • 2. Re: Problem restarting my Oracle WebLogic Server 10.3
    user56311 Newbie
    Currently Being Moderated
    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.
  • 3. Re: Problem restarting my Oracle WebLogic Server 10.3
    togotutor Explorer
    Currently Being Moderated
    Please delete the following file
    I believe your domain name is userdomain.

    Go to
    userdomain\servers\AdminServer\tmp\
    Remove the file
    AdminServer.lok
    It will restart then.


    Thanks
    Togotutor
    <b><a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free)</b>
  • 4. Re: Problem restarting my Oracle WebLogic Server 10.3
    714104 Explorer
    Currently Being Moderated
    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.
  • 5. Re: Problem restarting my Oracle WebLogic Server 10.3
    806256 Newbie
    Currently Being Moderated
    Thanks, deleting the .lok file worked for me.
  • 6. Re: Problem restarting my Oracle WebLogic Server 10.3
    Kochapz Newbie
    Currently Being Moderated

    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.

    Regards

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points