JBoss throws IOException: Cannot recover key exception during startup
Issue
- Why does JBoss throw a "java.io.IOException: Cannot recover key" exception during startup?
-
The following error is logged when starting JBoss Enterprise Application Platform 5:
ERROR [Http11Protocol] Error initializing endpoint java.io.IOException: Cannot recover key at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:485) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:142) at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:502) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175) -
The following error is logged when starting EAP 6:
ERROR [org.apache.coyote.http11] (MSC service thread 1-2) JBWEB003043: Error initializing endpoint: java.io.IOException: Cannot recover key at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:488) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:162) at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:967) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:174) -
The following error is logged trying to create a SSL connection:
Exception: java.security.UnrecoverableKeyException: Cannot recover key at sun.security.provider.KeyProtector.recover(KeyProtector.java:328)
Environment
- JBoss Enterprise Application Platform (EAP)
- 4.x
- 5.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
