Context of the error message:

INFO: The Initializing ProtocolHandler [HTTP – bio – 9099 “”] Dec 11, 2019 5:28:45 PM org. apache. tomcat. util. net. jsse.JSSESocketFactorygetStore SEVERE: Failed to load keystore type JKS with path C:\MyApp\apache-tomcat-7.0.61/1ib/keystore due to C:\MyApp\ apache-tomlcat-7. 0.61\lib\keystore (The system cannot find The file specified) java.io. FileNotFoundException: C:\MyApp\ apache-tomcat-7.0.61 \lib\keystore (The system cannot find The file specified)at java.io. FileInputStream. openo (Native Method) at java. io. FilelnputStream. open (FileInputStream. java:195) at java. io. FileInputStream. Kinit> (FileInputStream. java:138) at org. apache. tomcat. uti1. net. jsse. JSSESocketFactory. getStore (JSSESocketFactory. java:422 at org. apache. tomcat.util.net. jsse.JSSBSocketFactory.getkeystore(]SSESocketFactory.java:328)at org. apache. tomcat. util. net. jsse. JSSESocketFactory.getKeyManagers(JSSBSocketFactory. java:586)at org. apache. tomcat. util. net. jsse. JSSESocketFactory. getkeyManagers(JSSESocketFactory. java:526)at org. apache.tomcat. util.net. jisse. JSSESocketFactorv. init(JSSESocketFactory. java:471 at org. apache. tomcat. util. net. jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:218)at org. apache. tomcat. util. net. JIoEndpoint. bind(JIoEndpoint. java : 400) at org. apache. tomcat.util. net. AbstractEndpoint. init(AbstractEndpoint. java:649) at org. apache. coyote. AbstractProtocol.init(AbstractProtocol. java:434) at org. apache. coyote. http11. AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol. java:119)at org. apache. catalina. connector.Connector.initInternal(Connector.java:978) at org. apache. catalina. util. LifecycleBase. init(LifecvcleBase. java:102 at org. apache. catalina. core. StandardService. initInternal(StandardService. java:559) at org. apache. catalina. util. LifecycleBase. init(LifecycleBase. java:102

Since the system cannot find the keystore file in the lib folder, we will generate one ourselves.

Use the command line tool keytool to generate a self-authentication certificate :(user authenticates himself to other users/services)

keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -keysize 2048





Put it in tomcat lib folder and the problem will be solved.

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: