java.io.IOException

Couldn't get lock for C:\Program Files\glassfish\glassfish\ domains\domain1\logs\server.log

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web12634

  • via Stack Overflow by Arwel Wyn Williams
    , 10 months ago
    Couldn't get lock for C:\Program Files\glassfish\glassfish\ domains\domain1\logs\server.log
  • Couldn't get lock for /opt/glassfish4/glassfish/domains/domain1/logs/server.log
  • Couldn't get lock for /opt/glassfishv3/glassfish/domains/domain1/logs/server.log
  • Stack trace

    • java.io.IOException: Couldn't get lock for C:\Program Files\glassfish\glassfish\ domains\domain1\logs\server.log at java.util.logging.FileHandler.openFiles(Unknown Source) at java.util.logging.FileHandler.<init>(Unknown Source) at com.sun.enterprise.admin.launcher.GFLauncherLogger.addLogFileHandler(GFLauncherLogger.java:100) at com.sun.enterprise.admin.launcher.GFLauncher.setup(GFLauncher.java:189) at com.sun.enterprise.admin.cli.StartDomainCommand.createLauncher(StartDomainCommand.java:209) at com.sun.enterprise.admin.cli.StartDomainCommand.executeCommand(StartDomainCommand.java:107) at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:264) at com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.java:306) at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:238)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    67 times, 1 week ago
    Unknown user
    Once, 11 months ago
    2 more bugmates