Wednesday, 15 May 2013

java - Glassfish 4 fails to start on Linux -



java - Glassfish 4 fails to start on Linux -

i getting below error. help appreciated.

$ sudo glassfish4/glassfish/bin/asadmin start-domain waiting domain1 start ..................error starting domain domain1. server exited prematurely exit code 0. before died, produced next output: launching glassfish on felix platform registered com.sun.enterprise.glassfish.bootstrap.osgi.embeddedosgiglassfishruntime@72d53ac7 in service registry. found populator: com.sun.enterprise.v3.server.gfdomainxml #!## logmanagerservice.postconstruct : rootfolder=/srv/glassfish4/glassfish #!## logmanagerservice.postconstruct : templatedir=/srv/glassfish4/glassfish/lib/templates #!## logmanagerservice.postconstruct : src=/srv/glassfish4/glassfish/lib/templates/logging.properties #!## logmanagerservice.postconstruct : dest=/srv/glassfish4/glassfish/domains/domain1/config/logging.properties completed shutdown of log manager service completed shutdown of glassfish runtime watcher /srv/glassfish4/glassfish/domains/domain1/autodeploy/bundles exiting because of interruption.: java.lang.interruptedexception java.lang.interruptedexception @ java.lang.object.wait(native method) @ org.apache.felix.fileinstall.internal.directorywatcher.run(directorywatcher.java:226) oct 27, 2014 8:57:08 pm com.sun.enterprise.glassfish.bootstrap.osgi.bundleprovisioner createbundleprovisioner info: create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.bundleprovisioner. oct 27, 2014 8:57:08 pm com.sun.enterprise.glassfish.bootstrap.osgi.bundleprovisioner$defaultcustomizer getlocations warning: skipping entry because not absolute uri. oct 27, 2014 8:57:08 pm com.sun.enterprise.glassfish.bootstrap.osgi.bundleprovisioner$defaultcustomizer getlocations warning: skipping entry because not absolute uri. [#|2014-10-27t20:57:15.978-0700|info|glassfish 4.1|javax.enterprise.logging|_threadid=15;_threadname=runlevelcontrollerthread-1414468635292;_timemillis=1414468635978;_levelvalue=800;_messageid=ncls-logging-00009;| running glassfish version: glassfish server open source edition 4.1 (build 13)|#] [#|2014-10-27t20:57:15.989-0700|info|glassfish 4.1|javax.enterprise.logging|_threadid=15;_threadname=runlevelcontrollerthread-1414468635292;_timemillis=1414468635989;_levelvalue=800;_messageid=ncls-logging-00010;| server log file using formatter class: com.sun.enterprise.server.logging.odllogformatter|#] [#|2014-10-27t20:57:17.173-0700|info|glassfish 4.1|org.hibernate.validator.internal.util.version|_threadid=15;_threadname=runlevelcontrollerthread-1414468635292;_timemillis=1414468637173;_levelvalue=800;| hv000001: hibernate validator 5.0.0.final|#] [#|2014-10-27t20:57:17.266-0700|info|glassfish 4.1|javax.enterprise.system.core.security|_threadid=14;_threadname=runlevelcontrollerthread-1414468635273;_timemillis=1414468637266;_levelvalue=800;_messageid=ncls-security-01115;| realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.filerealm] created.|#] [#|2014-10-27t20:57:17.320-0700|info|glassfish 4.1|javax.enterprise.system.core.security|_threadid=14;_threadname=runlevelcontrollerthread-1414468635273;_timemillis=1414468637320;_levelvalue=800;_messageid=ncls-security-01115;| realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.filerealm] created.|#] [#|2014-10-27t20:57:17.473-0700|info|glassfish 4.1|javax.enterprise.system.core.security|_threadid=14;_threadname=runlevelcontrollerthread-1414468635273;_timemillis=1414468637473;_levelvalue=800;_messageid=ncls-security-01115;| realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.certificaterealm] created.|#] [#|2014-10-27t20:57:17.954-0700|info|glassfish 4.1|org.glassfish.ha.store.spi.backingstorefactoryregistry|_threadid=17;_threadname=runlevelcontrollerthread-1414468635378;_timemillis=1414468637954;_levelvalue=800;| registered org.glassfish.ha.store.adapter.cache.shoalbackingstoreproxy persistence-type = replicated in backingstorefactoryregistry|#] [#|2014-10-27t20:57:18.164-0700|info|glassfish 4.1|javax.enterprise.security.services|_threadid=14;_threadname=runlevelcontrollerthread-1414468635273;_timemillis=1414468638164;_levelvalue=800;_messageid=sec-svcs-00100;| authorization service has initialized.|#] [#|2014-10-27t20:57:18.406-0700|info|glassfish 4.1|javax.enterprise.system.core|_threadid=16;_threadname=runlevelcontrollerthread-1414468635370;_timemillis=1414468638406;_levelvalue=800;_messageid=ncls-core-00087;| grizzly framework 2.3.15 started in: 113ms - bound [/0.0.0.0:8181]|#] [#|2014-10-27t20:57:18.982-0700|info|glassfish 4.1|javax.enterprise.system.core|_threadid=16;_threadname=runlevelcontrollerthread-1414468635370;_timemillis=1414468638982;_levelvalue=800;_messageid=ncls-core-00087;| grizzly framework 2.3.15 started in: 129ms - bound [/0.0.0.0:4848]|#] [#|2014-10-27t20:57:19.308-0700|info|glassfish 4.1|javax.enterprise.system.core|_threadid=17;_threadname=runlevelcontrollerthread-1414468635378;_timemillis=1414468639308;_levelvalue=800;_messageid=ncls-core-00087;| grizzly framework 2.3.15 started in: 11ms - bound [/0.0.0.0:3700]|#] [#|2014-10-27t20:57:20.181-0700|info|glassfish 4.1|javax.enterprise.system.core|_threadid=1;_threadname=main;_timemillis=1414468640181;_levelvalue=800;_messageid=ncls-core-00017;| glassfish server open source edition 4.1 (13) startup time : felix (9,542ms), startup services(4,931ms), total(14,473ms)|#] [#|2014-10-27t20:57:20.183-0700|severe|glassfish 4.1|javax.enterprise.system.core|_threadid=1;_threadname=main;_timemillis=1414468640183;_levelvalue=1000;_messageid=ncls-core-00019;| shutting downwards server due startup exception java.net.bindexception: address in utilize @ sun.nio.ch.net.bind0(native method) @ sun.nio.ch.net.bind(net.java:444) @ sun.nio.ch.net.bind(net.java:436) @ sun.nio.ch.serversocketchannelimpl.bind(serversocketchannelimpl.java:214) @ sun.nio.ch.serversocketadaptor.bind(serversocketadaptor.java:74) @ org.glassfish.grizzly.nio.transport.tcpniobindinghandler.bindtochannelandaddress(tcpniobindinghandler.java:132) @ org.glassfish.grizzly.nio.transport.tcpniobindinghandler.bind(tcpniobindinghandler.java:88) @ org.glassfish.grizzly.nio.transport.tcpniotransport.bind(tcpniotransport.java:236) @ org.glassfish.grizzly.nio.transport.tcpniotransport.bind(tcpniotransport.java:225) @ org.glassfish.grizzly.nio.transport.tcpniotransport.bind(tcpniotransport.java:85) @ org.glassfish.grizzly.config.genericgrizzlylistener.start(genericgrizzlylistener.java:180) @ com.sun.enterprise.v3.services.impl.glassfishnetworklistener.start(glassfishnetworklistener.java:109) @ com.sun.enterprise.v3.services.impl.grizzlyproxy.start0(grizzlyproxy.java:267) @ com.sun.enterprise.v3.services.impl.grizzlyproxy.start(grizzlyproxy.java:241) @ com.sun.enterprise.v3.services.impl.grizzlyservice.createnetworkproxy(grizzlyservice.java:567) @ com.sun.enterprise.v3.services.impl.grizzlyservice.postconstruct(grizzlyservice.java:490) @ org.jvnet.hk2.internal.clazzcreator.postconstructme(clazzcreator.java:329) @ org.jvnet.hk2.internal.clazzcreator.create(clazzcreator.java:377) @ org.jvnet.hk2.internal.systemdescriptor.create(systemdescriptor.java:461) @ org.glassfish.hk2.runlevel.internal.asyncrunlevelcontext.findorcreate(asyncrunlevelcontext.java:227) @ org.glassfish.hk2.runlevel.runlevelcontext.findorcreate(runlevelcontext.java:84) @ org.jvnet.hk2.internal.utilities.createservice(utilities.java:2258) @ org.jvnet.hk2.internal.servicehandleimpl.getservice(servicehandleimpl.java:105) @ org.jvnet.hk2.internal.servicehandleimpl.getservice(servicehandleimpl.java:87) @ org.glassfish.hk2.runlevel.internal.currenttaskfuture$queuerunner.onejob(currenttaskfuture.java:1162) @ org.glassfish.hk2.runlevel.internal.currenttaskfuture$queuerunner.run(currenttaskfuture.java:1147) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:745) |#] [#|2014-10-27t20:57:20.481-0700|info|glassfish 4.1|javax.enterprise.system.core|_threadid=55;_threadname=thread-11;_timemillis=1414468640481;_levelvalue=800;_messageid=ncls-core-00092;| server shutdown initiated|#] [#|2014-10-27t20:57:20.498-0700|info|glassfish 4.1|javax.enterprise.bootstrap|_threadid=1;_threadname=main;_timemillis=1414468640498;_levelvalue=800;_messageid=ncls-bootstrap-00027;| registered com.sun.enterprise.glassfish.bootstrap.osgi.embeddedosgiglassfishimpl@2c3b2e73 osgi service registration: org.apache.felix.framework.serviceregistrationimpl@290bdbae.|#] [#|2014-10-27t20:57:21.488-0700|info|glassfish 4.1|javax.enterprise.bootstrap|_threadid=55;_threadname=thread-11;_timemillis=1414468641488;_levelvalue=800;_messageid=ncls-bootstrap-00028;| unregistered com.sun.enterprise.glassfish.bootstrap.osgi.embeddedosgiglassfishimpl@2c3b2e73 service registry.|#] [#|2014-10-27t20:57:21.503-0700|info|glassfish 4.1||_threadid=55;_threadname=thread-8;_timemillis=1414468641503;_levelvalue=800;| filemonitoring shutdown|#] [#|2014-10-27t20:57:21.904-0700|info|glassfish 4.1|javax.enterprise.system.core|_threadid=55;_threadname=thread-11;_timemillis=1414468641904;_levelvalue=800;_messageid=ncls-core-00013;| shutdown procedure finished|#] command start-domain failed

the of import line in error log this:

java.net.bindexception: address in utilize @ sun.nio.ch.net.bind0

this due there beingness service (apache, old tomcat installation, etc) using glassfish's default port of 8080. port glassfish uses can changed following instructions here.

furthermore, find out using glassfish's port can stop service if necessary, utilize this windows , this linux.

java linux java-ee glassfish

No comments:

Post a Comment