-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 John,
On 4/23/20 15:19, John Larsen wrote: > Ah doing ROOT.war is my pet peeve. I find this bad practice. Its > nice to have ROOT especially when the developer insists theres > something wrong with tomcat when really its their webapp. Having > ROOT intact, can show that by removing their webapp and tomcat > works. But you are replacing the application with context path "" (empty, not "/") with your own, anyway. It doesn't really matter HOW you do it. If you want to demonstrate that Tomcat works without the offending application, just remove ROOT.war and ... you are done. > As for "/" vs "" - not sure that would solve the problem - i mean > logically it doesnt make sense, but I will give it a try. I'm not sure if it will fix your problem (unlikely, as your problem was with deployment mechanics and not anything Tomcat was doing), but the proper context path for the ROOT web application is "" (empty), not "/". - -chris > On Thu, Apr 23, 2020 at 1:15 PM Mark Thomas <ma...@apache.org> > wrote: > >> On 23/04/2020 20:10, John Larsen wrote: >>> Ok so my next question is how to handle this better? The goal >>> here is so that one does not have to enter /webappName/ on the >>> end of the domain. We use the context to tell Tomcat which >>> webapp to load instead of ROOT. >> >> Name the file "ROOT.war" >> >> And if you need some sort of identifier on the file: >> "ROOT##alnomost-any-text-you-like.war" >> >> In the meantime, try specifying the path in server.xml as "" >> rather than "/". >> >> Mark >> >> >>> >>> John Larsen >>> >>> >>> On Thu, Apr 23, 2020 at 12:47 PM Christopher Schultz < >>> ch...@christopherschultz.net> wrote: >>> >>> John, >>> >>> On 4/23/20 14:38, John Larsen wrote: >>>>>> New tomcats 9.0.34 seems to fail when uploading new war >>>>>> when theres a context in server.xml pointing to the >>>>>> particular exploded war. Says 'The main resource set >>>>>> specified is not valid.' It's like hot deploy is deleting >>>>>> the old webapp and restarting tomcat? >>>>>> >>>>>> <Context path="/" debug="0" privileged="true" >>>>>> >>>>>> docBase="/home/some/path/tomcat/webapps/webappName"> >>>>>> >>>>>> </Context> >>>>>> >>>>>> To work around this one has to comment out the above >>>>>> context, start tomcat so the war will deploy, uncomment >>>>>> and then restart tomcat again. >>> >>> Is there a compelling reason to have <Context> in your >>> conf/server.xml file at all? It sounds like it's not doing >>> anything for you; indeed it it giving you a headache. >>> >>> -chris >>>> >>>> ------------------------------------------------------------------- - -- >>>> >>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>>> For additional commands, e-mail: >>>> users-h...@tomcat.apache.org >>>> >>>> >>> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6iSx8ACgkQHPApP6U8 pFgwcxAAj6Z71r+e81m1zAKvGp8Mdxe541xNAK3FiFtLaDa/y9kwiiSXj4/3rVZi rEGulP0jw3VKufN4yBnExYY6Z+Stt4XCEQPqvi+jR20Dt7lmQBYI6d+JkBDp6hUp KjC9LNi2YfIKXLfbogAK7nUkjXVNEdNqagtJBLhuBFO3Jj8kN2Pl/VU5FRgfPUZX Y63p+dvDfUjLG5XWPorcBa3jAkB1qhV5kCrhLSeSPuRAmz6P9KzorFU3dljE+4xb Fhw0kT7Cg20Vb+1TAsEqr3TkkDFNXK1uGTmEGAiKZXIoYB6UeCTA+/OOpcC05uow G/9KVji/KlItYlMmlxMaDPw5mEm9nReXAVmRZPxm7hi2ULr3l6K2/FPg1J++0/cl za2wvCyK1Hye1hvgnuPT3Ae9PsdqWnYlNiQkATks/5Y+xBLOM0ShScW9aCaMyLSl WpNazM9Mtgu3JF74WQEIzRQAXo9IWr1klpRv9pR+lLSAwOHk0r4YvOvQg2F5/XL4 NdLo3ojpMm2eyUoc5n1/yWGYQTDyi4YNAcUaIf1ObFnfSIrrFVvKxtZA2uSllZ4r 5WoPbF1zhM+eYzDSIoLeJRQpuifiZt+Trsq1AWiL8oaoNTvMCAOg7DnD/cQ+P5tK s1wP64dr7N6H04aElWzwkT3OFOod4ZaoQ0Pm0j1+UR4pj781pvo= =qdgA -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org