tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49978] New: WebappLoader throws exception if workDir already exists (when unpackWARs=false)
Date Wed, 22 Sep 2010 18:11:32 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49978

           Summary: WebappLoader throws exception if workDir already
                    exists (when unpackWARs=false)
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: jfrederic@dmotorworks.com


In WebappLoader.setRepositories(), if the war is not unpacked, it tries to
create a directory /WEB-INF/classes inside the workDir.  If that directory
already exists, an error is thrown and the webapp does not start.

This is a change from 5.5, which didn't check the return value of
classRepository.mkdirs().  mkdirs() returns false if the directories already
exist.  I doubt it was the intention here.  Probably the intention was to throw
an exception if the directory could not be created, rather than if it already
existed.

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


Mime
View raw message