I am not going to be able to give you the resolution to this problem.
However, the ant tasks use the WEBDAV application from within Tomcat and
this is the source of your problem.  Are you deploying to local or remote
host?  If it is a remote host, then it could be a bug in the Tomcat version
running on the remote host.

On 6/5/06, Greg Allen <[EMAIL PROTECTED]> wrote:

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







--
Marc Farrow

Reply via email to