使用IntelliJ的GlassFish问题,部署不可用 [英] Problems with GlassFish using IntelliJ, deploy is not available
问题描述
我已经开始将GlassFish 4.1.1与IntelliJ一起使用,并尝试创建一个新的J2EE项目。
I've started using GlassFish 4.1.1 with IntelliJ and tried created a new J2EE project.
现在部署并因此连接到服务器似乎不起作用。
Now deploying and thus connecting to the server doesn't seem to work.
消息:
Detected server admin port: 4848
Detected server http port: 8080
[2016-04-18 10:30:58,648] Artifact FirstEE:war exploded: Server is not connected. Deploy is not available.
java.nio.file.AccessDeniedException: C:\Program Files\Java\glassfish4\glassfish\domains\domain1\logs\server.log.lck
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:115)
at java.nio.channels.FileChannel.open(FileChannel.java:287)
at java.nio.channels.FileChannel.open(FileChannel.java:335)
at java.util.logging.FileHandler.openFiles(FileHandler.java:459)
at java.util.logging.FileHandler.<init>(FileHandler.java:326)
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)
Attempting to start domain1.... Please look at the server log for more details.....
"C:\Program Files\Java\glassfish4\glassfish\bin\asadmin.bat" stop-domain --domaindir "C:\Program Files\Java\glassfish4\glassfish\
我尝试了什么:
What I tried out:
- 检查任何收听端口4848的进程,有无
-Checking for any process listening to port 4848, there's none
- 删除标准域 domain1
并尝试创建一个新的失败,因为命令 asadmin
未知。
-deleted the standard domain domain1
and tried to create a new one, failed because the command asadmin
is unknown.
从glassfish目录添加asadmin文件到PATH变量,仍然未知。
-added "asadmin" file from glassfish's directory to the PATH variable, still unknown.
- 重新安装GlassFish
-Reinstalling GlassFish
- GlassFish和IntelliJ的版本是最新的
有没有人有想法?
推荐答案
问题非常严重琐碎 ...只需要运行我的IDE作为管理员,因为elseway IntelliJ无法访问服务器日志文件,因此无法对其进行必要的更改。
Problem was pretty trivial... Just had to run my IDE as an administrator because elseway IntelliJ had no access to the server log file and thus couldn't make neccessary changes in it.
Be一定要查看我在我的问题中提到的其他解决方案但是...
这篇关于使用IntelliJ的GlassFish问题,部署不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!