java - Failed to start glassfish server because Couldn't get lock for /opt/glassfishv3/glassfish/domains/domain1/logs/server.log -


admin@brmsdev:/opt/glassfishv3/glassfish/bin$ ./asadmin start-domain domain1 java.io.ioexception: couldn't lock /opt/glassfishv3/glassfish/domains/domain1/logs/server.log @ java.util.logging.filehandler.openfiles(filehandler.java:389) @ java.util.logging.filehandler.<init>(filehandler.java:287) @ com.sun.enterprise.admin.launcher.gflauncherlogger.addlogfilehandler(gflauncherlogger.java:85) @ com.sun.enterprise.admin.launcher.gflauncher.setup(gflauncher.java:148) @ com.sun.enterprise.admin.cli.startdomaincommand.createlauncher(startdomaincommand.java:239) @ com.sun.enterprise.admin.cli.startdomaincommand.runcommandnotembedded(startdomaincommand.java:122) @ com.sun.enterprise.admin.cli.startdomaincommand.executecommand(startdomaincommand.java:117) @ com.sun.enterprise.admin.cli.clicommand.execute(clicommand.java:257) @ com.sun.enterprise.admin.cli.asadminmain.executecommand(asadminmain.java:229) @ com.sun.enterprise.admin.cli.asadminmain.main(asadminmain.java:167) waiting das start .error starting domain: domain1. server exited prematurely exit code 0. 

before died, produced following output:

   warning:  cannot open log file: /opt/glassfishv3/glassfish/domains/domain1/logs/jvm.log admin@brmsdev:/opt/glassfishv3/glassfish/bin$ ./asadmin start-domain domain1 java.io.ioexception: couldn't lock /opt/glassfishv3/glassfish/domains/domain1/logs/server.log @ java.util.logging.filehandler.openfiles(filehandler.java:389) @ java.util.logging.filehandler.<init>(filehandler.java:287) @ com.sun.enterprise.admin.launcher.gflauncherlogger.addlogfilehandler(gflauncherlogger.java:85) @ com.sun.enterprise.admin.launcher.gflauncher.setup(gflauncher.java:148) @ com.sun.enterprise.admin.cli.startdomaincommand.createlauncher(startdomaincommand.java:239) @ com.sun.enterprise.admin.cli.startdomaincommand.runcommandnotembedded(startdomaincommand.java:122) @ com.sun.enterprise.admin.cli.startdomaincommand.executecommand(startdomaincommand.java:117) @ com.sun.enterprise.admin.cli.clicommand.execute(clicommand.java:257) @ com.sun.enterprise.admin.cli.asadminmain.executecommand(asadminmain.java:229) @ com.sun.enterprise.admin.cli.asadminmain.main(asadminmain.java:167) waiting das start .error starting domain: domain1. server exited prematurely exit code 0. 

before died, produced following output:

warning:  cannot open log file: /opt/glassfishv3/glassfish/domains/domain1/logs/jvm.log warning:  forcing option -xx:logfile=/tmp/hs_pid2234.log jun 27, 2014 8:36:05 com.sun.enterprise.glassfish.bootstrap.asmain main info: launching glassfish on felix platform jun 27, 2014 8:36:05 com.sun.enterprise.glassfish.bootstrap.asmain main severe: domain directory not writable. java.lang.runtimeexception: domain directory not writable. @ com.sun.enterprise.glassfish.bootstrap.asmainhelper.verifyandsetdomainroot(asmainhelper.java:233) @ com.sun.enterprise.glassfish.bootstrap.abstractmain.run(abstractmain.java:89) @ com.sun.enterprise.glassfish.bootstrap.asmainosgi.run(asmainosgi.java:71) @ com.sun.enterprise.glassfish.bootstrap.abstractmain.start(abstractmain.java:78) @ com.sun.enterprise.glassfish.bootstrap.asmain.main(asmain.java:82) command start-domain failed. 

i installed glassfish in host machine , changed domain.xml host ip , started server through following command

./asadmin start-domain domain1

i got above exceptions ,i new glassfish please me out how on come issue , in advance @dinesh

looks don't have writing permissions folder /opt/glassfishv3/glassfish/domains/domain1/logs/ , / or file server.log ... , / or folder / file doesn't exist.

try sudo or change folder's permission settings.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -