You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeff Macomber <jm...@tuvox.com> on 2006/06/13 23:35:30 UTC

Using Ant install with Tomcat 5.5

Hi All,

 

I am attempting to install a web app using the ant task install.  It is
failing when I use this:

 

<install url="${tomcat.manager.url}"

                                    username="${tomcat.username}"

                                    password="${tomcat.password}"

 
path="/SpeechApps/TransactionModel60_20060612141031"

                                    war="file:C:\Program
Files\public\SpeechApps\TransactionModel60_20060612141031\"/>

 

but succeeding when I do this:

 

<install url="${tomcat.manager.url}"

                                    username="${tomcat.username}"

                                    password="${tomcat.password}"

 
path="/SpeechApps/TransactionModel60_20060612141031"

                                    war="file:C:\Program
Files\public\SpeechApps\TransactionModel60_20060612141031\"/>

 

 

The only difference is the "path".  In Tomcat 5.0 this works fine but
not in tomcat 5.5.  Is this a bug?  Am I doing something incorrectly?

 

I also tried using context.xml and the deploy tasks with the same
result.

 

Any help would be appreciated.


Jeff


Re: Using Ant install with Tomcat 5.5

Posted by Martin Gainty <mg...@hotmail.com>.
Hey Jeff-

Ant is primarily a Nix utility which has been ported to DOS
so relative pathnames like '/fu/bar/fubar' always work 
but DOS paths like 'C:\Program Files\Way Too Many Spaces\Big Long ProgramName With Spaces.exe doesnt work
the workaround is
dir /X (give me short name)
so in the case of 
C:\Program Files\fu becomes 
C:\PROGRA~1\fu                (which uses the shortened directory name)

Just a FYI--

Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Jeff Macomber" <jm...@tuvox.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Tuesday, June 13, 2006 5:35 PM
Subject: Using Ant install with Tomcat 5.5


Hi All,

 

I am attempting to install a web app using the ant task install.  It is
failing when I use this:

 

<install url="${tomcat.manager.url}"

                                    username="${tomcat.username}"

                                    password="${tomcat.password}"

 
path="/SpeechApps/TransactionModel60_20060612141031"

                                    war="file:C:\Program
Files\public\SpeechApps\TransactionModel60_20060612141031\"/>

 

but succeeding when I do this:

 

<install url="${tomcat.manager.url}"

                                    username="${tomcat.username}"

                                    password="${tomcat.password}"

 
path="/SpeechApps/TransactionModel60_20060612141031"

                                    war="file:C:\Program
Files\public\SpeechApps\TransactionModel60_20060612141031\"/>

 

 

The only difference is the "path".  In Tomcat 5.0 this works fine but
not in tomcat 5.5.  Is this a bug?  Am I doing something incorrectly?

 

I also tried using context.xml and the deploy tasks with the same
result.

 

Any help would be appreciated.


Jeff