tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat autodeploy doesn't return actual files via HTTP
Date Thu, 05 Jun 2014 15:20:31 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Arseny,

On 6/5/14, 2:25 AM, Arseny wrote:
> 05.06.2014 3:28, Christopher Schultz пишет: 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
>> 
>> ---------------------------------------------------------------------
>>
>> 
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).

The file should be called ROOT.xml and should not have a "path"
attribute *at all*. Please read the configuration guide:
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTkIq/AAoJEBzwKT+lPKRYUpIP/jPDbwE3/LaoEzxTDak9DABz
IEqmqokOxvHzA7PR2Ab5/vDjW9rOKlDmsJTlsK2BWdNJO5Df5/Mfy6frwS3RhxTj
kzXAz9d8CHcShkDtju1NeBhxaS2McSr41He4PmkGl6WAYC8L4K1+bl9AjGlyIqJs
NtMVZqbvOWxHCtxoBDKz5KgO8etOjoOfCtlAedZVpegh4u2msV5OKcp681gOcw03
hR14+YQhi2h4rKH1PB4LMdfqIKpAUNhD1emkxBdnXR+Ev9HuFJ9bnrfgxBVfn4xw
c7jaKgZkWsU/in58Kqa65qAr0z0IA1mebfyYBtYBXybgee25z2aj2jYzCvegyMVc
txpNJsASXJoTKiSpD8sgTgn4WC4C3kRAhILi0QBaBNlNOaI6IoFQpcu7SuQe6HmL
cYRVzcBRPbc0ay8Qr38B3tJgsl+Ps+neje6t1VhXeC6lWVfyk/1mus5pkRcBm+cB
k9bzwjONnqntsgf1YNwEmNbjfVpNoWEMQBNemloOKRHT7q4NmN48Zqj6H/dtD6ZS
xL8lV6NSbESndCOamUpbM0EcMZd7XlAlRr4eTG+GZxvtslfMh4FhudmBMqaQqPe1
WVKDJG81eDGjXphtDEVTUS5MsOOe0F2goWsuQFcLYxr2t+7czA0wT3HXDh4QxtOn
7S9mB+GJuxnuk8lS8JdS
=5F7X
-----END PGP SIGNATURE-----

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


Mime
View raw message