You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jo...@centrum.cz on 2011/05/06 10:08:46 UTC

Why deleting of context.xml is NOT optional ? (after deploying the app)

Hi there,
all we know that once the application is autodeployed, Tomcat automatically deletes the
context xml files related with this webapp.

it was written a lot of about this issue already and actually Tomcat developers say that
it's by design, so it is NOT a bug.  I would strongly disagree here, but my question is
WHY this behavior is not customizable ?  I think A LOT of people would appreciate it !!!
There could be just 1 simple attribute on <host> or <Context> saying if the context
files should be removed or not.

Here is the bug, which explains everything. 

Thanks,

Joe

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


Re: Why deleting of context.xml is NOT optional ? (after deploying the app)

Posted by jo...@centrum.cz.
Chris,
thank you for your answer.

Best regards,

Joe


______________________________________________________________
> Od: "Christopher Schultz" <ch...@christopherschultz.net>
> Komu: Tomcat Users List <us...@tomcat.apache.org>
> Datum: 06.05.2011 16:05
> Předmět: Re: Why deleting of context.xml is NOT optional ? (after deploying the app)
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Joe,
>
>On 5/6/2011 8:29 AM, joe.k@centrum.cz wrote:
>> hmm, "definitely" you are right that the files are deleted on "undeploy" not "deploy"
>> but don't you think it doesn't matter from the user's point of view ?
>
>Precision counts when describing bugs. Please be precise.
>
>Tomcat deletes an auto-deployed context.xml file when a WAR file is
>updated. It's quite clear in the documentation:
>
>http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment
>
>See the fifth bullet point in the second section:
>
>"
>* Updating a WAR file will trigger an undeploy of the application with
>the removal of any associated expanded directory, context file and work
>directory. Any current user sessions will not be persisted.
>"
>
>If you don't want this to happen, don't update your WAR file. Instead,
>consider using the manager to STOP and START your webapp instead of
>triggering an automatic UNDEPLOY.
>
>> So you say that's definitely fixed for Tomcat 7, but still not fixed in Tomcat 6,
>> thank you for this hint, this will be the reason for me to migrate to 7.
>
>The behavior you are describing is by design, and thus cannot be changed
>within a particular version (6.0.x in this case) of Tomcat. Switching to
>another magor version gives the designers the freedom to make such
>breaking changes to the behavior of Tomcat.
>
>- -chris
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.10 (MingW32)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
>iEYEARECAAYFAk3EAAAACgkQ9CaO5/Lv0PAaHgCfSJgxCd1GshlVE0pkiXXrCJOG
>9H4AoKx5WhQvSP6eFB3J2VhJT04MSTxS
>=qaQr
>-----END PGP SIGNATURE-----
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Re: Why deleting of context.xml is NOT optional ? (after deploying the app)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joe,

On 5/6/2011 8:29 AM, joe.k@centrum.cz wrote:
> hmm, "definitely" you are right that the files are deleted on "undeploy" not "deploy"
> but don't you think it doesn't matter from the user's point of view ?

Precision counts when describing bugs. Please be precise.

Tomcat deletes an auto-deployed context.xml file when a WAR file is
updated. It's quite clear in the documentation:

http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment

See the fifth bullet point in the second section:

"
* Updating a WAR file will trigger an undeploy of the application with
the removal of any associated expanded directory, context file and work
directory. Any current user sessions will not be persisted.
"

If you don't want this to happen, don't update your WAR file. Instead,
consider using the manager to STOP and START your webapp instead of
triggering an automatic UNDEPLOY.

> So you say that's definitely fixed for Tomcat 7, but still not fixed in Tomcat 6,
> thank you for this hint, this will be the reason for me to migrate to 7.

The behavior you are describing is by design, and thus cannot be changed
within a particular version (6.0.x in this case) of Tomcat. Switching to
another magor version gives the designers the freedom to make such
breaking changes to the behavior of Tomcat.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3EAAAACgkQ9CaO5/Lv0PAaHgCfSJgxCd1GshlVE0pkiXXrCJOG
9H4AoKx5WhQvSP6eFB3J2VhJT04MSTxS
=qaQr
-----END PGP SIGNATURE-----

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


Re: Why deleting of context.xml is NOT optional ? (after deploying the app)

Posted by jo...@centrum.cz.
Hi Mark,
hmm, "definitely" you are right that the files are deleted on "undeploy" not "deploy"
but don't you think it doesn't matter from the user's point of view ?
We are talking about autodeploying the webapp !

So you say that's definitely fixed for Tomcat 7, but still not fixed in Tomcat 6,
thank you for this hint, this will be the reason for me to migrate to 7.

Opps I forgot to put the link with the bug in previous post, I am sorry, here it is:

https://issues.apache.org/bugzilla/show_bug.cgi?id=34840

Thanks.

Joe





>
>On 06/05/2011 09:08, joe.k@centrum.cz wrote:
>> 
>> Hi there,
>> all we know that once the application is autodeployed, Tomcat automatically deletes the
>> context xml files related with this webapp.
>
>Huh? We don't all know that. You are going to have to explain yourself
>more clearly. No files are deleted on deployment.
>
>> it was written a lot of about this issue already and actually Tomcat developers say that
>> it's by design, so it is NOT a bug.  I would strongly disagree here, but my question is
>> WHY this behavior is not customizable ?
>
>There is no need to shout. It isn't helping your cause. You still
>haven't explained what behaviour you are complaining about.
>
>> I think A LOT of people would appreciate it !!!
>
><off-topic>
>What is it with email that makes people abuse exclamation marks so
>frequently? Maybe Terry Pratchett is right.
></off-topic>
>
>> There could be just 1 simple attribute on <host> or <Context> saying if the context
>> files should be removed or not.
>
>Are you referring to what happens on undeployment? If so, take a look at
>Tomcat 7.
>
>> Here is the bug, which explains everything.
>
>There is no bug and no explanation here.
>
>Mark
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Re: Why deleting of context.xml is NOT optional ? (after deploying the app)

Posted by Mark Thomas <ma...@apache.org>.
On 06/05/2011 09:08, joe.k@centrum.cz wrote:
> 
> Hi there,
> all we know that once the application is autodeployed, Tomcat automatically deletes the
> context xml files related with this webapp.

Huh? We don't all know that. You are going to have to explain yourself
more clearly. No files are deleted on deployment.

> it was written a lot of about this issue already and actually Tomcat developers say that
> it's by design, so it is NOT a bug.  I would strongly disagree here, but my question is
> WHY this behavior is not customizable ?

There is no need to shout. It isn't helping your cause. You still
haven't explained what behaviour you are complaining about.

> I think A LOT of people would appreciate it !!!

<off-topic>
What is it with email that makes people abuse exclamation marks so
frequently? Maybe Terry Pratchett is right.
</off-topic>

> There could be just 1 simple attribute on <host> or <Context> saying if the context
> files should be removed or not.

Are you referring to what happens on undeployment? If so, take a look at
Tomcat 7.

> Here is the bug, which explains everything.

There is no bug and no explanation here.

Mark



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