[Bug 505522] [NEW] Tomcat 6: FileNotFoundException for MANIFEST.MF when auto-expanding a WAR

Edward Sargisson esarge at pobox.com
Sun Jan 10 15:47:07 GMT 2010

Public bug reported:

Binary package hint: tomcat6

Tomcat has a feature where if a WAR file is copied to the webapps
directory then it can automatically expand the WAR and start the
application. Out of the box this is not working for the tomcat6 package
because the tomcat6 group does not have write permissions to the webapps

sudo chmod g+w /var/lib/tomcat6/webapps

Steps to reproduce:
1. Create a valid WAR file which includes META-INF/MANIFEST.MF
2. Copy it to /var/lib/tomcat6/webapps

Expected results:
The WAR file will be expanded in the /var/lib/tomcat6/webapps directory. (i.e. if the file was ROOT.war then there will be a ROOT directory with the expanded contents of the WAR file).

Actual results:

catalina.log snippet from /var/lib/tomcat6/logs

Dec 30, 2009 3:49:28 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ROOT.war
Dec 30, 2009 3:49:28 PM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase: {0}
java.io.FileNotFoundException: /var/lib/tomcat6/webapps/ROOT/META-INF/MANIFEST.MF (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
        at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:312)
        at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:158)

ProblemType: Bug
Architecture: i386
Date: Sun Jan 10 15:39:08 2010
DistroRelease: Ubuntu 9.10
Ec2AMI: ami-1605e77f
Ec2AMIManifest: trailhunger/image.manifest.xml
Ec2AvailabilityZone: us-east-1d
Ec2InstanceType: m1.small
Ec2Kernel: aki-5f15f636
Ec2Ramdisk: ari-0915f660
Package: tomcat6 6.0.20-2ubuntu2
PackageArchitecture: all
ProcVersionSignature: User Name 2.6.31-302.7-ec2
SourcePackage: tomcat6
Tags: ec2-images
Uname: Linux 2.6.31-302-ec2 i686

** Affects: tomcat6 (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: apport-bug ec2-images i386

Tomcat 6: FileNotFoundException for MANIFEST.MF when auto-expanding a WAR
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

More information about the Ubuntu-server-bugs mailing list