Skip to main content

Got an eror while starting glassfish on linux.

8 replies [Last post]
srinivas635
Offline
Joined: 2005-10-24
Points: 0

The glassfish failed to start for me with the log file saying:

********************
[#|2005-12-06T19:37:39.591+0530|WARNING|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=fe043104-9218-4966-9ed3-15a74f1108f6;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:143)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:438)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:121)
at com.sun.enterprise.server.PEMain.run(PEMain.java:335)
at com.sun.enterprise.server.PEMain.main(PEMain.java:252)
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:210)
[#|2005-12-06T19:37:40.630+0530|WARNING|sun-appserver-pe9.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;_RequestID=fe043104-9218-4966-9ed3-15a74f1108f6;|Exception while stopping Derby :
SQL Exception: Derby system shutdown.
at com.sun.enterprise.resource.PoolManagerImpl.stopEmbeddedDerby(PoolManagerImpl.java:850)
at com.sun.enterprise.resource.PoolManagerImpl.killAllPools(PoolManagerImpl.java:837)
at com.sun.enterprise.server.ApplicationServer.onTermination(ApplicationServer.java:464)
at com.sun.enterprise.server.PEMain.run(PEMain.java:340)
at com.sun.enterprise.server.PEMain.main(PEMain.java:252)
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:210)
|#]
[#|2005-12-06T19:37:40.634+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=fe043104-9218-4966-9ed3-15a74f1108f6;|Server stopped due to Server startup failure.|#]

****************

I've used the build namely
"glassfish-installer-b30-nightly-05_dec_2005.jar "

under the section
:http://download.java.net/javaee5/installer-nightly/Linux/

Please help me know where the problem lies and what i need to do to resolve the error.

Thanks
Srinivas

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
amyroh
Offline
Joined: 2004-05-06
Points: 0

I'm having the same issue running glassfish on vista.

[#|2007-09-25T12:16:20.147-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@72d398;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://192.168.0.5: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=622946fd-5470-4d0f-9f0d-c203b2ede367;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@72d398 cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://192.168.0.5: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]|#]

[#|2007-09-25T12:16:20.150-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=622946fd-5470-4d0f-9f0d-c203b2ede367;|CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://192.168.0.5: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:442)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.io.IOException: Cannot bind to URL [rmi://192.168.0.5: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:814)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:431)
at com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:218)
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:134)
... 9 more

How did you resolve this?

km
Offline
Joined: 2005-10-28
Points: 0

On Windows XP, there is a file named hosts in Windows/System32 folder (subfolders therein).
Check this file. I don't know if Vista has it too.

Basically, you should be able to open a ServerSocket at InetAddress.getLocalHost().

- Kedar

amyroh
Offline
Joined: 2004-05-06
Points: 0

Right. Vista does have hosts file also. My hosts file on Vista has the same content as my hosts file on XP. I can start GlassFish on XP just fine though unlike on Vista.

My hosts only contains the following -

127.0.0.1 localhost

Thanks,
Amy

prosp4300
Offline
Joined: 2006-10-28
Points: 0

As I tested
[i]127.0.0.1 localhost [/i]
is not enough

in my laptop
I give two lines in /etc/hosts
[i]127.0.0.1 localhost
127.0.0.1 prosp4300-laptop[/i]

prosp4300-laptop is my computer name
If I remove the second line, same exception will happen

srinivas635
Offline
Joined: 2005-10-24
Points: 0

Thanks a lot friends..i found out the error...my hostname is mapping to a different ip address causing the error...

Thanks
srinivas

srinivas635
Offline
Joined: 2005-10-24
Points: 0

o..sorry for that...here's more details on the sever.log

*****
[#|2005-12-07T10:55:24.293+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5098: AS Socket Service Initialization has been completed.|#]

[#|2005-12-07T10:55:27.972+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM0001:MBeanServer initialized successfully|#]

[#|2005-12-07T10:55:36.533+0530|INFO|sun-appserver-pe9.0|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.|#]

[#|2005-12-07T10:55:36.941+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.selfmanagement|_ThreadID=10;_ThreadName=main;|sgmt.service_initialized|#]

[#|2005-12-07T10:55:39.819+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|MQAddressList :: initJmsServicetarget server|#]

[#|2005-12-07T10:55:40.075+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
MQAddressList :: setting up for SI/DAS server|#]

[#|2005-12-07T10:55:40.081+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
MQAddressList :: performing default setup for DAS/remote clusters|#]

[#|2005-12-07T10:55:40.082+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
MQAddressList :: performing defaultsetup|#]

[#|2005-12-07T10:55:49.159+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM1079: Initialization of AMX MBeans successful|#]

[#|2005-12-07T10:55:50.600+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@4f3ba2;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://raga.india.sun.com:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: raga.india.sun.com; nested exception is:
java.net.ConnectException: Connection refused];_RequestID=e65d6f7a-ad69-4bed-b96a-b9ae817342f8;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@4f3ba2 cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://raga.india.sun.com:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: raga.india.sun.com; nested exception is:
java.net.ConnectException: Connection refused]|#]

[#|2005-12-07T10:55:50.608+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=e65d6f7a-ad69-4bed-b96a-b9ae817342f8;|CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://raga.india.sun.com:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: raga.india.sun.com; nested exception is:
java.net.ConnectException: Connection refused]
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:125)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:324)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:110)
at com.sun.enterprise.server.PEMain.run(PEMain.java:318)
at com.sun.enterprise.server.PEMain.main(PEMain.java:252)
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:210)
Caused by: java.io.IOException: Cannot bind to URL [rmi://raga.india.sun.com:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: raga.india.sun.com; nested exception is:
java.net.ConnectException: Connection refused]
at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:814)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:431)
at com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:194)
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:116)
... 9 more
Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: raga.india.sun.com; nested exception is:
java.net.ConnectException: Connection refused]
at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122)
at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:635)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427)
... 11 more
Caused by: java.rmi.ConnectException: Connection refused to host: raga.india.sun.com; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:116)
... 15 more
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:525)
at com.sun.enterprise.server.ss.provider.ASClientSocketImpl.connect(ASClientSocketImpl.java:204)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:178)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
... 20 more
|#]

[#|2005-12-07T10:55:50.617+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=e65d6f7a-ad69-4bed-b96a-b9ae817342f8;|Server Startup failed. Exiting...|#]

[#|2005-12-07T10:55:50.619+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Server shutdown in progress...|#]

[#|2005-12-07T10:55:50.620+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5051: Shutting down all J2EE applications ...|#]

[#|2005-12-07T10:55:50.621+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE 5060 : Stopping all J2EE Connector 1.5 Compliant resource adapters ...|#]

[#|2005-12-07T10:55:50.626+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE 5061 : Resource adapters Stop() Complete|#]

[#|2005-12-07T10:55:50.627+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5052: Application shutdown complete.|#]
[#|2005-12-07T10:55:50.691+0530|WARNING|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=e65d6f7a-ad69-4bed-b96a-b9ae817342f8;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException
at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:143)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:438)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:121)
at com.sun.enterprise.server.PEMain.run(PEMain.java:335)
at com.sun.enterprise.server.PEMain.main(PEMain.java:252)
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:210)
|#]

[#|2005-12-07T10:55:51.628+0530|WARNING|sun-appserver-pe9.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;_RequestID=e65d6f7a-ad69-4bed-b96a-b9ae817342f8;|Exception while stopping Derby :
SQL Exception: Derby system shutdown.
at com.sun.enterprise.resource.PoolManagerImpl.stopEmbeddedDerby(PoolManagerImpl.java:850)
at com.sun.enterprise.resource.PoolManagerImpl.killAllPools(PoolManagerImpl.java:837)
at com.sun.enterprise.server.ApplicationServer.onTermination(ApplicationServer.java:464)
at com.sun.enterprise.server.PEMain.run(PEMain.java:340)
at com.sun.enterprise.server.PEMain.main(PEMain.java:252)
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:210)
|#]

[#|2005-12-07T10:55:51.632+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=e65d6f7a-ad69-4bed-b96a-b9ae817342f8;|Server stopped due to Server startup failure

****
thanks
Srinivas

raharsha
Offline
Joined: 2004-11-07
Points: 0

There must have been other errors in the log file. Please paste the previous 3 or 4 lines/stack traces. Due to the exception while startup, the server is trying to shutdown and the exceptions you have shown are those that were thrown during this shutdown. The exceptions during the startup will give more information on the cause of failure.

cayhorstmann
Offline
Joined: 2003-06-13
Points: 0

I've been running Glassfish on Fedora Core for several months with good success. However, I only tried the "promoted" builds (currently build 29).

If you have a firewall enabled, you will need to open a number of ports. See https://glassfish.dev.java.net/downloads/quickstart/

And, of course, you will want to use Sun's Java 5.

Cheers,

Cay