You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/04/26 02:35:43 UTC

DO NOT REPLY [Bug 44879] New: Deploying WAR overwrites context fragment

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

           Summary: Deploying WAR overwrites context fragment
           Product: Tomcat 5
           Version: 5.5.25
          Platform: All
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: zhihong@gmail.com


When a war is deployed in webapps directory, Tomcat 5 overwrites any context
xml in conf/engine/host directory with the one in META-INF in the war.

This behavior is undesirable. We normally put a customized context fragment to
overwrite what's delivered in WAR. Can this behavior be modified so the context
fragment in host directory is kept intact if its docBase points to the same
war?

Thanks!

Zhihong


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 44879] Deploying WAR overwrites context fragment

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44879





--- Comment #4 from Zhihong Zhang <zh...@gmail.com>  2008-05-08 08:17:21 PST ---
(In reply to comment #3)
> You are probably undeploying first which, as designed, will remove the old
> context fragment.
> 

You are correct. Looks like the undeploying process removes the context. 

However, I wonder if this is the right behavior. Should Tomcat only remove the
context if the app is deployed from WAR?

Zhihong


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 44879] Deploying WAR overwrites context fragment

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44879





--- Comment #3 from Mark Thomas <ma...@apache.org>  2008-04-27 23:47:47 PST ---
You are probably undeploying first which, as designed, will remove the old
context fragment.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 44879] Deploying WAR overwrites context fragment

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44879


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-04-27 08:48:49 PST ---
The behaviour you describe is not the intended behaviour. I have checked the
code and performed my own test and cannot repeat this problem.

If you still see this issue please provide the smallest, simplest series of
steps to reproduce this issue with a clean install of the latest stable 5.5.x
release.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 44879] Deploying WAR overwrites context fragment

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44879





--- Comment #2 from Zhihong Zhang <zh...@gmail.com>  2008-04-27 14:39:53 PST ---
(In reply to comment #1)
> The behaviour you describe is not the intended behaviour. I have checked the
> code and performed my own test and cannot repeat this problem.
> 
> If you still see this issue please provide the smallest, simplest series of
> steps to reproduce this issue with a clean install of the latest stable 5.5.x
> release.
> 

Mark,

Than you for looking into this issue. You are right. I couldn't reproduce this
problem on a straight startup either. But I know this happens because my
context file got overwritten several times and our QA reported the same issue.
It probably has something to do with redeploying the app.

I will try to find the exact steps to reproduce and let you know.

Zhihong


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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