users@glassfish.java.net

problem starting glassfish - can't get lock for server.log

From: <glassfish_at_javadesktop.org>
Date: Sun, 02 May 2010 17:22:41 PDT

Hi I'm trying to set up the server on my own pc, I've installed and tried to start the server by using a bat file call as below. (I copied this from the asadmin-start-domain.bat file. I've also tried to directly run asadmin-start-domain.bat but I get the same error.)

call "C:\Program Files\SunGlassFish\glassfish\bin\asadmin" start-domain domain1

The error I get is (something about server.log).

java.io.IOException: Couldn't get lock for C:\Program Files\SunGlassFish\glassfi
sh\domains\domain1\logs\server.log
        at java.util.logging.FileHandler.openFiles(FileHandler.java:372)
        at java.util.logging.FileHandler.<init>(FileHandler.java:270)
        at com.sun.enterprise.admin.launcher.GFLauncherLogger.addLogFileHandler(
GFLauncherLogger.java:85)
        at com.sun.enterprise.admin.launcher.GFLauncher.setup(GFLauncher.java:14
8)
        at com.sun.enterprise.admin.cli.StartDomainCommand.createLauncher(StartD
omainCommand.java:239)
        at com.sun.enterprise.admin.cli.StartDomainCommand.runCommandNotEmbedded
(StartDomainCommand.java:122)
        at com.sun.enterprise.admin.cli.StartDomainCommand.executeCommand(StartD
omainCommand.java:117)
        at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:257)
        at com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.j
ava:229)
        at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:167)
Waiting for DAS to start .........
[Message sent by forum member 'freakmoister']

http://forums.java.net/jive/thread.jspa?messageID=400088