Hi,
thanks for reply.

It didn't help.

I have Windows XP and ANT 1.6.5.
I have changed directory separators from \ to /, but the error is same.

Do I have to setup anything in Tomcat configuration to be able to
deploy into subdirectory in webapps directory?

This works fine:

<target name="deploy2" description="Deploy web application from
existing war file">
  <deploy url="http://localhost:8080/manager"; username="tomcat"
password="tomcat"
          path="/main" war="./myApp.war" update="true" />
</target>


Regards,
Zdenek

On 5/22/07, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote:
I found that path to the war file can only be absolute path.

-----Original Message-----
From: Zdeněk Vráblík [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 22, 2007 9:22 AM
To: Tomcat Users List
Subject: ant deployment

Hi all,

I need keep directory structure and deploy application into Tomcat
5.5.23 into subdirectory.

Is it possible with tomcat ant deployment?

This failed:

<target name="deploy2" description="Deploy web application from
existing war file">
  <deploy url="http://localhost:8080/manager"; username="tomcat"
password="tomcat"
          path="/main/other-place" war="./myApp.war" update="true" />
</target>

I get error during deployment:

[deploy] FAIL - Encountered exception java.io.FileNotFoundException:
C:\app\T55\webapps\main\other-place\main.war (The system cannot find
the path specified)


When I created directories main/other-place I got this error:

FAIL - Failed to deploy application at context path /main/other-place/main

Do I have any possibility except unpack and copy war file into right directory?

Thanks.

Regards,
Zdenek Vrablik

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to