Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting up Tomcat with SSL on Eclipse: "keystoreFile" has no effect
    text
    copied!<p>I'm setting up a test environment with Tomcat6 + SSL on Eclpse</p> <p>I edited the <code>server.xml</code> file (in Eclipse server folder) and uncommented the SSL connector. I then made a self signed certificate following <a href="http://www.mkyong.com/tomcat/how-to-configure-tomcat-to-support-ssl-or-https/" rel="nofollow">this how-to</a>. Everything works fine until I keep the keystore file in my home directory but, when I try placing it in another folder and I set the "keystoreFile" parameter i get this error message at startup:</p> <pre><code>GRAVE: Failed to load keystore type JKS with path C:\Documents and Settings\myUser/.keystore due to C:\Documents and Settings\myUser\.keystore (Impossibile trovare il file specificato) java.io.FileNotFoundException: C:\Documents and Settings\myUser\.keystore (Impossibile trovare il file specificato) </code></pre> <p>It seems Tomcat doen't read my keystoreFile parameter.</p> <p>here is my <code>server.xml</code> file (SSL related parts only)</p> <pre><code> ... &lt;!--APR library loader. Documentation at /docs/apr.html --&gt; &lt;Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/&gt; ... &lt;Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="C:\myPath\.keystore" keystorePass="******" /&gt; ... </code></pre> <p><strong>Update</strong></p> <p>I exported my project as a <code>.war</code> file and deployed it on a <em>stand-alone</em> Tomcat. It works so it must be Eclipse the cause of my problem. If it may help I'm using Eclipse Helios (Service Release 2).</p> <p>Thanks.</p> <p><strong>Epilogue</strong></p> <p>At last it came out, thanks to Bruno, that it was Eclipse messing up with deploying files. After cleaning eclipse deploy folder everything worked.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload