无法在IntelijIdea中启动GlassFish

时间:2016-01-25 19:44:32

标签: java intellij-idea glassfish

My Log Detected server admin port: 4848
Detected server http port: 8080
java.nio.file.AccessDeniedException: C:\Program Files\glassfish4\glassfish\domains\domain1\logs\server.log.lck
Attempting to start domain1.... Please look at the server log for more details.....
    at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(Unknown Source)
    at java.nio.channels.FileChannel.open(Unknown Source)
    at java.nio.channels.FileChannel.open(Unknown Source)
    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:99)
    at com.sun.enterprise.admin.launcher.GFLauncher.setup(GFLauncher.java:192)
    at com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand.createLauncher(StartDomainCommand.java:228)
    at com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand.executeCommand(StartDomainCommand.java:124)
    at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:322)
    at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:366)
    at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:300)
    at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:56)

1 个答案:

答案 0 :(得分:1)

server.log上有一个锁文件。如果GlassFish无法写入该日志,它将无法启动。尝试删除锁定文件:C:\Program Files\glassfish4\glassfish\domains\domain1\logs\server.log.lck