Forwarding to users_at_glassfish.
Paul
-------- Original Message --------
Subject: GlassFish start failure
Date: Fri, 21 Nov 2008 11:15:58 -0500
From: Sang Shin <Sang.Shin_at_Sun.COM>
To: glassfish-interest_at_Sun.COM, netbeans Feedback
<netbeans-feedback_at_Sun.COM>
I know people encounter this problem once in a while.
I got into a situation in which GlassFish v2
refuses to start correctly. (It has been working
fine.)
I uninstalled netbeans/glassfishv2/glassfishv3
and removed ./netbeans/netbeans6.5 directory
and did a clean install. Yet, I am still
seeing the following error message when I
try to start the glassfish.
Looking at the error log below, it looks
like it is having a problem starting JMX.
Anybody can shed a light on this? Thanks
in advance.
-Sang
----Log File Rotated---
Nov 21, 2008 11:10:16 AM
com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
/export/home/sang/jdk1.6.0_10/bin/java
-Dcom.sun.aas.instanceRoot=/export/home/sang/glassfish-v2ur2/domains/domain1
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,/export/home/sang/glassfish-v2ur2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=/export/home/sang/glassfish-v2ur2/lib/install/applications/jmsra/imqjmsra.jar,/export/home/sang/glassfish-v2ur2/imq/lib/jaxm-api.jar,/export/home/sang/glassfish-v2ur2/imq/lib/fscontext.jar,/export/home/sang/glassfish-v2ur2/imq/lib/imqbroker.jar,/export/home/sang/glassfish-v2ur2/imq/lib/imqjmx.jar,/export/home/sang/glassfish-v2ur2/lib/ant/lib/ant.jar,/export/home/sang/glassfish-v2ur2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/export/home/sang/jdk1.6.0_10/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,/export/home/sang/glassfish-v2ur2/imq/lib/jaxm-api.jar,/export/home/sang/glassfish-v2ur2/imq/lib/fscontext.jar,/export/home/sang/glassfish-v2ur2/imq/lib/imqbroker.jar,/export/home/sang/glassfish-v2ur2/imq/lib/imqjmx.jar,/export/home/sang/glassfish-v2ur2/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,/export/home/sang/glassfish-v2ur2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,/export/home/sang/glassfish-v2ur2/updatecenter/lib/updatecenter.jar,/export/home/sang/glassfish-v2ur2/jbi/lib/jbi.jar,/export/home/sang/glassfish-v2ur2/imq/lib/imqjmx.jar,/export/home/sang/glassfish-v2ur2/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=/export/home/sang/glassfish-v2ur2/config
-Dcom.sun.aas.defaultLogFile=/export/home/sang/glassfish-v2ur2/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=/export/home/sang/glassfish-v2ur2
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.updatecenter.home=/export/home/sang/glassfish-v2ur2/updatecenter
-Ddomain.name=domain1
-Djava.endorsed.dirs=/export/home/sang/glassfish-v2ur2/lib/endorsed
-Djava.ext.dirs=/export/home/sang/jdk1.6.0_10/lib/ext:/export/home/sang/jdk1.6.0_10/jre/lib/ext:/export/home/sang/glassfish-v2ur2/domains/domain1/lib/ext:/export/home/sang/glassfish-v2ur2/javadb/lib
-Djava.library.path=/export/home/sang/glassfish-v2ur2/lib:/export/home/sang/glassfish-v2ur2/lib:/export/home/sang/glassfish-v2ur2/lib
-Djava.security.auth.login.config=/export/home/sang/glassfish-v2ur2/domains/domain1/config/login.conf
-Djava.security.policy=/export/home/sang/glassfish-v2ur2/domains/domain1/config/server.policy
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Djavax.net.ssl.keyStore=/export/home/sang/glassfish-v2ur2/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=/export/home/sang/glassfish-v2ur2/domains/domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djmx.invoke.getters=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-client
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=/export/home/sang/glassfish-v2ur2/domains/domain1/logs/jvm.log
-cp
/export/home/sang/glassfish-v2ur2/lib/jhall.jar:/export/home/sang/glassfish-v2ur2/lib/appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
Starting Sun Java System Application Server 9.1_02 (build b04-fcs) ...
MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_10-rc2] from
[Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
/export/home/sang/glassfish-v2ur2/domains/domain1/config/.__com_sun_appserv_pid
ADM0001:SunoneInterceptor is now enabled
SEC1143: Loading policy provider
com.sun.enterprise.security.provider.PolicyWrapper.
WEB0114: SSO is disabled in virtual server [server]
WEB0114: SSO is disabled in virtual server [__asadmin]
ADM1079: Initialization of AMX MBeans started
java.io.EOFException];_RequestID=82063909-af52-42f5-875d-45ce30bd2d87;|Service
com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_c22978 cannot
be started! : com.sun.appserv.server.ServerLifecycleException: Cannot
bind to URL
[rmi://vbn.inter-touch.net:8686/management/rmi-jmx-connector]:
javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: error during JRMP connection establishment;
nested exception is:
java.io.EOFException]
CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL
[rmi://vbn.inter-touch.net:8686/management/rmi-jmx-connector]:
javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: error during JRMP connection establishment;
nested exception is:
java.io.EOFException]
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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.io.IOException: Cannot bind to URL
[rmi://vbn.inter-touch.net:8686/management/rmi-jmx-connector]:
javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: error during JRMP connection establishment;
nested exception is:
java.io.EOFException]
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:218)
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.io.EOFException]
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.io.EOFException
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.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:250)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228)
... 19 more
Server Startup failed. Exiting...
Server shutdown in progress...
WEB0303: Stopping Sun-Java-System/Application-Server.
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:822)
at
com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:95)
at
com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:549)
at
com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:131)
at com.sun.enterprise.server.PEMain.run(PEMain.java:429)
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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
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:814)
... 10 more
CORE5051: Shutting down all J2EE applications ...
CORE 5060 : Stopping all J2EE Connector 1.5 Compliant resource adapters ...
CORE 5061 : Resource adapters Stop() Complete
CORE5052: Application shutdown complete.
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:549)
at
com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:131)
at com.sun.enterprise.server.PEMain.run(PEMain.java:429)
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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
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:549)
at
com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:131)
at com.sun.enterprise.server.PEMain.run(PEMain.java:429)
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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
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:587)
at com.sun.enterprise.server.PEMain.run(PEMain.java:434)
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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Server stopped due to Server startup failure.
--
---------------------------------------------------------------
**** JavaFX course starts from December 15th, 2008 ***
http://www.javapassion.com/javafx
Sang Shin, sang.shin_at_sun.com
http://www.javapassion.com/SangShinSchedule.html
(Life is worth living... with Passion!)
---------------------------------------------------------------
--
Paul
GlassFish Community Manager