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 2005/01/26 16:16:50 UTC

DO NOT REPLY [Bug 33249] New: - Autodeploy sometimes results in "Missing application web.xml"

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=33249>.
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=33249

           Summary: Autodeploy sometimes results in "Missing application
                    web.xml"
           Product: Tomcat 5
           Version: 5.5.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: eph1v3t8@mailblocks.com
                CC: eph1v3t8@mailblocks.com


Intermittently, when I copy a WAR file into the webapps directory to deploy it
(which I usually do via ant, but the problem can also happen when deploying via
the manager servlet) Tomcat unpacks only part of the WAR file, and then outputs
the message:  "Missing application web.xml".  Usually quite a bit more than just
the web.xml is missing from the unpacked version.  If I "undeploy" via the
manager servlet, and then re-copy the same WAR file, the second time around
Tomcat usually unpacks it correctly and the application starts.

My suspicion is that the autodeployment thread is detecting the presence of the
new WAR file and trying to unpack it before the copy operation has fully
completed.  If this is a possibility, then one fix that comes to mind would be
for Tomcat to check the file size of the WAR file before and after doing the
unpack, and re-doing the unpack if there is a difference.

The problem is reproducible, but not every time.  In the case of the servlets
I've been working with lately, it happens maybe 1 in 3 or 4 times.

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