I'm largely facing the same problem here. I just tried starting glassfish
using the java -jar method @darkice11 described here and here's what I got:
*> cd /usr/glassfish3/glassfish/modules*
*> java -jar glassfish.jar* Launching GlassFish on Felix platform Feb 01,
2012 2:26:23 PM com.sun.enterprise.server.logging.LogManagerService
postConstruct WARNING: Record begin marker is not a proper value so using
default. Feb 01, 2012 2:26:23 PM
com.sun.enterprise.server.logging.LogManagerService postConstruct WARNING:
Record end marker is not a proper value so using default. Feb 01, 2012
2:26:23 PM com.sun.enterprise.server.logging.LogManagerService postConstruct
WARNING: Log Format field separator is not a character so using default.
[#|2012-02-01T14:26:23.238-0600|INFO|glassfish3.1.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=1;_ThreadName=main;|Registered
org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
persistence-type = replicated in BackingStoreFactoryRegistry|#]
[#|2012-02-01T14:26:23.604-0600|SEVERE|glassfish3.1.1|grizzly|_ThreadID=27;_ThreadName=Grizzly-kernel-thread(1);|doSelect
IOException java.net.BindException: No free port within range:
8181=com.sun.enterprise.v3.services.impl.monitor.MonitorableSSLSelectorHandler_
at
com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722) |#]
[#|2012-02-01T14:26:23.604-0600|SEVERE|glassfish3.1.1|grizzly|_ThreadID=32;_ThreadName=Grizzly-kernel-thread(1);|doSelect
IOException java.net.BindException: No free port within range:
3700=com.sun.enterprise.v3.services.impl.ServiceInitializerHandler_at_7f26bd42
at
com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722) |#]
[#|2012-02-01T14:26:23.604-0600|SEVERE|glassfish3.1.1|grizzly|_ThreadID=33;_ThreadName=Grizzly-kernel-thread(1);|doSelect
IOException java.net.BindException: No free port within range:
7676=com.sun.enterprise.v3.services.impl.ServiceInitializerHandler_at_657c395e
at
com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722) |#]
[#|2012-02-01T14:26:23.710-0600|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=main;|GlassFish
Server Open Source Edition 3.1.1 (12) startup time : Felix (2,404ms), startup
services(899ms), total(3,303ms)|#]
[#|2012-02-01T14:26:23.711-0600|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=main;|Shutting
down v3 due to startup exception : No free port within range:
8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler_at_|#]
[#|2012-02-01T14:26:23.734-0600|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=38;_ThreadName=Thread-21;|Server
shutdown initiated|#]
[#|2012-02-01T14:26:23.742-0600|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=38;_ThreadName=Thread-21;|Already
stopped, so just returning|#]
I really would appreciate any help I can get to get GlassFish started.
Thanks.
--
[Message sent by forum member 'redhat19']
View Post: http://forums.java.net/node/734001