tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Ruediger <christian.ruedi...@gmail.com>
Subject Deployer package ANT task error
Date Mon, 04 Oct 2004 12:46:52 GMT
I am just about to try the first webapp tutorial of Tomcat.
My environment is:
Win 2k
Tomcat 5.0.28
eclipse 3.0
ANT 1.6.2

The catalina-ant.jar is added to the ant path.

When running the deploy task i get the following error

Buildfile: C:\Documents and Settings\cruediger\Mes
documents\Workspace\LocasugeGSM\build.xml
prepare:
compile:
install:
BUILD FAILED: C:\Documents and Settings\cruediger\Mes
documents\Workspace\LocasugeGSM\build.xml:263: java.io.IOException:
Server returned HTTP response code: 401 for URL:
http://localhost:8080/manager/deploy?path=%2FLocasugeGSM&war=file%3A%2F%2FC%3A%2FDocuments+and+Settings%2Fcruediger%2FMes+documents%2FWorkspace%2FLocasugeGSM%2Fdist
Total time: 1 second

The task in the Build file looks as follows
...
  <taskdef name="deploy"   classname="org.apache.catalina.ant.DeployTask"/>
...
 <target name="install" depends="compile"
   description="Install application to servlet container">

    <deploy url="${manager.url}"
       username="${manager.username}"
       password="${manager.password}"
           path="${app.path}"
       localWar="file://C:/Documents and Settings/cruediger/Mes
documents/Workspace/LocasugeGSM/dist"/>
  	
  </target>
...
The matching entries in the build.propertie file are:

manager.url    = http://localhost:8080/manager
manager.password = 
manager.udername = 

As the provided example build file didn't bother to set password and
user, and the documentation hasn4t lost a word about it, i didn't do
either.
Is this a mistake?

I would very much appreciate some help in this matter, as it bothers
me for a few days by now.
Thanks 
Christian Ruediger

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message