java - Error while starting GoldFish server: Ubuntu 13.10 -



java - Error while starting GoldFish server: Ubuntu 13.10 -

i consulted here , here not problem solved.

when type on terminal /opt/glassfish4/glassfish/bin/asadmin start, next result:

remote server not hear requests on [localhost:4848]. server up? unable remote commands. closest matching local command(s): restart-domain restart-local-instance start-database start-domain start-local-instance command start failed.

similarly, when type /opt/glassfish4/glassfish/bin/asadmin --port 5656 start-domain, get

java.io.ioexception: couldn't lock /opt/glassfish4/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:98) @ com.sun.enterprise.admin.launcher.gflauncher.setup(gflauncher.java:191) @ com.sun.enterprise.admin.servermgmt.cli.startdomaincommand.createlauncher(startdomaincommand.java:220) @ com.sun.enterprise.admin.servermgmt.cli.startdomaincommand.executecommand(startdomaincommand.java:117) @ com.sun.enterprise.admin.cli.clicommand.execute(clicommand.java:321) @ com.sun.enterprise.admin.cli.adminmain.executecommand(adminmain.java:360) @ com.sun.enterprise.admin.cli.adminmain.domain(adminmain.java:298) @ org.glassfish.admin.cli.asadminmain.main(asadminmain.java:56) waiting domain1 start .error starting domain domain1. server exited prematurely exit code 1. before died, produced next output: 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:244) @ com.sun.enterprise.glassfish.bootstrap.mainhelper.findinstanceroot(mainhelper.java:347) @ com.sun.enterprise.glassfish.bootstrap.glassfishmain.main(glassfishmain.java:78) @ com.sun.enterprise.glassfish.bootstrap.asmain.main(asmain.java:54) command start-domain failed.

i sense there problem in path /opt/glassfish4/glassfish/bin/asadmin. working on first jsf web application , cannot run glassfish server. using netbeans , ubuntu 13.10. can show me way?

thank you!

the error messages

java.io.ioexception: couldn't lock /opt/glassfish4/glassfish/domains/domain1/logs/server.log

and

exception in thread "main" java.lang.runtimeexception: domain directory not writable.

indicate user business relationship utilize start server doesn't have write permissions in glassfish domain folder.

to solve problem either alter permissions or start asadmin command user has sufficient permissions.

if doesn't solve problem, there may process has lock on server.log file, guess have noticed that. create sure can run

lsof /opt/glassfish4/glassfish/domains/domain1/logs/server.log

to see if process using file.

see also:

failed start glassfish server because couldn't lock /opt/glassfishv3/glassfish/domains/domain1/logs/server.log

java ubuntu web-applications glassfish

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -