Glassfish AccessDeniedExceptionJAVA

Программисты JAVA общаются здесь
Ответить
Anonymous
 Glassfish AccessDeniedException

Сообщение Anonymous »

Я новичок в использовании серверов в целом.
Я использую Windows 11.
Я только что скачал glassfish7 с https://glassfish.org/download.html
Затем я разархивировал его и выполнил команду ./asadmin start-domain
в C:\Program Files\Glassfish\glassfish7\bin
Я получил это сообщение об ошибке :

Код: Выделить всё

java.nio.file.AccessDeniedException: C:\Program Files\Glassfish\glassfish7\glassfish\domains\domain1\logs\server.log.lck
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:119)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:309)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:369)
at java.logging/java.util.logging.FileHandler.openFiles(FileHandler.java:512)
at java.logging/java.util.logging.FileHandler.(FileHandler.java:342)
at com.sun.enterprise.admin.launcher.GFLauncherLogger.addLogFileHandler(GFLauncherLogger.java:131)
at com.sun.enterprise.admin.launcher.GFLauncher.setup(GFLauncher.java:306)
at com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand.createLauncher(StartDomainCommand.java:225)
at com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand.executeCommand(StartDomainCommand.java:128)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:294)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:322)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:259)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:32)
Waiting for domain1 to start ............................................................
Waiting finished after 60,000 ms.
No response from the Domain Administration Server (domain1) after 60 seconds.
The command is either taking too long to complete or the server has failed.
Please see the server log files for command status.
Please start with the --verbose option in order to see early messages.
Command start-domain failed.
Каталог \domains\domain1\logs совершенно пуст.

Подробнее здесь: https://stackoverflow.com/questions/792 ... dexception
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»