Re: Unknown protocol: e on Windows
ср, 4 дек. 2019 г. в 22:38, Christopher Schultz : > Konstantin, > > On 12/4/19 13:33, Konstantin Kolinko wrote: > > ср, 4 дек. 2019 г. в 20:28, Christopher Schultz > > : > >> > >> 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: > >> > >> > >> > >> 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: [...] > > > > Chris, > > > > 1) Do know where that message is produced? (Stacktrace? What > > version of Tomcat?) > > > > E.g. it may be that the code has several attempts to use the value > > a) as file path, b) as URL, and you only see the message from the > > second attempt b), but it is a) that fails. > > I can get all that. I don't have access ATM. This was definitely being > called through createSSLContext() and getStore() while loading the > keystore. I'll write back when I have that exact info. > > > Is your keystoreFile path correct? > > Yes, if you ignore the fact that I cannot figure out how to "spell" it > properly :) > > This works without error on the same Java version but using Tomcat 8.0.35. Looking at the code, Tomcat 8.5 was refactored to use ConfigFileLoader there. The message produced by ConfigFileLoader is rather misleading. It is actually a "new File(location).isFile()" call that returns "false". Looking at the sources of 8.5.x, the call path is probably the following: o.a.t.util.net.SSLHostConfigCertificate#getCertificateKeystore(): result = SSLUtilBase.getStore(getCertificateKeystoreType(), getCertificateKeystoreProvider(), getCertificateKeystoreFile(), getCertificateKeystorePassword()); o.a.t.util.net.SSLUtilBase#getStore(...) L197 istream = ConfigFileLoader.getInputStream(path); org.apache.tomcat.util.file.ConfigFileLoader https://github.com/apache/tomcat/blob/8.5.x/java/org/apache/tomcat/util/file/ConfigFileLoader.java#L79 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unknown protocol: e on Windows
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 M, On 12/4/19 13:37, M. Manna wrote: > Chris, > > On Wed, 4 Dec 2019 at 18:34, Konstantin Kolinko > wrote: > >> ср, 4 дек. 2019 г. в 20:28, Christopher Schultz < >> ch...@christopherschultz.net>: >>> >>> 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: >>> >>> >> /> >>> >>> 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: [...] >> >> Chris, >> >> 1) Do know where that message is produced? (Stacktrace? What >> version of Tomcat?) >> >> E.g. it may be that the code has several attempts to use the >> value a) as file path, b) as URL, and you only see the message >> from the second attempt b), but it is a) that fails. >> >> Is your keystoreFile path correct? >> >> 2) Why the settings are specified on a . They will be >> translated into / on the fly, but >> maybe something is broken. >> >> >> http://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_ - -_Certificate >> >> It says that certificateKeystoreFile can be an URI. >> >> 3) Does you connector use JSSE or OpenSSL? >> >> There is some code that translates between the two configuration >> flavors on the fly, but maybe something is broken. >> >>> I'm using Oracle Java 1.8.0 build 161. >> >> FYI, an up-to-date version of Java 8 for Windows is available >> from AdoptOpenJDK. https://adoptopenjdk.net/ >> >> It is 8u232 now. >> >> Best regards, Konstantin Kolinko >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > I have just launched tomcat 8.5.47 stockpile with the following > connector config (i generated keystore Jeeks before) > > port="8443" maxThreads="200" scheme="https" secure="true" > SSLEnabled="true" keystoreFile="C:/Temp/tomcat.jks" > keystorePass="changeit" clientAuth="false" sslProtocol="TLS"/> > > And my tomcat cert gen command was: > >> keytool -genkeypair -alias tomcat -keyalg RSA -keystore >> tomcat.jks > -keypass changeit -storepass changeit > > It only gave me warning about non-legit cert when I hit > https://localhost:8443 but that's expected. Otherwise, no errors. > > I suspect your E:\ drive is a network drive (or virtual) so the > mapping may be causing issues ? Or may be it's the > partitioning...? This is a local device, not a networked one. Everything is virtualized, but this is a "local drive" on the Windows virtual machine. Again, Tomcat 8.0 seems to work and Tomcat 8.5 doesn't like it for some reason. I'm assuming this is all related to the change in how resources are loaded in Tomcat 8.5. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3oC7cACgkQHPApP6U8 pFilLxAApcWFCpa2qKLDBqYZ4L1ogGHoxkQ9UboJjN6jYmIKinSD+6fuOn2sL+dU T02+UZF1wgEPoEZvzA365IlUgZwUnKfqox7FWpqVUREcZnjjE/rpiIN52ioq8tHa eqbE71neKm+WfrZ0ChWCGkjP7hsomeqIMayV6wzY4Fc9qQoOaIc/nja4wmhEHAe+ SsUdHoi4CKUyWHAWmw4kvUPo8E74BJEgbr0CWJs7nIdyIYi+EkK929lk6Jz3KB+8 vfFu+wIWJXl6gfQBW5wENSFYe5IIX/8iBtFjC27WqbIPpc4qVyr+z6IFB5PCZ9X6 rib2kQOXSpAZvQVjgH/E3KpGARxlrgn3MSkf00KCWKamUO4XG5F4lPszfOEAjl5W YT9xbp2Qh7ioA0UGdjGgHaLYu7/JhMkRLsmzeXFR2IPS7Z05svKq8Zgam+NygXGC kcEBHMeMmeu4V0AiVNwhzeG54YFUzPBq7LSabmJt3E5WbLhGYPfo8nMV9vFpOCEp PTxDDzUZwWJX95LkfnjWdOsQhUmeCXYckKrdkgjmr3HaN4G7H0XgC4izWyy6CvWb kui0dkj6mw1kRCdg7BM9VWlN8L2MfmCo+c7u1oKtuaR1LbKgDtZYmgkUw2NBfVRP fEfJtmWL+TAkXX9pAXlqdPkSt0jZBF2S5zUrqWsrkGvcgrEbHSc= =CLq+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unknown protocol: e on Windows
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 12/4/19 13:33, Konstantin Kolinko wrote: > ср, 4 дек. 2019 г. в 20:28, Christopher Schultz > : >> >> 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: >> >> >> >> 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: [...] > > Chris, > > 1) Do know where that message is produced? (Stacktrace? What > version of Tomcat?) > > E.g. it may be that the code has several attempts to use the value > a) as file path, b) as URL, and you only see the message from the > second attempt b), but it is a) that fails. I can get all that. I don't have access ATM. This was definitely being called through createSSLContext() and getStore() while loading the keystore. I'll write back when I have that exact info. > Is your keystoreFile path correct? Yes, if you ignore the fact that I cannot figure out how to "spell" it properly :) This works without error on the same Java version but using Tomcat 8.0.3 5. > 2) Why the settings are specified on a . They will be > translated into / on the fly, but > maybe something is broken. > > http://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_- _Certificate > > It says that certificateKeystoreFile can be an URI. We wanted to try Tomcat 8.5 with a (nominally) 8.0-compatible configuration. This was a first-effort test and I was thrown by the "unknown protocol" error. > 3) Does you connector use JSSE or OpenSSL? JSSE > There is some code that translates between the two configuration > flavors on the fly, but maybe something is broken. > >> I'm using Oracle Java 1.8.0 build 161. > > FYI, an up-to-date version of Java 8 for Windows is available from > AdoptOpenJDK. https://adoptopenjdk.net/ > > It is 8u232 now. Understood. I've been told that upgrading Java is a possibility but I wanted to see if I could fix this via configuration, first. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3oCy4ACgkQHPApP6U8 pFipwg//dtvDR5Q/ZqoAKoIqJdXKBGnmbqz1rQaq9iiHe3/5PVHE6zseiN+ja4BK 1tUWY1HNgYmTU4kbhtaEHAL8dbbguHGN/g14LIf/hGqXD6A5Srl/ab+/F6rmdY8v RIgKy3pVx0fputw64cRISg3IzcsV4+eHTdQ2a7B1o6lvwU6fQCrji7Gjf+ZI3Aio c7laygyfm7WYtBOBkFnb9sjxGH7GydWacXUNnzqcPzi5WfZY2J+N29KHCSfX2OKW 2A2t+I6jBmhLIoMJc9BO5oMC9TzGKwJRwR+gccwxwPUY7z5s0wkHDB56rVWPzkQp iB1JMH32rMjRYpaPOQYz+LqUenu7gJM9i4rTXPL/uKVoR3CUg5dgD+uOnTLE2AxE dezASvq3WncW9Lpxnxu8pMp5y/CDrueIHEqoQJy0MG8P01f2clYtIZKvuh+GNQeB CfpYEe4TaXgdCU1Hlrl54S8L2jbRU7hDtvMJrsYcxsJdA7iIMjMSbkMmlGkQX0pL 9aM8vAQ/3epOeDV1eoqKywiD/AifrmsVa7XkuoGBEeiMEF+bM7I0Yoehrj8tnN+p uD8ji85gR0YQZysqRQpK6IpsWz9kB8Lh3m+fl7Xe9Ha2tNMXjhIAi3VcZp5Lmh4a Q5K/nQDEGL9hlfqN5vxTxQ1Wfn65MwzxUAAiPbDBjRP1cij0biE= =LJMq -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unknown protocol: e on Windows
Chris, On Wed, 4 Dec 2019 at 18:34, Konstantin Kolinko wrote: > ср, 4 дек. 2019 г. в 20:28, Christopher Schultz < > ch...@christopherschultz.net>: > > > > 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: > > > > > 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: [...] > > Chris, > > 1) Do know where that message is produced? (Stacktrace? What version of > Tomcat?) > > E.g. it may be that the code has several attempts to use the value a) > as file path, b) as URL, and you only see the message from the second > attempt b), but it is a) that fails. > > Is your keystoreFile path correct? > > 2) Why the settings are specified on a . They will be > translated into / on the fly, but maybe > something is broken. > > > http://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_Certificate > It says that certificateKeystoreFile can be an URI. > > 3) Does you connector use JSSE or OpenSSL? > > There is some code that translates between the two configuration > flavors on the fly, but maybe something is broken. > > > I'm using Oracle Java 1.8.0 build 161. > > FYI, an up-to-date version of Java 8 for Windows is available from > AdoptOpenJDK. > https://adoptopenjdk.net/ > > It is 8u232 now. > > Best regards, > Konstantin Kolinko > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > I have just launched tomcat 8.5.47 stockpile with the following connector config (i generated keystore Jeeks before) And my tomcat cert gen command was: >keytool -genkeypair -alias tomcat -keyalg RSA -keystore tomcat.jks -keypass changeit -storepass changeit It only gave me warning about non-legit cert when I hit https://localhost:8443 but that's expected. Otherwise, no errors. I suspect your E:\ drive is a network drive (or virtual) so the mapping may be causing issues ? Or may be it's the partitioning...?
Re: Unknown protocol: e on Windows
ср, 4 дек. 2019 г. в 20:28, Christopher Schultz : > > 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: > > 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: [...] Chris, 1) Do know where that message is produced? (Stacktrace? What version of Tomcat?) E.g. it may be that the code has several attempts to use the value a) as file path, b) as URL, and you only see the message from the second attempt b), but it is a) that fails. Is your keystoreFile path correct? 2) Why the settings are specified on a . They will be translated into / on the fly, but maybe something is broken. http://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_Certificate It says that certificateKeystoreFile can be an URI. 3) Does you connector use JSSE or OpenSSL? There is some code that translates between the two configuration flavors on the fly, but maybe something is broken. > I'm using Oracle Java 1.8.0 build 161. FYI, an up-to-date version of Java 8 for Windows is available from AdoptOpenJDK. https://adoptopenjdk.net/ It is 8u232 now. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unknown protocol: e on Windows
-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: > > [...] /> > > 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: > > keystoreFile="file:///E:/path/to/keystore.jks" [...] /> > > Same error. > > What if I remove the drive letter? > > keystoreFile="file:///path/to/keystore.jks" [...] /> > > Same error (including the "e"!). > > Okay, maybe e:/ looks like a protocol. How about using > backslashes? > > 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
Re: Unknown protocol: e on Windows
Also, with Windows \\ escape often has the tricks. On Wed, 4 Dec 2019 at 17:43, M. Manna wrote: > Chris, > > On Wed, 4 Dec 2019 at 17:38, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> 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: >> > >> > >> > >> > 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: >> > >> > > > [...] /> >> > >> > Same error. >> > >> > What if I remove the drive letter? >> > >> > > > /> >> > >> > Same error (including the "e"!). >> > >> > Okay, maybe e:/ looks like a protocol. How about using >> > backslashes? >> > >> > > > [...] /> >> > >> > "Illegal character in path" :( >> > >> > What's the right way to write a Windows path containing a drive >> > letter? >> > >> > -chris >> > >> -BEGIN PGP SIGNATURE- >> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ >> >> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3n7xcACgkQHPApP6U8 >> pFiz3Q/+L85HlQ1s6O+Wz0kmrp3FhsuTQNizoAnEQL7lvXd+AGi2sAIagRyTfme1 >> 9MsWYBLYk0pTnOS+1mAnSt6FNNRKjdoJ0ud/rCXblqIwWX3j3nS1jifx92mQDQWt >> bHISBL9wORBxaS+ENE1kicSBsVAJvEBA8gAY9p5kYncL9K1tK54XoklujTIHxrfU >> g0NdprFv1LYZxxQyWmoP5zHSfvBsR2pjLpLSn3G2q32+gALgfu5hAWuJIUq5z4XZ >> 65sfVEtfV9lntohTNqWqu5tdrg0TyblXMruNMB9ygW2DAbHO93Sjkpj2t/AieQwv >> GtvJd1XC7shERazFtplE6o5UZaOrg+N/B2BALvqVoVMR+tAGNrbQqZZjDz+zPzGA >> cL3xNcKN5OqPMFbnge8Ar1v87ywcmvO3arj1lvE6kt97VNeSAOFj7+9i2VWEqu0K >> HDrLv4Ca2ESu3k/MO/eerC5os2dEoVXQEejyBrMtHPDaD40VxJIrYbRmbS/dqk5F >> fjSmcWIopl3+z8/6lex2JGNc26liyvseIrnUtCP8CUklDMilS2XOGVvypDmZNEH1 >> rce8IBV3LrRqO/VJ18/VWsc6u6qp9QB6bD8Qvo/dpvX3uIeb4QDDz/9W1UDibG37 >> 0ZBqHkjty8C5wHxf5ep06lSdLbiH2NdY1LXKkz5Ru9cXElifVaE= >> =gJWI >> -END PGP SIGNATURE- >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> Have you tried E:/path/to/cert.jks ? >
Re: Unknown protocol: e on Windows
Chris, On Wed, 4 Dec 2019 at 17:38, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > 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: > > > > > > > > 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: > > > > > [...] /> > > > > Same error. > > > > What if I remove the drive letter? > > > > > /> > > > > Same error (including the "e"!). > > > > Okay, maybe e:/ looks like a protocol. How about using > > backslashes? > > > > > [...] /> > > > > "Illegal character in path" :( > > > > What's the right way to write a Windows path containing a drive > > letter? > > > > -chris > > > -BEGIN PGP SIGNATURE- > Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3n7xcACgkQHPApP6U8 > pFiz3Q/+L85HlQ1s6O+Wz0kmrp3FhsuTQNizoAnEQL7lvXd+AGi2sAIagRyTfme1 > 9MsWYBLYk0pTnOS+1mAnSt6FNNRKjdoJ0ud/rCXblqIwWX3j3nS1jifx92mQDQWt > bHISBL9wORBxaS+ENE1kicSBsVAJvEBA8gAY9p5kYncL9K1tK54XoklujTIHxrfU > g0NdprFv1LYZxxQyWmoP5zHSfvBsR2pjLpLSn3G2q32+gALgfu5hAWuJIUq5z4XZ > 65sfVEtfV9lntohTNqWqu5tdrg0TyblXMruNMB9ygW2DAbHO93Sjkpj2t/AieQwv > GtvJd1XC7shERazFtplE6o5UZaOrg+N/B2BALvqVoVMR+tAGNrbQqZZjDz+zPzGA > cL3xNcKN5OqPMFbnge8Ar1v87ywcmvO3arj1lvE6kt97VNeSAOFj7+9i2VWEqu0K > HDrLv4Ca2ESu3k/MO/eerC5os2dEoVXQEejyBrMtHPDaD40VxJIrYbRmbS/dqk5F > fjSmcWIopl3+z8/6lex2JGNc26liyvseIrnUtCP8CUklDMilS2XOGVvypDmZNEH1 > rce8IBV3LrRqO/VJ18/VWsc6u6qp9QB6bD8Qvo/dpvX3uIeb4QDDz/9W1UDibG37 > 0ZBqHkjty8C5wHxf5ep06lSdLbiH2NdY1LXKkz5Ru9cXElifVaE= > =gJWI > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > Have you tried E:/path/to/cert.jks ?
Re: Unknown protocol: e on Windows
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 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: > > > > 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: > > [...] /> > > Same error. > > What if I remove the drive letter? > > /> > > Same error (including the "e"!). > > Okay, maybe e:/ looks like a protocol. How about using > backslashes? > > [...] /> > > "Illegal character in path" :( > > What's the right way to write a Windows path containing a drive > letter? > > -chris > -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3n7xcACgkQHPApP6U8 pFiz3Q/+L85HlQ1s6O+Wz0kmrp3FhsuTQNizoAnEQL7lvXd+AGi2sAIagRyTfme1 9MsWYBLYk0pTnOS+1mAnSt6FNNRKjdoJ0ud/rCXblqIwWX3j3nS1jifx92mQDQWt bHISBL9wORBxaS+ENE1kicSBsVAJvEBA8gAY9p5kYncL9K1tK54XoklujTIHxrfU g0NdprFv1LYZxxQyWmoP5zHSfvBsR2pjLpLSn3G2q32+gALgfu5hAWuJIUq5z4XZ 65sfVEtfV9lntohTNqWqu5tdrg0TyblXMruNMB9ygW2DAbHO93Sjkpj2t/AieQwv GtvJd1XC7shERazFtplE6o5UZaOrg+N/B2BALvqVoVMR+tAGNrbQqZZjDz+zPzGA cL3xNcKN5OqPMFbnge8Ar1v87ywcmvO3arj1lvE6kt97VNeSAOFj7+9i2VWEqu0K HDrLv4Ca2ESu3k/MO/eerC5os2dEoVXQEejyBrMtHPDaD40VxJIrYbRmbS/dqk5F fjSmcWIopl3+z8/6lex2JGNc26liyvseIrnUtCP8CUklDMilS2XOGVvypDmZNEH1 rce8IBV3LrRqO/VJ18/VWsc6u6qp9QB6bD8Qvo/dpvX3uIeb4QDDz/9W1UDibG37 0ZBqHkjty8C5wHxf5ep06lSdLbiH2NdY1LXKkz5Ru9cXElifVaE= =gJWI -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Unknown protocol: e on Windows
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 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: 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: Same error. What if I remove the drive letter? Same error (including the "e"!). Okay, maybe e:/ looks like a protocol. How about using backslashes? "Illegal character in path" :( What's the right way to write a Windows path containing a drive letter? - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3n7JAACgkQHPApP6U8 pFiNUA/9HaMb2A+54U47pktVtmtLWtxjV9psMDyDF8LruWTQQMRVUng/OMq8WXqq VO8APlOnKPoVyQvrdYOK31osv468ZlxqsXGfM7Hswa9fep7/fnRIr9hsGwRKWQJF EXFIiWSAUC3nbc/PUa5CnLzgVo7fOV7Z4yRVSscKzi1mv39mh8cqnK8pxCmY8tgb zhZY522e7CHWC+papuss0lkhJHBIcfEKVR6sB33r+0SvpRWhr2yh2p4uBG+V8Bm0 jHiy2i8utfIREwAIA1ddd+PT5WnAyENmF88yxeBgpmi31GDcmzHqaiL4ObfR+0r6 kLPNPpJAsr84EWsKPdZvdkHzg2wY6r1/FV5OInQ71FZXarLeFEaZVH2qzsrYojBq BA0Fy7O4ku+kC/ZJoAyS3rknJt+MpjfIel7CMIN3KU8H+iZshNhaKdWW4LgSLKeT QL8ujECtzJ4t4hjk+ZfPTd/heX57QWqu9NBZQUNcVRzZJp9Us62n+4w108gZL2Cj cruKCYshxowpNjHwgitFlB9DnD92pYa2QJbU5u9NuIDLJ8+qsav+8f9ZSQO7TegR fUS/VC7utNWrQANysOWtcTzBZBQzMLiuRrC+ReH9gLi5Lb62NYp6dWVakDVF9QLS mvGO6IejHFBrN2VWv7fKvvEcDVPCznFvZ7YBrkfZqn9C54yjh1k= =qW8x -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org