You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Diep, David (OCTO-Contractor)" <Da...@dc.gov> on 2011/08/18 20:21:23 UTC

RE: Tomcat 6 getting error when trying to specify keystore

Hello,

I get the following in my logs during startup:

Aug 18, 2011 1:57:45 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\cert\keystore.jks (The system cannot find the path specified)
                at org.apache.catalina.connector.Connector.start(Connector.java:1094)
                at org.apache.catalina.core.StandardService.start(StandardService.java:534)
                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Aug 18, 2011 1:57:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 573 ms


This is my server.xml...  I cannot seem to get past this, I've tried multiple iterations everywhere from Verisign to Apache guides... Any help would be awesome!

      <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />

      <!-- SSL Connector on Port 443 -->

      <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               keystoreFile="/cert/keystore.jks" keystorePass="xxxxx"
               clientAuth="false" sslProtocol="TLS" />






"One City Summer Fun ... Something for Everyone"
Mayor Gray's comprehensive summer program with fun activities, events and services for residents of all ages
For more information visit www.onecitysummer.dc.gov<http://www.onecitysummer.dc.gov>  or call 311


RE: Tomcat 6 getting error when trying to specify keystore

Posted by "Diep, David (OCTO-Contractor)" <Da...@dc.gov>.
Hi Chris,

Yes... the individual keys have their own password different from the keystore password.



David Diep
IBM Z Series Network Architect
Office of the Chief Technology Officer
Phone: 202.727.1475 | Fax: 202.727.3880
Email: David.Diep@dc.gov | Website: www.octo.dc.gov
3919 Benning Road NE | Washington DC, 20019



“One City Summer Fun … Something for Everyone”
Mayor Gray’s comprehensive summer program with fun activities, events and services for residents of all ages
For more information visit www.onecitysummer.dc.gov  or call 311
-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net]
Sent: Friday, August 19, 2011 10:28 AM
To: Tomcat Users List
Subject: Re: Tomcat 6 getting error when trying to specify keystore

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David,

On 8/18/2011 9:03 PM, Diep, David (OCTO-Contractor) wrote:
> Thanks everyone.
>
> There were two problems... the first being that:
>
> 1. Use the full path
>
> 2. The keystore password and the key password needs to be the
> same! I used the following command to change it:
>
> keytool -keypasswd -alias tomcat -keystore ssl-keystore

Do individual keys in a keystore have their own passwords? I didn't
think so, but I haven't done a great deal of work with JKS.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5OctsACgkQ9CaO5/Lv0PCxqQCfS9HL/qLVxCaLAi0wwnMdRohL
LpUAnR5a73w5OKWHyYE1d/Uu59gFN0G8
=U3br
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 6 getting error when trying to specify keystore

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David,

On 8/18/2011 9:03 PM, Diep, David (OCTO-Contractor) wrote:
> Thanks everyone.
> 
> There were two problems... the first being that:
> 
> 1. Use the full path
> 
> 2. The keystore password and the key password needs to be the
> same! I used the following command to change it:
> 
> keytool -keypasswd -alias tomcat -keystore ssl-keystore

Do individual keys in a keystore have their own passwords? I didn't
think so, but I haven't done a great deal of work with JKS.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5OctsACgkQ9CaO5/Lv0PCxqQCfS9HL/qLVxCaLAi0wwnMdRohL
LpUAnR5a73w5OKWHyYE1d/Uu59gFN0G8
=U3br
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat 6 getting error when trying to specify keystore

Posted by "Diep, David (OCTO-Contractor)" <Da...@dc.gov>.
Thanks everyone.

There were two problems... the first being that:

1. Use the full path

2. The keystore password and the key password needs to be the same!  I used the following command to change it:

keytool -keypasswd -alias tomcat -keystore ssl-keystore






"One City Summer Fun ... Something for Everyone"
Mayor Gray's comprehensive summer program with fun activities, events and services for residents of all ages
For more information visit www.onecitysummer.dc.gov  or call 311
-----Original Message-----
From: Diep, David (OCTO-Contractor)
Sent: Thursday, August 18, 2011 4:33 PM
To: Tomcat Users List
Subject: RE: Tomcat 6 getting error when trying to specify keystore

Hey Renu,

Thanks for responding... I stated the full path. There is a different error in the log now... as it cannot recover the key.


    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />
    <!-- SSL Connector on Port 443 -->

    <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               keystoreFile="C:\Program Files\Apache Software Foundation\Tomcat 6.0\certs\keystore.jks"
               keystorePass="changeit"
               clientAuth="false" sslProtocol="TLS" />


ug 18, 2011 4:31:58 PM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.io.IOException: Cannot recover key
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:465)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:130)
 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
 at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
 at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
 at org.apache.catalina.connector.Connector.start(Connector.java:1087)
 at org.apache.catalina.core.StandardService.start(StandardService.java:534)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Aug 18, 2011 4:31:58 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.IOException: Cannot recover key
 at org.apache.catalina.connector.Connector.start(Connector.java:1094)
 at org.apache.catalina.core.StandardService.start(StandardService.java:534)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Aug 18, 2011 4:31:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 591 ms


________________________________________
From: RenuKumar [renu@dbxpert.com.my]
Sent: Thursday, August 18, 2011 2:30 PM
To: Tomcat Users List
Subject: Re: Tomcat 6 getting error when trying to specify keystore

Hi

Please state the full path in the server.xml file that should fix the
problem.

Diep, David (OCTO-Contractor) wrote:

>Hello,
>
>I get the following in my logs during startup:
>
>Aug 18, 2011 1:57:45 PM org.apache.catalina.startup.Catalina start
>SEVERE: Catalina.start:
>LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\cert\keystore.jks (The system cannot find the path specified)
>                at org.apache.catalina.connector.Connector.start(Connector.java:1094)
>                at org.apache.catalina.core.StandardService.start(StandardService.java:534)
>                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>                at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>                at java.lang.reflect.Method.invoke(Unknown Source)
>                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>Aug 18, 2011 1:57:45 PM org.apache.catalina.startup.Catalina start
>INFO: Server startup in 573 ms
>
>
>This is my server.xml...  I cannot seem to get past this, I've tried multiple iterations everywhere from Verisign to Apache guides... Any help would be awesome!
>
>      <Connector port="80" protocol="HTTP/1.1"
>               connectionTimeout="20000"
>               redirectPort="443" />
>
>      <!-- SSL Connector on Port 443 -->
>
>      <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
>               maxThreads="150" scheme="https" secure="true"
>               keystoreFile="/cert/keystore.jks" keystorePass="xxxxx"
>               clientAuth="false" sslProtocol="TLS" />
>
>
>
>
>
>
>"One City Summer Fun ... Something for Everyone"
>Mayor Gray's comprehensive summer program with fun activities, events and services for residents of all ages
>For more information visit www.onecitysummer.dc.gov<http://www.onecitysummer.dc.gov>  or call 311
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat 6 getting error when trying to specify keystore

Posted by "Diep, David (OCTO-Contractor)" <Da...@dc.gov>.
Hey Renu,

Thanks for responding... I stated the full path. There is a different error in the log now... as it cannot recover the key.


    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />
    <!-- SSL Connector on Port 443 -->

    <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               keystoreFile="C:\Program Files\Apache Software Foundation\Tomcat 6.0\certs\keystore.jks"
               keystorePass="changeit"
               clientAuth="false" sslProtocol="TLS" />


ug 18, 2011 4:31:58 PM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.io.IOException: Cannot recover key
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:465)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:130)
 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
 at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
 at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
 at org.apache.catalina.connector.Connector.start(Connector.java:1087)
 at org.apache.catalina.core.StandardService.start(StandardService.java:534)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Aug 18, 2011 4:31:58 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.IOException: Cannot recover key
 at org.apache.catalina.connector.Connector.start(Connector.java:1094)
 at org.apache.catalina.core.StandardService.start(StandardService.java:534)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Aug 18, 2011 4:31:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 591 ms



"One City Summer Fun ... Something for Everyone"
Mayor Gray's comprehensive summer program with fun activities, events and services for residents of all ages
For more information visit www.onecitysummer.dc.gov  or call 311
________________________________________
From: RenuKumar [renu@dbxpert.com.my]
Sent: Thursday, August 18, 2011 2:30 PM
To: Tomcat Users List
Subject: Re: Tomcat 6 getting error when trying to specify keystore

Hi

Please state the full path in the server.xml file that should fix the
problem.

Diep, David (OCTO-Contractor) wrote:

>Hello,
>
>I get the following in my logs during startup:
>
>Aug 18, 2011 1:57:45 PM org.apache.catalina.startup.Catalina start
>SEVERE: Catalina.start:
>LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\cert\keystore.jks (The system cannot find the path specified)
>                at org.apache.catalina.connector.Connector.start(Connector.java:1094)
>                at org.apache.catalina.core.StandardService.start(StandardService.java:534)
>                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>                at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>                at java.lang.reflect.Method.invoke(Unknown Source)
>                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>Aug 18, 2011 1:57:45 PM org.apache.catalina.startup.Catalina start
>INFO: Server startup in 573 ms
>
>
>This is my server.xml...  I cannot seem to get past this, I've tried multiple iterations everywhere from Verisign to Apache guides... Any help would be awesome!
>
>      <Connector port="80" protocol="HTTP/1.1"
>               connectionTimeout="20000"
>               redirectPort="443" />
>
>      <!-- SSL Connector on Port 443 -->
>
>      <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
>               maxThreads="150" scheme="https" secure="true"
>               keystoreFile="/cert/keystore.jks" keystorePass="xxxxx"
>               clientAuth="false" sslProtocol="TLS" />
>
>
>
>
>
>
>"One City Summer Fun ... Something for Everyone"
>Mayor Gray's comprehensive summer program with fun activities, events and services for residents of all ages
>For more information visit www.onecitysummer.dc.gov<http://www.onecitysummer.dc.gov>  or call 311
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 6 getting error when trying to specify keystore

Posted by RenuKumar <re...@dbxpert.com.my>.
Hi

Please state the full path in the server.xml file that should fix the 
problem.

Diep, David (OCTO-Contractor) wrote:

>Hello,
>
>I get the following in my logs during startup:
>
>Aug 18, 2011 1:57:45 PM org.apache.catalina.startup.Catalina start
>SEVERE: Catalina.start:
>LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\cert\keystore.jks (The system cannot find the path specified)
>                at org.apache.catalina.connector.Connector.start(Connector.java:1094)
>                at org.apache.catalina.core.StandardService.start(StandardService.java:534)
>                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>                at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>                at java.lang.reflect.Method.invoke(Unknown Source)
>                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>Aug 18, 2011 1:57:45 PM org.apache.catalina.startup.Catalina start
>INFO: Server startup in 573 ms
>
>
>This is my server.xml...  I cannot seem to get past this, I've tried multiple iterations everywhere from Verisign to Apache guides... Any help would be awesome!
>
>      <Connector port="80" protocol="HTTP/1.1"
>               connectionTimeout="20000"
>               redirectPort="443" />
>
>      <!-- SSL Connector on Port 443 -->
>
>      <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
>               maxThreads="150" scheme="https" secure="true"
>               keystoreFile="/cert/keystore.jks" keystorePass="xxxxx"
>               clientAuth="false" sslProtocol="TLS" />
>
>
>
>
>
>
>"One City Summer Fun ... Something for Everyone"
>Mayor Gray's comprehensive summer program with fun activities, events and services for residents of all ages
>For more information visit www.onecitysummer.dc.gov<http://www.onecitysummer.dc.gov>  or call 311
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat 6 getting error when trying to specify keystore

Posted by "Diep, David (OCTO-Contractor)" <Da...@dc.gov>.
Hi Charles,

Thank you for responding... I think I may have cut from the wrong part of the log file. I checked my server.xml file and I restarted Apache.  This is the result:

Aug 18, 2011 4:26:02 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\cert\keystore.jks (The system cannot find the path specified)
 at org.apache.catalina.connector.Connector.start(Connector.java:1094)
 at org.apache.catalina.core.StandardService.start(StandardService.java:534)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Aug 18, 2011 4:26:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1167 ms


And this is the connector definition in the server.xml:

    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />

    <!-- SSL Connector on Port 443 -->

    <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               keystoreFile="/cert/keystore.jks" keystorePass="changeit"
               clientAuth="false" sslProtocol="TLS" />

Sure it enough, what the log is reading is exactly where the keystore is.

Its almost as if it can't read it?  Or doesn't know how to read it?  I thought that .jks was a supported format?



"One City Summer Fun ... Something for Everyone"
Mayor Gray's comprehensive summer program with fun activities, events and services for residents of all ages
For more information visit www.onecitysummer.dc.gov  or call 311
________________________________________
From: Caldarale, Charles R [Chuck.Caldarale@unisys.com]
Sent: Thursday, August 18, 2011 3:00 PM
To: Tomcat Users List
Subject: RE: Tomcat 6 getting error when trying to specify keystore

> From: Diep, David (OCTO-Contractor) [mailto:David.Diep@dc.gov]
> Subject: RE: Tomcat 6 getting error when trying to specify keystore

> I get the following in my logs during startup:

> java.io.FileNotFoundException:
> C:\Program Files\Apache Software Foundation\Tomcat 6.0\cert\keystore.jks
> (The system cannot find the path specified)

> This is my server.xml...
> <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
>   maxThreads="150" scheme="https" secure="true"
>   keystoreFile="/cert/keystore.jks" keystorePass="xxxxx"
>   clientAuth="false" sslProtocol="TLS" />

There's an inconsistency here: your server.xml snippet shows an absolute path, but the error message indicates one without a leading slash was specified in the <Connector>.

1) Where is your keystore file actually located?

2) Are you sure the server.xml that you're modifying is the one Tomcat is using?  (If you're running Tomcat under an IDE, the IDE may well be ignoring your configuration and using one of its own.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat 6 getting error when trying to specify keystore

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Diep, David (OCTO-Contractor) [mailto:David.Diep@dc.gov] 
> Subject: RE: Tomcat 6 getting error when trying to specify keystore

> I get the following in my logs during startup:

> java.io.FileNotFoundException:
> C:\Program Files\Apache Software Foundation\Tomcat 6.0\cert\keystore.jks
> (The system cannot find the path specified)

> This is my server.xml... 
> <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
>   maxThreads="150" scheme="https" secure="true"
>   keystoreFile="/cert/keystore.jks" keystorePass="xxxxx"
>   clientAuth="false" sslProtocol="TLS" />

There's an inconsistency here: your server.xml snippet shows an absolute path, but the error message indicates one without a leading slash was specified in the <Connector>.

1) Where is your keystore file actually located?

2) Are you sure the server.xml that you're modifying is the one Tomcat is using?  (If you're running Tomcat under an IDE, the IDE may well be ignoring your configuration and using one of its own.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org