my dog learned polymorphism*
The moose likes Other Java Products and Servers and the fly likes glassfish-v2 server unable to start on win-vista Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "glassfish-v2 server unable to start on win-vista" Watch "glassfish-v2 server unable to start on win-vista" New topic
Author

glassfish-v2 server unable to start on win-vista

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Hi All,

As per SCDJWSLinks suggestion I've downloaded the glassfishv2 server from Here.
I went through the tutorial Getting Started > To Start the Domain on Windows and successfully started the server on my work pc which contains Windows XP. However, when I'm trying to start server by following same procedure on my laptop i got following stack trace.

I:\JavaWebServices>asadmin start-domain domain1
Starting Domain domain1, please wait.
Default Log location is I:\JavaWebServices\glassfish\domains\domain1\logs\server.log.
Redirecting output to I:/JavaWebServices/glassfish/domains/domain1/logs/server.log
Domain domain1 failed to startup. Please check the server log for more details.
CLI156 Could not start the domain domain1.

The Stack trace under the file =>I:/JavaWebServices/glassfish/domains/domain1/logs/server.log
...
#|2010-07-01T03:00:06.686+0400|INFO|sun-appserver2.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;com.sun.enterprise.security.provider.PolicyWrapper;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

[#|2010-07-01T03:00:07.260+0400|INFO|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;server;|WEB0114: SSO is disabled in virtual server [server]|#]

[#|2010-07-01T03:00:07.269+0400|INFO|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;__asadmin;|WEB0114: SSO is disabled in virtual server [__asadmin]|#]

[#|2010-07-01T03:00:18.381+0400|INFO|sun-appserver2.1|javax.enterprise.system.core.transaction|_ThreadID=10;_ThreadName=main;3700;|JTS5014: Recoverable JTS instance, serverId = [3700]|#]

[#|2010-07-01T03:00:22.303+0400|INFO|sun-appserver2.1|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM1079: Initialization of AMX MBeans started|#]

[#|2010-07-01T03:01:25.519+0400|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@1feae0f;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://XXXXXX-PC:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out];_RequestID=5fdaa4e4-702a-4abd-ad61-185534e821d1;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@1feae0f cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://XXXXXX-PC:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out]|#]

[#|2010-07-01T03:01:25.520+0400|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5fdaa4e4-702a-4abd-ad61-185534e821d1;|CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://XXXXXX-PC:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out]
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:153)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: java.io.IOException: Cannot bind to URL [rmi://XXXXXX-PC:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out]
at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
at com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:250)
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:134)
... 9 more
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out]
at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
at javax.naming.InitialContext.bind(InitialContext.java:400)
at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
... 11 more
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
... 15 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at java.io.DataInputStream.readByte(DataInputStream.java:248)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228)
... 19 more
|#]

[#|2010-07-01T03:01:25.523+0400|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5fdaa4e4-702a-4abd-ad61-185534e821d1;|Server Startup failed. Exiting...|#]

[#|2010-07-01T03:01:25.523+0400|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Server shutdown in progress...|#]

[#|2010-07-01T03:01:25.524+0400|INFO|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;Sun GlassFish Enterprise Server v2.1.1;|WEB0303: Stopping Sun GlassFish Enterprise Server v2.1.1|#]

[#|2010-07-01T03:01:25.524+0400|WARNING|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5fdaa4e4-702a-4abd-ad61-185534e821d1;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException: WEB0106: An error occurred while stopping the web container
at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:826)
at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:100)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:560)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:145)
at com.sun.enterprise.server.PEMain.run(PEMain.java:427)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: LifecycleException: WEB0103: This web container has not yet been started
at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:913)
at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:818)
... 10 more
|#]

[#|2010-07-01T03:01:25.525+0400|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5051: Shutting down all J2EE applications ...|#]

[#|2010-07-01T03:01:25.526+0400|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5068 : Stopping all J2EE Connector 1.5 Compliant resource adapters ...|#]

[#|2010-07-01T03:01:25.527+0400|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE 5061 : Resource adapters Stop() Complete|#]

[#|2010-07-01T03:01:25.527+0400|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5052: Application shutdown complete.|#]

[#|2010-07-01T03:01:25.528+0400|WARNING|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5fdaa4e4-702a-4abd-ad61-185534e821d1;|CORE5061: Exception :
java.lang.NullPointerException
at com.sun.enterprise.util.InvocationManagerImpl.preInvoke(InvocationManagerImpl.java:136)
at com.sun.appserv.server.ServerLifecycleModule.preInvoke(ServerLifecycleModule.java:178)
at com.sun.appserv.server.ServerLifecycleModule.postEvent(ServerLifecycleModule.java:219)
at com.sun.appserv.server.ServerLifecycleModule.onShutdown(ServerLifecycleModule.java:273)
at com.sun.appserv.server.LifecycleModuleService.onShutdown(LifecycleModuleService.java:487)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:560)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:145)
at com.sun.enterprise.server.PEMain.run(PEMain.java:427)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]

[#|2010-07-01T03:01:25.537+0400|WARNING|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5fdaa4e4-702a-4abd-ad61-185534e821d1;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:171)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:560)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:145)
at com.sun.enterprise.server.PEMain.run(PEMain.java:427)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]

[#|2010-07-01T03:01:25.828+0400|WARNING|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5fdaa4e4-702a-4abd-ad61-185534e821d1;|CORE5061: Exception :
java.lang.NullPointerException
at com.sun.enterprise.util.InvocationManagerImpl.preInvoke(InvocationManagerImpl.java:136)
at com.sun.appserv.server.ServerLifecycleModule.preInvoke(ServerLifecycleModule.java:178)
at com.sun.appserv.server.ServerLifecycleModule.postEvent(ServerLifecycleModule.java:219)
at com.sun.appserv.server.ServerLifecycleModule.onTermination(ServerLifecycleModule.java:277)
at com.sun.appserv.server.LifecycleModuleService.onTermination(LifecycleModuleService.java:496)
at com.sun.enterprise.server.ApplicationServer.onTermination(ApplicationServer.java:598)
at com.sun.enterprise.server.PEMain.run(PEMain.java:432)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]

[#|2010-07-01T03:01:25.829+0400|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5fdaa4e4-702a-4abd-ad61-185534e821d1;|Server stopped due to Server startup failure.|#]

I've installed Windows Vista x64 Edition installed on my laptop, and tried to reinstall several time glassfishv2 Server but still same problem.
While searching the solution with google i found some work workarounds like this and this but none of them working can anyone please help me?


Kind Regards

M


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Further more I've found the following lines under file I:\JavaWebServices\glassfish\domains\domain1\logs\jvm.log

.....
<dependency_failed type='leaf_type' ctxk='javax/management/modelmbean/DescriptorSupport' witness='com/sun/jbi/management/config/DescriptorSupport' stamp='3.184'/>
<dependency_failed type='leaf_type' ctxk='javax/management/modelmbean/DescriptorSupport' witness='com/sun/jbi/management/config/DescriptorSupport' stamp='3.184'/>
<writer thread='3148'/>
<dependency_failed type='unique_concrete_method' x='java/net/URLStreamHandler getDefaultPort ()I' witness='sun/net/www/protocol/http/Handler' stamp='9.167'/>
<dependency_failed type='leaf_type' ctxk='java/util/Stack' witness='com/sun/corba/ee/impl/util/RepositoryIdPool' stamp='13.254'/>
<dependency_failed type='leaf_type' ctxk='java/util/Stack' witness='com/sun/corba/ee/impl/util/RepositoryIdPool' stamp='13.254'/>
<dependency_failed type='leaf_type' ctxk='java/util/Stack' witness='com/sun/corba/ee/impl/util/RepositoryIdPool' stamp='13.254'/>
<dependency_failed type='unique_concrete_method' ctxk='org/w3c/dom/Node' x='com/sun/org/apache/xerces/internal/dom/NodeImpl appendChild (Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;' witness='org/w3c/dom/Node' stamp='19.643'/>
<dependency_failed type='unique_concrete_method' ctxk='org/w3c/dom/Document' x='com/sun/org/apache/xerces/internal/dom/CoreDocumentImpl createCDATASection (Ljava/lang/String;)Lorg/w3c/dom/CDATASection;' witness='org/w3c/dom/Document' stamp='19.643'/>
<tty_done stamp='83.384'/>
</tty>
<hotspot_log_done stamp='83.384'/>
</hotspot_log>
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Moreover, let me know if you want to see the "netstat -a -o" command output? I checked the port 8686 is not in use....
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Moving to the "Other Java Products and Servers" forum.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

To solve this issue i've opened some ports from my NAT router interface.
It's working now...
Deepak Pachauri
Greenhorn

Joined: Jun 22, 2011
Posts: 1
what actually you did to solve this problem. i m also facing the same problem.
 
jQuery in Action, 2nd edition
 
subject: glassfish-v2 server unable to start on win-vista
 
Similar Threads
error starting web application in glassfish
Glassfish CLI156 Could not start the domain domain1 error
Bug in the installation java_ee_sdk-5_05 on Windows Vista
Cannot initialize endpoint : error is : Java heap space|#] and server won't start
Running glass fish gives CLI 156 error