"ant install" error using tomcat
From: Michael Deathya (deathyam_at_yahoo.com)
Date: 12/17/03
- Next message: P.Hill: "Re: Eclipse: building an (non-j2EE) app jar file."
- Previous message: Eugene Toporov: "[ANN] JNIWrapper 2.2 for Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: P.Hill: "Re: Eclipse: building an (non-j2EE) app jar file."
- Previous message: Eugene Toporov: "[ANN] JNIWrapper 2.2 for Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|