gpt4 book ai didi

java - 无法在 Intellij Idea 中启动 GlassFish

转载 作者:行者123 更新时间:2023-12-01 10:32:50 26 4
gpt4 key购买 nike

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)

最佳答案

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

关于java - 无法在 Intellij Idea 中启动 GlassFish,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35000975/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com