"ant install" error using tomcat

From: Michael Deathya (deathyam_at_yahoo.com)
Date: 12/17/03


Date: 17 Dec 2003 09:23:00 -0800

Hi,

My system:
Windows 2000 Pro
Tomcat 5
Ant 1.5.4
The ultra simple example application found at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/

I'm trying to get a simple hello world application to run on Tomcat.
I've got it running fine when I run "ant dist" from the command line
and then deploy using the web-gui manager.

Obviously, I'd like to be able to deploy all at once with Ant from the
command-line . I'm using the build.xml found at the link above. It has
an install target, but when I run it, I get the following

Apache Ant version 1.5.4 compiled on August 12 2003
Buildfile: build.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.2_03\jre
Detected OS: Windows 2000
parsing buildfile build.xml with URI =
file:C:/PROGRA~1/Apache/Tomcat/webapps/myapp/build.xml
Project base dir set to: C:\PROGRA~1\Apache\Tomcat\webapps\myapp
 [property] Loading C:\PROGRA~1\Apache\Tomcat\webapps\myapp\build.properties
 [property] Loading C:\Documents and
Settings\deathyam\build.properties
 [property] Unable to find property file: C:\Documents and
Settings\deathyam\build.properties
Override ignored for property app.path
Build sequence for target `install' is [prepare, compile, install]
Complete build sequence is [prepare, compile, install, reload, remove,
list, javadoc, clean, dist, all]

prepare:
     [copy] omitted as is up to date.

compile:
    [javac] mypackage\Hello.java omitted as mypackage/Hello.class is
up to date.
     [copy] omitted as is up to date.
     [copy] mypackage omitted as mypackage is up to date.

install:
BUILD FAILED
file:C:\progra~1\apache\tomcat\webapps\myapp\build.xml:282
java.net.ConnectException: Connection Timed out: connect
.
.
.
(bunch of stack trace stuff)
.
.

----
The line it's complaining about is this one:
<deploy url="${manager.url}" username="peter" password="peterpeter"
path="${app.path}" war="file://${build.home}"/>
I have an entry in tomcat-users.xml for
<user username="peter" password="peterpeter" roles="admin,manager"/>
and in build.properties in the app.path I have 
# Manager webapp username and password
manager.username=peter
manager.password=peterpeter
Assistance would be greatly appreciated.
Thanks,
Michael


Relevant Pages

  • Tomcat 5.5 installation
    ... I have installed Tomcat 5.5.23_1 on FreeBSD 6.2. ... I have used Servlets a lot in the past but have not used ant. ... Once this was done I was able to compile the project and install it using: ... I did notice that it created a new directory in webapps with the new application. ...
    (freebsd-questions)
  • Tomcat not starting up as service on Win2K
    ... or more installations of Tomcat on the same machine and run 1 or more as ... through its Windows Service Installer package. ... naming context for context /balancer ... everything actually works fine there on a clean install.. ...
    (comp.lang.java.programmer)
  • Windows update on Windows 2000 server fails to work
    ... I've been unable to get any updates to install through Windows Update ... Ant. ... Prev by Date: ...
    (microsoft.public.windowsupdate)
  • Re: P4C800-DELUXE XP Install Problems --- Hanging
    ... Windows Install Guide by Mr Steveo from ABX Zone Website. ... Additionally, if you have a Springdale or Canterwood chipset motherboard, ... Install chipset INFs before any video or sound drivers. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: Checking for the latest updates....
    ... It's a good idea to install them now and then check again, ... Microsoft Windows XP ... Windows XP Service Pack 1 ... Security Update for Windows XP ...
    (microsoft.public.windowsupdate)