tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50737] Error on .war deploy - archive malformed (on recent Tomcat releases) on IBM iSeries System i
Date Fri, 11 Feb 2011 19:51:33 GMT

--- Comment #4 from Jon E. <> 2011-02-11 14:51:27 EST ---
The problem occurs when Tomcat (on the iSeries / System i / AS400) is started
with a command line that has different case values than where the file system

We configured the IBM System i to start Tomcat with the following QShell

qsh cmd('/Apache/apache-tomcat-6.0.32/bin/')

Yet the real name where Tomcat resides is:


Deployment fails when they are not equal, even though Tomcat is running.

In ExpandWar, when it compares the canonical paths, the
expandedFile.getCononicalPath() value is the value that was used to start
Tomcat, and the canonicalDocBasePrefix is set to the value of where the .jar
file entries reside on the file system.

/Apache/apache-tomcat-6.0.32/bin/ != 

Previously we were using Tomcat 6.0.20, which did not have this validation in
class ExpandWar.  On hosts that do not have case sensitive file systems, should
the path names all be resolved to lower case before this check?

WORK AROUND:  On our system, we changed the command string that starts Tomcat
to be exactly the same, case-for-case, as the directory in which it resides. 
When this is done, deployment works fine.

Thank you for your help.

- Jon

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message