users@glassfish.java.net

RE: Can't start glassfish

From: Derek Sceats <dsceats_at_silasg.com>
Date: Wed, 9 Sep 2009 13:02:50 -0700

When you created the new keystore, did you generate a key with alias "s1as"?
 
This can be done by using keytool:
keytool -genkey -alias s1as -keyalg rsa -keysize 1024 -validity 3650 -keystore keystore.jks
 
In future, it might be better to just delete the alias from the keystore, rather than delete the whole keystore.
 
HTH
 
Derek

________________________________

From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Wed 9/9/2009 11:27 AM
To: users_at_glassfish.dev.java.net
Subject: Can't start glassfish



Hi,

  I tried to import a SSL certificate, but later found out the password was mismatch, so I deleted the keystore.jks and created a new one. Now, my glassfish is refused to start. Here are the error message:


[#|2009-09-09T11:22:09.526-0700|WARNING|sun-appserver2.1|javax.enterprise.system
.core|_ThreadID=10;_ThreadName=main;_RequestID=0ca3545c-9f16-4d0f-bfc6-ea57fb21b
e69;|CORE5061: Exception :
java.lang.NullPointerException
        at com.sun.enterprise.util.InvocationManagerImpl.preInvoke(InvocationMan
agerImpl.java:136)
        at com.sun.appserv.server.ServerLifecycleModule.preInvoke(ServerLifecycl
eModule.java:178)
        at com.sun.appserv.server.ServerLifecycleModule.postEvent(ServerLifecycl
eModule.java:219)
        at com.sun.appserv.server.ServerLifecycleModule.onShutdown(ServerLifecyc
leModule.java:273)
        at com.sun.appserv.server.LifecycleModuleService.onShutdown(LifecycleMod
uleService.java:487)
        at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationSer
ver.java:553)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemand
Server.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(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]

[#|2009-09-09T11:22:09.556-0700|WARNING|sun-appserver2.1|javax.enterprise.system
.core|_ThreadID=10;_ThreadName=main;_RequestID=0ca3545c-9f16-4d0f-bfc6-ea57fb21b
e69;|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(ApplicationSer
ver.java:553)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemand
Server.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(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]

[#|2009-09-09T11:22:09.568-0700|WARNING|sun-appserver2.1|javax.enterprise.system
.tools.admin|_ThreadID=10;_ThreadName=main;_RequestID=0ca3545c-9f16-4d0f-bfc6-ea
57fb21be69;|core.tmp_folder_deletion_failed|#]

[#|2009-09-09T11:22:12.021-0700|WARNING|sun-appserver2.1|javax.enterprise.system
.core|_ThreadID=10;_ThreadName=main;_RequestID=0ca3545c-9f16-4d0f-bfc6-ea57fb21b
e69;|CORE5061: Exception :
java.lang.NullPointerException
        at com.sun.enterprise.util.InvocationManagerImpl.preInvoke(InvocationMan
agerImpl.java:136)
        at com.sun.appserv.server.ServerLifecycleModule.preInvoke(ServerLifecycl
eModule.java:178)
        at com.sun.appserv.server.ServerLifecycleModule.postEvent(ServerLifecycl
eModule.java:219)
        at com.sun.appserv.server.ServerLifecycleModule.onTermination(ServerLife
cycleModule.java:277)
        at com.sun.appserv.server.LifecycleModuleService.onTermination(Lifecycle
ModuleService.java:496)
        at com.sun.enterprise.server.ApplicationServer.onTermination(Application
Server.java:591)
        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(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]

[#|2009-09-09T11:22:12.026-0700|SEVERE|sun-appserver2.1|javax.enterprise.system.
core|_ThreadID=10;_ThreadName=main;_RequestID=0ca3545c-9f16-4d0f-bfc6-ea57fb21be
69;|Server stopped due to Server startup failure.|#]

[#|2009-09-09T11:22:12.039-0700|INFO|sun-appserver2.1|javax.enterprise.system.co
re|_ThreadID=13;_ThreadName=Thread-1;|sending notification to server...server|#]

How do I fix the problem? Please help! Thanks!

Regards,

Johnny
[Message sent by forum member 'tanww888' (tanww888_at_yahoo.com)]

http://forums.java.net/jive/thread.jspa?messageID=363423

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net