users@glassfish.java.net

Re: Problems starting galssfish

From: Chris Fleischmann <Chris.Fleischmann_at_Sun.COM>
Date: Thu, 02 Oct 2008 11:46:37 +1000

When you installed GlassFish, did you install it when your laptop was
connected to the internet/Intranet over DHCP/Static IP... If you
did/didn't did you try powering up NetBeans when not connected or
connected? Meaning if you installed NetBeans 6.5 (including GlassFish)
did you install when connected, if so, are you now trying to use
NetBeans when your not connected?

A good practice for a laptop is to make sure you install GlassFish when
not connected over DHCP etc. That way localhost should always work

Cheers,

Chris



glassfish_at_javadesktop.org wrote:
> Hey there, well i was using my laptop to start developing in netbeans 6.5 and the glassfish server won't start. I've been looking everywhere and i don't know what else to do.
>
> Here goes the server log, i am using Windows Vista 64
>
> 1/10/2008 06:25:04 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
> INFO:
> C:/Program Files (x86)/Java/jdk1.6.0_06\bin\java
> -Dcom.sun.aas.instanceRoot=C:/Users/Netbeans/.personalDomain/personalDomain
> -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,C:/Program Files/glassfish-v2ur2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,C:/Program Files/glassfish-v2ur2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
> -Dcom.sun.aas.classloader.serverClassPath=C:/Program Files/glassfish-v2ur2/lib/install/applications/jmsra/imqjmsra.jar,C:/Program Files/glassfish-v2ur2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2ur2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2ur2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2ur2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2ur2/lib/ant/lib/ant.jar,C:/Program Files/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,C:/Program Files/glassfish-v2ur2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
> -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Program Files (x86)/Java/jdk1.6.0_06/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,C:/Program Files/glassfish-v2ur2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2ur2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2ur2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2ur2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2ur2/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,C:/Program Files/glassfish-v2ur2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Program Files/glassfish-v2ur2/updatecenter/lib/updatecenter.jar,C:/Program Files/glassfish-v2ur2/jbi/lib/jbi.jar,C:/Program Files/glassfish-v2ur2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2ur2/lib/ant/lib/ant.jar,dbschema.jar
> -Dcom.sun.aas.configName=server-config
> -Dcom.sun.aas.configRoot=C:/Program Files/glassfish-v2ur2/config
> -Dcom.sun.aas.defaultLogFile=C:/Users/Netbeans/.personalDomain/personalDomain/logs/server.log
> -Dcom.sun.aas.domainName=personalDomain
> -Dcom.sun.aas.installRoot=C:/Program Files/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=C:/Program Files/glassfish-v2ur2/updatecenter
> -Ddomain.name=personalDomain
> -Djava.endorsed.dirs=C:/Program Files/glassfish-v2ur2/lib/endorsed
> -Djava.ext.dirs=C:/Program Files (x86)/Java/jdk1.6.0_06/lib/ext;C:/Program Files (x86)/Java/jdk1.6.0_06/jre/lib/ext;C:/Users/Netbeans/.personalDomain/personalDomain/lib/ext;C:/Program Files/glassfish-v2ur2/javadb/lib
> -Djava.library.path=C:\Program Files\glassfish-v2ur2\lib;C:\Program Files\glassfish-v2ur2\lib;C:\Program Files\glassfish-v2ur2\bin;C:\Program Files\glassfish-v2ur2\lib
> -Djava.security.auth.login.config=C:/Users/Netbeans/.personalDomain/personalDomain/config/login.conf
> -Djava.security.policy=C:/Users/Netbeans/.personalDomain/personalDomain/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=C:/Users/Netbeans/.personalDomain/personalDomain/config/keystore.jks
> -Djavax.net.ssl.trustStore=C:/Users/Netbeans/.personalDomain/personalDomain/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=C:/Users/Netbeans/.personalDomain/personalDomain/logs/jvm.log
> -cp
> C:/Program Files/glassfish-v2ur2/lib/jhall.jar;C:\Program Files\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_06] from [Sun Microsystems Inc.]
> SEC1002: Security Manager is OFF.
> C:/Users/Netbeans/.personalDomain/personalDomain/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
> Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_1565e9d cannot be started! : com.sun.appserv.server.ServerLifecycleException
> CORE5071: An error occured during initialization
> com.sun.appserv.server.ServerLifecycleException
> 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.lang.NullPointerException
> at javax.management.remote.JMXConnectorServerFactory.newJMXConnectorServer(JMXConnectorServerFactory.java:283)
> at com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:215)
> at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:134)
> ... 9 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.
> sending notification to server...server
>
> My netstat -a log is this
>
>
> C:\Users\Netbeans>netstat -a
>
> Active Connections
>
> Proto Local Address Foreign Address State
> TCP 0.0.0.0:135 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:445 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:554 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:2869 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:5357 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:8082 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:10243 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:49152 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:49153 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:49154 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:49155 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:49156 Andrés-PC:0 LISTENING
> TCP 0.0.0.0:49157 Andrés-PC:0 LISTENING
> TCP 127.0.0.1:50723 Andrés-PC:0 LISTENING
> TCP 127.0.0.1:50939 Andrés-PC:50940 ESTABLISHED
> TCP 127.0.0.1:50940 Andrés-PC:50939 ESTABLISHED
> TCP 127.0.0.1:50941 Andrés-PC:50942 ESTABLISHED
> TCP 127.0.0.1:50942 Andrés-PC:50941 ESTABLISHED
> TCP 127.0.0.1:51001 Andrés-PC:8084 TIME_WAIT
> TCP 127.0.0.1:51002 Andrés-PC:8084 TIME_WAIT
> TCP 127.0.0.1:51003 Andrés-PC:8084 TIME_WAIT
> TCP 127.0.0.1:51004 Andrés-PC:8084 TIME_WAIT
> TCP 127.0.0.1:51005 Andrés-PC:8084 TIME_WAIT
> TCP 127.0.0.1:51006 Andrés-PC:8084 TIME_WAIT
> TCP 127.0.0.1:51007 Andrés-PC:8084 TIME_WAIT
> TCP 127.0.0.1:51008 Andrés-PC:8025 TIME_WAIT
> TCP 127.0.0.1:51009 Andrés-PC:8084 TIME_WAIT
> TCP 172.16.200.253:139 Andrés-PC:0 LISTENING
> TCP 172.16.200.253:2869 d5793xb1:1725 ESTABLISHED
> TCP 172.16.200.253:50996 proxy:3128 ESTABLISHED
> TCP 172.16.200.253:50997 proxy:3128 ESTABLISHED
> TCP 172.16.200.253:51013 proxy:3128 ESTABLISHED
> TCP [::]:135 Andrés-PC:0 LISTENING
> TCP [::]:445 Andrés-PC:0 LISTENING
> TCP [::]:554 Andrés-PC:0 LISTENING
> TCP [::]:2869 Andrés-PC:0 LISTENING
> TCP [::]:5357 Andrés-PC:0 LISTENING
> TCP [::]:8082 Andrés-PC:0 LISTENING
> TCP [::]:10243 Andrés-PC:0 LISTENING
> TCP [::]:49152 Andrés-PC:0 LISTENING
> TCP [::]:49153 Andrés-PC:0 LISTENING
> TCP [::]:49154 Andrés-PC:0 LISTENING
> TCP [::]:49155 Andrés-PC:0 LISTENING
> TCP [::]:49156 Andrés-PC:0 LISTENING
> TCP [::]:49157 Andrés-PC:0 LISTENING
> TCP [::1]:50724 Andrés-PC:0 LISTENING
> TCP [::1]:50984 Andrés-PC:0 LISTENING
> UDP 0.0.0.0:123 *:*
> UDP 0.0.0.0:500 *:*
> UDP 0.0.0.0:3702 *:*
> UDP 0.0.0.0:3702 *:*
> UDP 0.0.0.0:4500 *:*
> UDP 0.0.0.0:5004 *:*
> UDP 0.0.0.0:5005 *:*
> UDP 0.0.0.0:5355 *:*
> UDP 0.0.0.0:49152 *:*
> UDP 127.0.0.1:1900 *:*
> UDP 127.0.0.1:51729 *:*
> UDP 127.0.0.1:53560 *:*
> UDP 127.0.0.1:58127 *:*
> UDP 172.16.200.253:137 *:*
> UDP 172.16.200.253:138 *:*
> UDP 172.16.200.253:1900 *:*
> UDP 172.16.200.253:51728 *:*
> UDP [::]:123 *:*
> UDP [::]:500 *:*
> UDP [::]:3702 *:*
> UDP [::]:3702 *:*
> UDP [::]:5004 *:*
> UDP [::]:5005 *:*
> UDP [::]:5355 *:*
> UDP [::]:49153 *:*
> UDP [::1]:1900 *:*
> UDP [::1]:51727 *:*
> UDP [fe80::4542:9512:2d83:ad4e%11]:1900 *:*
> UDP [fe80::4542:9512:2d83:ad4e%11]:51725 *:*
> UDP [fe80::e52a:99c3:835a:f630%10]:1900 *:*
> UDP [fe80::e52a:99c3:835a:f630%10]:51726 *:*
>
> Somebody help me!!!!
> [Message sent by forum member 'andreso01' (andreso01)]
>
> http://forums.java.net/jive/thread.jspa?messageID=302842
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>