You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Paolo Futre <ch...@hotmail.com> on 2008/04/05 20:07:43 UTC
Error when using 'ant install' command
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
--
View this message in context: http://www.nabble.com/Error-when-using-%27ant-install%27-command-tp16516276p16516276.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Error when using 'ant install' command
Posted by James Abley <ja...@gmail.com>.
On 05/04/2008, Paolo Futre <ch...@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