Hi,
Glassfish v2 won't start up for me. It gives a "java.security.UnrecoverableKeyException: Cannot recover key" exception. Any ideas?
What I've done:
* Installed Netbeans 6 Beta (which has Glassfish v2)
* Created a basic web service (in a web project) => deployed fine to Glassfish
* Enabled security for the web-service in the "security service" section for the web-service
* I'm now can't get Glassfish to startup (see full error below)
* Netbeans doesn't have an Undeploy (it has an Undeploy/Redeploy) so I'm not sure how best to remove any trace of the deployed web-service within Glassfish and try again
* I did rename the "generated" directory and tried starting Glassfish in normal (non debug) mode however I get the same issue.
Full issue below is:
19/09/2007 09:19:17 com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
C:/Sun/SDK/jdk\bin\java
-Dcom.sun.aas.instanceRoot=C:/Program Files/glassfish-v2-b58g/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,C:/Program Files/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,C:/Program Files/glassfish-v2-b58g/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=C:/Program Files/glassfish-v2-b58g/lib/install/applications/jmsra/imqjmsra.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2-b58g/lib/ant/lib/ant.jar,C:/Program Files/glassfish-v2-b58g/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-v2-b58g/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Sun/SDK/jdk/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,C:/Program Files/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Program Files/glassfish-v2-b58g/updatecenter/lib/updatecenter.jar,C:/Program Files/glassfish-v2-b58g/jbi/lib/jbi.jar,C:/Program Files/glassfish-v2-b58g/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2-b58g/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=C:/Program Files/glassfish-v2-b58g/config
-Dcom.sun.aas.defaultLogFile=C:/Program Files/glassfish-v2-b58g/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=C:/Program Files/glassfish-v2-b58g
-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-v2-b58g/updatecenter
-Ddomain.name=domain1
-Dhttp.nonProxyHosts=165.86.*.*|*.health.qld.gov.au|10.*.*.*|*.htcps.*|<local>*|localhost|127.0.0.1|QH30516095
-Dhttp.proxyHost=proxy1.health.qld.gov.au
-Dhttp.proxyPort=80
-Dhttps.proxyHost=proxy1.health.qld.gov.au
-Dhttps.proxyPort=80
-Djava.endorsed.dirs=C:/Program Files/glassfish-v2-b58g/lib/endorsed
-Djava.ext.dirs=C:/Sun/SDK/jdk/lib/ext;C:/Sun/SDK/jdk/jre/lib/ext;C:/Program Files/glassfish-v2-b58g/domains/domain1/lib/ext;C:/Program Files/glassfish-v2-b58g/javadb/lib
-Djava.library.path=C:\Program Files\glassfish-v2-b58g\lib;C:\Program Files\glassfish-v2-b58g\lib;C:\Program Files\glassfish-v2-b58g\bin;C:\Program Files\glassfish-v2-b58g\lib
-Djava.security.auth.login.config=C:/Program Files/glassfish-v2-b58g/domains/domain1/config/login.conf
-Djava.security.policy=C:/Program Files/glassfish-v2-b58g/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=C:/Program Files/glassfish-v2-b58g/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Program Files/glassfish-v2-b58g/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=C:/Program Files/glassfish-v2-b58g/domains/domain1/logs/jvm.log
-cp
C:/Program Files/glassfish-v2-b58g/lib/jhall.jar;C:\Program Files\glassfish-v2-b58g\lib\appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
Starting Sun Java System Application Server 9.1 (build b58g-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_02] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
C:/Program Files/glassfish-v2-b58g/domains/domain1/config/.__com_sun_appserv_pid
ADM0001:SunoneInterceptor is now enabled
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
regards
[Message sent by forum member 'callagga' (callagga)]
http://forums.java.net/jive/thread.jspa?messageID=235927