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 2004/12/16 11:22:07 UTC

DO NOT REPLY [Bug 32729] New: - Can deploy but not undeploy improperly configured webapps

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32729>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32729

           Summary: Can deploy but not undeploy improperly configured
                    webapps
           Product: Tomcat 5
           Version: 5.5.4
          Platform: Macintosh
        OS/Version: Mac OS X 10.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: cyrus@zapm.org


To reproduce: introduce a typo in the web-app/servlet-mapping/servlet-name element of a web.xml of 
a working app, so that a url-pattern is mapped to an undefined servlet.  Run "ant install".  Although 
Ant reports a successful build, there will be a number of exceptions reported in catalina.out (including 
"IllegalArgumentException: Servlet mapping specifies an unknown servlet name ..."), and the webapp 
won't work.  

Attempts to undeploy the broken web-app using "ant remove" or the HTML manager then fail, 
with complaints that the app hasn't been started ("LifecycleException").  The commands "ant install" and 
"ant reload" also fail, reporting that the "Application already exists at path ..." and "[app] has not been 
started", respectively.  It seems the only way out is to delete the webapp from the filesystem by 
hand.

I expect it should not be possible to partially deploy a webapp, even if it is misconfigured.  Either the 
deployTask should delete from webapps an app that couldn't be started, or the UndeployTask should 
allow such an app to be removed.

I am using Ant 1.6.2.  My build.xml and web.xml closely resemble the examples given in the 
documentation.

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

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