Failed to load keystore type jks with path tomcat. keystore due to D:/workspace/. Metadata/. plugins/or

Source: Internet
Author: User

Symptom: the following error occurs when you use eclipse Helios 3.6 to start Tomcat:

========================================================== =====

10:13:12 org.apache.tomcat.util.net. JSSE. jssesocketfactory getstore
Severe: failed to load keystore type jks with path tomcat. keystore due to D:/workspace /. metadata /. plugins/org. eclipse. WST. server. core/tmp1/tomcat. keystore (the system cannot find the specified file .)
Java. io. filenotfoundexception: D:/workspace /. metadata /. plugins/org. eclipse. WST. server. core/tmp1/tomcat. keystore (the system cannot find the specified file .)
At java. Io. fileinputstream. Open (native method)
At java. Io. fileinputstream. <init> (fileinputstream. Java: 106)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. getstore (jssesocketfactory. Java: 337)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. getkeystore (jssesocketfactory. Java: 259)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. getkeymanagers (jssesocketfactory. Java: 444)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. INIT (jssesocketfactory. Java: 409)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. createsocket (jssesocketfactory. Java: 125)
At org.apache.tomcat.util.net. jioendpoint. INIT (jioendpoint. Java: 496)
At org.apache.tomcat.util.net. jioendpoint. Start (jioendpoint. Java: 519)
At org. Apache. Coyote. http11.http11protocol. Start (http11protocol. Java: 203)
At org. Apache. Catalina. connector. connector. Start (connector. Java: 1131)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 531)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 578)
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 org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 288)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 413)
2011-1-30 10:13:12 org. Apache. Coyote. http11.http11protocol start
Severe: Error starting endpoint
Java. io. filenotfoundexception: D:/workspace /. metadata /. plugins/org. eclipse. WST. server. core/tmp1/tomcat. keystore (the system cannot find the specified file .)
At java. Io. fileinputstream. Open (native method)
At java. Io. fileinputstream. <init> (fileinputstream. Java: 106)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. getstore (jssesocketfactory. Java: 337)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. getkeystore (jssesocketfactory. Java: 259)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. getkeymanagers (jssesocketfactory. Java: 444)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. INIT (jssesocketfactory. Java: 409)
At org.apache.tomcat.util.net. JSSE. jssesocketfactory. createsocket (jssesocketfactory. Java: 125)
At org.apache.tomcat.util.net. jioendpoint. INIT (jioendpoint. Java: 496)
At org.apache.tomcat.util.net. jioendpoint. Start (jioendpoint. Java: 519)
At org. Apache. Coyote. http11.http11protocol. Start (http11protocol. Java: 203)
At org. Apache. Catalina. connector. connector. Start (connector. Java: 1131)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 531)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 578)
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 org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 288)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 413)
2011-1-30 10:13:12 org. Apache. Catalina. startup. Catalina start
Severe: Catalina. Start:
Lifecycleexception: service. getname (): "Catalina"; protocol handler start failed: Java. io. filenotfoundexception: D:/workspace /. metadata /. plugins/org. eclipse. WST. server. core/tmp1/tomcat. keystore (the system cannot find the specified file .)
At org. Apache. Catalina. connector. connector. Start (connector. Java: 1138)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 531)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 578)
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 org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 288)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 413)

========================================================== =====

 

Solution:

Because eclipse uses external tomcat, and tomcat has previously configured SSL, go to the Tomcat created in the previous configuration. keystore, and then copy it to the file directory (D:/workspace /. metadata /. plugins/org. eclipse. WST. server. core/tmp1/), restart tomcat, OK!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.