root_at_host0034:~# /etc/init.d/glassfish start
starting glassfish from /home/glassfish/bin
Waiting for domain1 to start ...................Error starting domain
domain1.
The server exited prematurely with exit code 0.
Before it died, it produced the following output:
Launching GlassFish on Felix platform
Oct 10, 2011 5:15:36 AM
com.sun.enterprise.server.logging.LogManagerService postConstruct
WARNING: Record begin marker is not a proper value so using default.
Oct 10, 2011 5:15:36 AM
com.sun.enterprise.server.logging.LogManagerService postConstruct
WARNING: Record end marker is not a proper value so using default.
Oct 10, 2011 5:15:36 AM
com.sun.enterprise.server.logging.LogManagerService postConstruct
WARNING: Log Format field separator is not a character so using
default.
[#|2011-10-10T05:15:37.640-0700|INFO|glassfish3.1.1|org.glassfish.ha.st
ore.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=main;|Regi
stered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
persistence-type = replicated in BackingStoreFactoryRegistry|#]
[#|2011-10-10T05:15:39.585-0700|INFO|glassfish3.1.1|javax.enterprise.sy
stem.core.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=
Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 319ms -
bound to [0.0.0.0:4848]|#]
[#|2011-10-10T05:15:39.585-0700|INFO|glassfish3.1.1|javax.enterprise.sy
stem.core.com.sun.enterprise.v3.services.impl|_ThreadID=12;_ThreadName=
Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 617ms -
bound to [0.0.0.0:8181]|#]
[#|2011-10-10T05:15:39.678-0700|INFO|glassfish3.1.1|javax.enterprise.sy
stem.core.com.sun.enterprise.v3.services.impl|_ThreadID=13;_ThreadName=
Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 62ms -
bound to [0.0.0.0:3700]|#]
[#|2011-10-10T05:15:39.746-0700|INFO|glassfish3.1.1|javax.enterprise.sy
stem.core.com.sun.enterprise.v3.services.impl|_ThreadID=14;_ThreadName=
Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 52ms -
bound to [0.0.0.0:7676]|#]
[#|2011-10-10T05:15:40.302-0700|INFO|glassfish3.1.1|javax.enterprise.sy
stem.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=main;|G
lassFish Server Open Source Edition 3.1.1 (12) startup time : Felix
(9,543ms), startup services(5,181ms), total(14,724ms)|#]
[#|2011-10-10T05:15:40.304-0700|SEVERE|glassfish3.1.1|javax.enterprise.
system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=main;
|Shutting down v3 due to startup exception : No free port within range:
8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHan
dler_at_5e15e68d|#]
[#|2011-10-10T05:15:40.421-0700|INFO|glassfish3.1.1|javax.enterprise.sy
stem.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=15;_ThreadName=T
hread-21;|Server shutdown initiated|#]
[#|2011-10-10T05:15:40.554-0700|INFO|glassfish3.1.1|javax.enterprise.sy
stem.core.com.sun.enterprise.v3.server|_ThreadID=15;_ThreadName=Thread-
21;|Already stopped, so just returning|#]
[#|2011-10-10T05:15:40.731-0700|INFO|glassfish3.1.1|javax.enterprise.sy
stem.std.com.sun.enterprise.server.logging|_ThreadID=16;_ThreadName=Fel
ixStartLevel;|ERROR: Bundle org.apache.felix.fileinstall [61]: Error
starting
file:/home/glassfish/glassfish/modules/org.apache.felix.fileinstall.jar
(org.osgi.framework.BundleException: Activator start error in bundle
org.apache.felix.fileinstall [61].)|#]
[#|2011-10-10T05:15:40.734-0700|SEVERE|glassfish3.1.1|javax.enterprise.
system.std.com.sun.enterprise.server.logging|_ThreadID=16;_ThreadName=F
elixStartLevel;|java.lang.ExceptionInInitializerError
at java.io.File.deleteOnExit(File.java:939)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.prepareTempDir(D
irectoryWatcher.java:551)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.<init>(Directory
Watcher.java:137)
at
org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.j
ava:222)
at
org.apache.felix.fileinstall.internal.FileInstall.start(FileInstall.jav
a:131)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureActio
n.java:629)
at
org.apache.felix.framework.Felix.activateBundle(Felix.java:1835)
at
org.apache.felix.framework.Felix.startBundle(Felix.java:1752)
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: Shutdown in progress
at java.lang.Shutdown.add(Shutdown.java:62)
at java.lang.System$2.registerShutdownHook(System.java:1146)
at java.io.DeleteOnExitHook.<clinit>(DeleteOnExitHook.java:20)
... 11 more
|#]
Command start-domain failed.
root_at_host0034:~#