users@glassfish.java.net

Error starting GlassFish after after loading certificates

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Oct 2007 15:20:41 PDT

I am trying to use WSIT to secure existing web services and BPEL process running in GF/Open ESB

I have loaded the certs per:
http://java.sun.com/webservices/reference/tutorials/wsit/doc/WSIT_Security6.html#wp138685
I had to use adminadmin as default pwd for keystore/trustore in lieu of changeit in build.xml of copyv3 as openesb build, it seems, does not use the default changeit pwd.
I can verify that the certs/keys are uploaded ok ..

I have also secured the WS per:
http://java.sun.com/webservices/reference/tutorials/wsit/doc/WSIT_Security5.html#wp161451

However when I start GF, I am getting the following error

What is the problem?

Thanks,

Alexis


[#|2007-10-17T21:45:00.203-0400|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=dbff7b44-8236-41d7-b10b-eca7a2b412fc;|java.lang.reflect.InvocationTargetException
   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.ExceptionInInitializerError
   at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:101)
   at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
   at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
   at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
   at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
   ... 5 more
Caused by: java.lang.IllegalStateException: java.security.UnrecoverableKeyException: Cannot recover key
   at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:128)
   ... 10 more
Caused by: java.security.UnrecoverableKeyException: Cannot recover key
   at sun.security.provider.KeyProtector.recover(KeyProtector.java:311)
   at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:121)
   at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:38)
   at java.security.KeyStore.getKey(KeyStore.java:763)
   at com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:113)
   at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:48)
   at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
   at com.sun.enterprise.security.SSLUtils.initKeyManagers(SSLUtils.java:320)
   at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:106)
   ... 10 more
[Message sent by forum member 'alexisroos' (alexisroos)]

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