A fairly easy solution, assuming you haven't put any time & effort into
configuring the domain is this:
(1)
1) make sure the domain is stopped
2) asadmin delete-domain domain1
3) asadmin create-domain --nopassword domain1
create-domain will make sure the ports it chooses are not currently in use.
(--nopassword sets it up to not require a username or password. You
could instead remove this option and setup a user)
============
(2)
Start the domain with the verbose option. This ensures that you see ALL
messages. Always run in verbose when you have problems starting. We
are not able to capture every possible message. E.g. if the JVM can't
start it will print out a message that can easily be seen in verbose
mode but not otherwise.
asadmin start-domain --verbose domain1
================
On 5/8/2011 8:06 PM, forums_at_java.net wrote:
> Hi Everyone,
>
> I could not startup GF3.1 (bundled with NB7.0) on a low-end (1.5GB)
> Windows
> XP PC with the following error:
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Documents and Settings\jack>asadmin list-domains
> domain1 not running
> Command list-domains executed successfully.
>
> C:\Documents and Settings\jack>asadmin start-domain domain1
> 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:
>
> Listening for transport dt_socket at address: 9009
> Launching GlassFish on Felix platform
> [#|2011-05-09T10:31:49.421+1000|INFO|glassfish3.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=main;|Reg
>
>
> istered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> persistence-type = replicated in BackingStoreFactoryRegistry|#]
>
> [#|2011-05-09T10:31:52.093+1000|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName
>
>
> =Grizzly-kernel-thread(1);|Grizzly Framework 1.9.31 started in: 156ms
> - bound
> to [0.0.0.0:8181]|#]
>
> [#|2011-05-09T10:31:52.187+1000|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=21;_ThreadName
>
>
> =Grizzly-kernel-thread(1);|Grizzly Framework 1.9.31 started in: 578ms
> - bound
> to [0.0.0.0:8080]|#]
>
> [#|2011-05-09T10:31:52.218+1000|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName
>
>
> =Grizzly-kernel-thread(1);|Grizzly Framework 1.9.31 started in: 93ms -
> bound
> to [0.0.0.0:4848]|#]
>
> [#|2011-05-09T10:31:52.250+1000|SEVERE|glassfish3.1|grizzly|_ThreadID=14;_ThreadName=Grizzly-kernel-thread(1);|doSelect
>
> IOException
> java.net.BindException: No free port within range:
> 7676=com.sun.enterprise.v3.services.impl.ServiceInitializerHandler_at_11b8540
>
> [1]
> 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$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:662)
> |#]
>
> [#|2011-05-09T10:31:53.875+1000|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=main;|G
>
>
> lassFish Server OpenSource Edition 3.1 (43) startup time : Felix
> (106,937ms),
> startup services(15,657ms), total(122,594ms)|#]
>
> [#|2011-05-09T10:31:53.875+1000|SEVERE|glassfish3.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:
>
> 7676=com.sun.enterprise.v3.services.impl.ServiceInitializerHandler_at_11b8540
>
> [2]|#]
>
> [#|2011-05-09T10:31:53.984+1000|INFO|glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=44;_ThreadName=
>
>
> Thread-17;|Server shutdown initiated|#]
>
> [#|2011-05-09T10:31:54.031+1000|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=44;_ThreadName=Thread
>
>
> -17;|Already stopped, so just returning|#]
>
> Command start-domain failed.
>
> All entries of active TCP ports are as follows (nothing is running after
> reboot):
>
> C:\Documents and Settings\jack>netstat -na | more
>
> Active Connections
>
> Proto Local Address Foreign Address
> State
> TCP 0.0.0.0:135
> 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:445
> 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:3306
> 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:4899
> 0.0.0.0:0 LISTENING
> TCP 10.56.8.101:139
> 0.0.0.0:0 LISTENING
> TCP 127.0.0.1:1025 127.0.0.1:1026
> ESTABLISHED
> TCP 127.0.0.1:1026 127.0.0.1:1025
> ESTABLISHED
> TCP 127.0.0.1:1027 127.0.0.1:1028
> ESTABLISHED
> TCP 127.0.0.1:1028 127.0.0.1:1027
> ESTABLISHED
> TCP 127.0.0.1:1029 127.0.0.1:1030
> ESTABLISHED
> TCP 127.0.0.1:1030 127.0.0.1:1029
> ESTABLISHED
> TCP 127.0.0.1:1135
> 0.0.0.0:0 LISTENING
> TCP 127.0.0.1:5152
> 0.0.0.0:0 LISTENING
> TCP 127.0.0.1:6999
> 0.0.0.0:0 LISTENING
> TCP 127.0.0.1:12668
> 0.0.0.0:0 LISTENING
> TCP 127.0.0.1:21112
> 0.0.0.0:0 LISTENING
> UDP 0.0.0.0:445 *:*
> UDP 0.0.0.0:500 *:*
> UDP 0.0.0.0:4500 *:*
> UDP 0.0.0.0:52311 *:*
> UDP 10.56.8.101:123 *:*
> UDP 10.56.8.101:137 *:*
> UDP 10.56.8.101:138 *:*
> UDP 10.56.8.101:1900 *:*
> UDP 127.0.0.1:123 *:*
> UDP 127.0.0.1:1096 *:*
> UDP 127.0.0.1:1900 *:*
>
> No local Windows firewall is running and GF2.1 runs fine on the same
> system.
>
> I just want to clarify that it is hardware limitation (1.5GB RAM) that is
> preventing GF3.1
> from starting up as opposed to port issue, or a combination of both?
>
> Thanks,
>
> Crystal
>
>
> [1]
> mailto:7676=com.sun.enterprise.v3.services.impl.ServiceInitializerHandler_at_11b8540
> [2]
> mailto:7676=com.sun.enterprise.v3.services.impl.ServiceInitializerHandler_at_11b8540
>
> --
>
> [Message sent by forum member 'crytal123']
>
> View Post: http://forums.java.net/node/800159
>
>
--
Oracle <http://www.oracle.com>
Byron Nevins | Principal MTS
Phone: +1 6503958992 <tel:+1%206503958992>
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
developing practices and products that help protect the environment