java - IDEA failed to start a local glassfish server -
i'm trying start glassfish 4.1 in intellij thought 13.1.4. i've set basic settings in run/debug configurations window - selected application server, jvm, set 2 artifacts deploy, left startup/connection configurations default. when seek start exception thrown. here total stack trace:
/home/glassfish/glassfish/bin/asadmin start-domain domain1 detected server admin port: 4848 detected server http port: 8080 [2014-11-14 03:09:49,839] artifact ss-ear:ear: server no connected.deploy not available. [2014-11-14 03:09:49,839] artifact ss-ear:ear exploded: server not connected. deploy not available. java.nio.file.accessdeniedexception: /home/glassfish/glassfish/domains/domain1/logs/server.log.lck @ sun.nio.fs.unixexception.translatetoioexception(unixexception.java:84) @ sun.nio.fs.unixexception.rethrowasioexception(unixexception.java:102) @ sun.nio.fs.unixexception.rethrowasioexception(unixexception.java:107) @ sun.nio.fs.unixfilesystemprovider.newfilechannel(unixfilesystemprovider.java:177) @ java.nio.channels.filechannel.open(filechannel.java:287) @ java.nio.channels.filechannel.open(filechannel.java:335) @ java.util.logging.filehandler.openfiles(filehandler.java:438) @ java.util.logging.filehandler.<init>(filehandler.java:318) @ com.sun.enterprise.admin.launcher.gflauncherlogger.addlogfilehandler(gflauncherlogger.java:99) @ com.sun.enterprise.admin.launcher.gflauncher.setup(gflauncher.java:192) @ com.sun.enterprise.admin.servermgmt.cli.startdomaincommand.createlauncher(startdomaincommand.java:228) @ com.sun.enterprise.admin.servermgmt.cli.startdomaincommand.executecommand(startdomaincommand.java:124) @ com.sun.enterprise.admin.cli.clicommand.execute(clicommand.java:322) @ com.sun.enterprise.admin.cli.adminmain.executecommand(adminmain.java:366) @ com.sun.enterprise.admin.cli.adminmain.domain(adminmain.java:300) @ org.glassfish.admin.cli.asadminmain.main(asadminmain.java:56) waiting domain1 start .error starting domain domain1. server exited prematurely exit code 1. command start-domain failed. before died, produced next output: listening transport dt_socket @ address: 9009 launching glassfish on felix platform exception in thread "main" java.lang.runtimeexception: domain directory not writable. @ com.sun.enterprise.glassfish.bootstrap.mainhelper.verifydomainroot(mainhelper.java:246) @ com.sun.enterprise.glassfish.bootstrap.mainhelper.findinstanceroot(mainhelper.java:349) @ com.sun.enterprise.glassfish.bootstrap.glassfishmain.main(glassfishmain.java:78) @ com.sun.enterprise.glassfish.bootstrap.asmain.main(asmain.java:54)
i'm using ubuntu os 14.04 lts, java-1.7.0-openjdk-amd64. glassfish installed in /home/glassfish, asadmin script have 777 permissions. server starts when run terminal, not ide.
please help, makes me mad!
have tried start intellij sudo permission , start server within ide?
java ubuntu intellij-idea glassfish
No comments:
Post a Comment