-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 M,
On 12/4/19 12:44, M. Manna wrote: >> On Wed, 4 Dec 2019 at 17:38, Christopher Schultz < >> ch...@christopherschultz.net> wrote: >> > All, > > I should note that I'm using Oracle Java 1.8.0 build 161. > > I have seen another environment with essentially the same > configuration that seems to work. The path is > "E:\path\to\keystore.jks" and there are no errors. > > Thanks, -chris > > On 12/4/19 12:27, Christopher Schultz wrote: >>>>> All, >>>>> >>>>> I feel like I should be able to figure this out on my own, >>>>> but I'm drawing a blank. >>>>> >>>>> I'm trying to upgrade from Apache Tomcat 8.0.35 to Apache >>>>> Tomcat 8.5.35 and I'm getting errors on a certain portion >>>>> of the conf/server.xml configuration. >>>>> >>>>> I copy have a perfect copy/paste of the config file here >>>>> but basically this is configuring a keystore for TLS. >>>>> Something like this: >>>>> >>>>> <Connector [...] keystoreFile="E:\path\to\keystore.jks" >>>>> [...] /> >>>>> >>>>> The error is "unknown protocol: e". Clearly, >>>>> Tomcat/Java/URL/whatever thinks that "E:" is a protocol. >>>>> No problem... this has to be a file URL, so let's make it a >>>>> file URL: >>>>> >>>>> <Connector [...] >>>>> keystoreFile="file:///E:/path/to/keystore.jks" [...] /> >>>>> >>>>> Same error. >>>>> >>>>> What if I remove the drive letter? >>>>> >>>>> <Connector [...] >>>>> keystoreFile="file:///path/to/keystore.jks" [...] /> >>>>> >>>>> Same error (including the "e"!). >>>>> >>>>> Okay, maybe e:/ looks like a protocol. How about using >>>>> backslashes? >>>>> >>>>> <Connector [...] >>>>> keystoreFile="file:///E:\path\to\keystore.jks" [...] /> >>>>> >>>>> "Illegal character in path" :( >>>>> >>>>> What's the right way to write a Windows path containing a >>>>> drive letter? >>>>> >>> >>> Have you tried E:/path/to/cert.jks ? Yes. It was the second example. Or did you mean without the "file:///" prefix? > Also, with Windows \\ escape often has the tricks. XML doesn't recognize \ as an escape character. - -chris -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3n9XYACgkQHPApP6U8 pFhN1hAAjcmiWr9RAHnC7yEIdUM0HIuAanhWS4IMmASmO4QWnenOH4uHQaY7vgDM 15+SrsjY0J3MoJ4lJBqHI0TyLyxMR982OdfF0TAdLDISF9D9uYFb0IyvKU1RWSGi 5q1dbPg9T/9rwKSyo4oMgBazcU1fXk1yIAP/Y+CXZggGwC8FMq6a0ga7hX3L4ciN vdvQW09BUfisMeKymM4uSK0OdXaqzrjnqgYHabDQhjDnZYvK42+Snm6/wKKvk4dP 1yS2eLsHylFI+OJnainYlSw6X5Dg75OzMoiQx7ikvoN429fNeiFKohGQufTQUmLQ 8tUYHxKwx9L3yJnkHxPHxW3Kmv1jsxK9jufrlV6gMpRy4teC1Ek8EWoYL82gZAg4 25KIp5ZsCN5k+4cY5joAZYRrbYg6CDEg/KycVrv9lpRBX9dLKvWwRfvDnZK9RoKO sS0DE/p93CY6DzX/8JyovM1kPmYTXkrOKCm0jI4V4KKv6QZ3+t6Vm4G57ksqlkW2 ah8SmRgIyGPSHTX/jg8NQODZ3d4VaCW3sjp/qKCSJh3uezegVzLW6jS+LrUFF3YY wv6I/oJC38+doJwk1aWRk9L2nC/40ikP7bS/82uHo6TEyVKAcdYKcl0DH/NCnaVt 2lfzfHr9bxaGaMwuWvAS9pS8vCzPNESSwbr5L9MR7jHWif8MhyM= =3+Hf -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org