So has nobody else seen this? It should be simple to reproduce.
I can reproduce it with the following steps: 1. Create my distribution in my build area. 2. Verify the image file is OK (opening it in IE is how I do it). 3. Deploy the application using the ant task. 4. Go to the Tomcat webapps area and pull the image up in IE. It is corrupted. -- Greg _____ From: Greg Allen Sent: Monday, June 05, 2006 2:35 PM To: 'users@tomcat.apache.org' Subject: Image files and DeployTask... I have a build.xml that used DeployTask to deploy my application. Here's the build.xml: <target name="install" depends="compile" description="Install webapp on Tomcat"> <taskdef name="install" classname="org.apache.catalina.ant.DeployTask" classpathref="catalina.classpath"/> <install url="${catalina.manager}" username="${catalina.username}" password="${catalina.password}" path="/${project.path}" localwar="file://${build.web.dir}"/> </target> In my deployed application I have some image files (GIF format), which end up in the <app>/images directory. However, for some reason, when the application is deployed the images end up being corrupted and displaying incorrectly on the screen. I have verified that the deployed images with the pre-deployed ones, and they are the same number of bytes. But when I try to view the deployed images, the images themselves are hosed. I've tried using jar and bundling up my application by hand, and if I do that the images end up fine. Has anybody see this before? Do I have to do something special with image files? Thanks, -- Greg