ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Abley" <james.ab...@gmail.com>
Subject Re: Error when using 'ant install' command
Date Sun, 06 Apr 2008 21:12:16 GMT
On 05/04/2008, Paolo Futre <chrishern@hotmail.com> wrote:
>
>  I'm new to using Ant and am having a problem when using the 'ant install'
>  command.  I've devloped a servlet and am attempting to deploy it onto Apache
>  Tomcat.  I've compiled it successfully using the 'ant' command but when I
>  try and run the 'ant install' command, I get the following error on the
>  install step:
>
>  "BUILD FAILED
>  C:\Program Files\Apache Software Foundation\Tomcat
>  6.0\webapps\myapp\build.xml:375: java.io.IOException: Server returned HTTP
>  response code: 401 for URL:
>  http://localhost:8080/manager/deploy?path+%2Fmyapp&war=file%3A%2F%2FC%3A%5CProgram+Files%5CApache+Software+Foundation%5CTomcat+6.0%5Cwebapps%5Cmyapp%2Fbuild"
>
>  What is this error telling me?  Is it a problem with Ant or is it actually
>  the server I'm attempting to install the servlet on?
>
>  Thanks for your help.
>
>  PF

Are you able to deploy other webapps to that Tomcat instance using
ANT? Since you're getting a 401 response, you may want to check that
you are setting a valid username and password, and that the user
account has the required roles to deploy applications.

Cheers,

James

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


Mime
View raw message