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 2025/10/31 10:37:51 UTC

[Bug 69868] New: deployIgnore is not taking effect in descriptor deployment

https://bz.apache.org/bugzilla/show_bug.cgi?id=69868

            Bug ID: 69868
           Summary: deployIgnore is not taking effect in descriptor
                    deployment
           Product: Tomcat 9
           Version: 9.0.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: felixzhang0818@gmail.com
  Target Milestone: -----

In tomcat server.xml,  the <Host> supports a attribute named deployIgnore used
to skip specific webapp deployment.

It works in war/directory scenarios, but it does not take effect in descriptor
scenario

From source code, seems deployDescriptors method does not check ignored web app
list.
https://github.com/apache/tomcat/blob/9.0.x/java/org/apache/catalina/startup/HostConfig.java#L463

-- 
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


[Bug 69868] deployIgnore is not taking effect in descriptor deployment

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

Remy Maucherat <re...@apache.org> changed:

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

--- Comment #1 from Remy Maucherat <re...@apache.org> ---
This attribute is documented as relative to appBase. The webapp descriptors you
mention are in configBase, so it won't apply as designed. These descriptors
should be considered as being part of server.xml (they have been separated to
be able to remove webapps easily).

-- 
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


[Bug 69868] deployIgnore is not taking effect in descriptor deployment

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

--- Comment #2 from felixzhang0818@gmail.com ---
(In reply to Remy Maucherat from comment #1)
> This attribute is documented as relative to appBase. The webapp descriptors
> you mention are in configBase, so it won't apply as designed. These
> descriptors should be considered as being part of server.xml (they have been
> separated to be able to remove webapps easily).

Hi Remy

Understand that, from inner logic side, they are different. 

 <Host name="", appBase="", deployIgnore=""/>

But from user's perspective, the Host configuration represents a StandardHost
object which is centrally manage the deployment for 3 scenarios (deploy
descriptor xml, deploy war, deploy webapp folder)

So that, it is expected that, deployIgnore should be able to cover all of these
3 kinds of deployment, right ?

-- 
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