tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arseny <setev...@gmail.com>
Subject Re: Tomcat autodeploy doesn't return actual files via HTTP
Date Thu, 05 Jun 2014 06:25:40 GMT
05.06.2014 3:28, Christopher Schultz пишет:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Am I missed something? Tomcat keep it in some cache?
> This is why nobody should define <Context> elements in server.xml:
> they always mess them up.
>
> In addition to what Konstantin has said, note that Tomcat is
> restarting the context with path [/APP] and not [/]. You have
> double-deployed APP.war: once as /APP and once (maybe?) as ROOT.
>
> If you can't stomach calling your WAR file "ROOT.war" like everybody
> else, then use descriptor-file-based deployment with a
> CATALINA_BASE/conf/[engine]/localhost/ROOT.xml descriptor.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJTj7mvAAoJEBzwKT+lPKRYciAP/RxLZmt9NGIrR6+YcGS5j83p
> fH0rz/5VwCK8xU5i0y+UhHWf1BhaJ1JK0Fi7bcw4hvTi/h11wI7aEMCeQztyp9R9
> 5oDvfCTARBplNbkUS0J9eqAJvGIRxJJaI3OQfQlhOFvrQI5n5xjBHGh3FF7oX70c
> 5fKCgCR2YHgtzg0P9zFygP27XDi1ynhna3OG4VHLJ0LmRu/r2N+Kl+JRsgkr7NUX
> QYUxOlzN1sq5ROJYwZcv/7pJ8Aq1fvoRYrwj+Hdvp97h3yCql6b9EPEVVnM/mMg2
> Rh5U5kbKytYXdndoy8BKDWHAaqbQ45Rs/OTsG5Qcqr3pVlaNOU1nkFioDPys809g
> HHa4zwWHCS5hITiQ7sgcYUxaMi6rPKw8U8DkdsJ0dFYPO2/O34qj/AJ4ryEo6RnJ
> Nz9rw6ZjrQPEXFxWFI5W5djIaXy+Q5m6uFIziL8NdB4XLkpe11rbiQ45lSJYeWHR
> crioW7VF8snLcUoja8nJtgNRbtLcZPBOAvS4ApLYAZS9rBlO09PPamvbfPJEjWV+
> oZftgY//oQ6m3n/3r3CLyri/7pZ6CTclgJpQUw8vGHYMxf00YPSLAJXgRUpKTcXE
> DbdMdwJpsUvwPbNBUnIP4xQtnzFIk2tvxxE6uyC/NJbqOEs2dVwQMF0IVU2Uxi+t
> ukEh/DscpVPgumtKnifk
> =Hedg
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

Hi.

Yes - problem was exactly in placing <Context> element in config.
After removing it - all works.

 >  CATALINA_BASE/conf/[engine]/localhost/ROOT.xml
// do you mean - I can set docBase="APP.war" in it, and path="" - and 
Tomcat will use it? Because I really don't like idea every time rename 
WAR-file in ROOT with external bash/python script, as I do it now 
(basically - because this must be autoDploy and war-file will have 
another name generated by Maven).

Thanks, guys.


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


Mime
View raw message