Glassfish连接到服务器,但错误的端口号

时间:2018-02-13 15:31:50

标签: glassfish port admin

我试图连接到glassfish服务器。它告诉它已成功连接,但端口号为-1,我无法看到日志文件。如何连接到asenv批处理文件中指定的默认4848和8080端口号?

Use "exit" to exit and "help" for online help.
asadmin> start-domain domain1
java.nio.file.AccessDeniedException:C:\iuclid6\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.MultimodeCommand.executeCommands(MultimodeCommand.java:250)
        at com.sun.enterprise.admin.cli.MultimodeCommand.executeCommand(MultimodeCommand.java:151)
        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)
Waiting for domain1 to start
Successfully started the domain : domain1
domain  Location: C:\iuclid6\glassfish4\glassfish\domains\domain1
Log File: C:\iuclid6\glassfish4\glassfish\domains\domain1\logs\server.log
Admin Port: -1
Command start-domain executed successfully.
asadmin>

0 个答案:

没有答案