build failed (using Ant1.6)

hi

i wish to use Ant1.6 but while the deploy process i am getting

the following error

Buildfile: build.xml

init:

prepare:

[mkdir] Created dir: D:\webapplication\sanj\build

[mkdir] Created dir: D:\webapplication\sanj\build\META-INF

[mkdir] Created dir: D:\webapplication\sanj\build\WEB-INF

[mkdir] Created dir: D:\webapplication\sanj\build\WEB-INF\classes

[mkdir] Created dir: D:\webapplication\sanj\build\WEB-INF\lib

build:

[copy] Copying 1 file to D:\webapplication\sanj\build\WEB-INF

[copy] Copying 8 files to D:\webapplication\sanj\build

package:

[echo] Packaging the WAR....

[jar] Building jar: D:\webapplication\sanj\${application}.war

deploy:

BUILD FAILED

D:\webapplication\sanj\build.xml:165: java.io.IOException: Server returned HTTP

response code: 401 for URL: http://localhost:4263/manager/deploy?path=%2F%24%7Ba

pplication%7D

plz help...or provide

any link from where i can get help...

[1042 byte] By [BRAVOa] at [2007-11-27 8:58:03]
# 1
pleaz write your application server's name and check the web application port and url.
Stone.lia at 2007-7-12 21:23:25 > top of Java-index,Java Essentials,Java Programming...
# 2
Do you have your server turned on?
ita6cgra at 2007-7-12 21:23:25 > top of Java-index,Java Essentials,Java Programming...
# 3
> Do you have your server turned on?Wouldn't be returning a 401 if it wasn't. Looks like the web server asked something for authorization, and didn't get it
georgemca at 2007-7-12 21:23:25 > top of Java-index,Java Essentials,Java Programming...
# 4
Indeed apologies forgetting that 401 is unauthorised. You will need to set the username/pass to access the tomcat manager. Can be done manually or taking from the tomcat file itself I think.
ita6cgra at 2007-7-12 21:23:25 > top of Java-index,Java Essentials,Java Programming...
# 5

I assume you have something like the following in the build file?

<deploy url="TOMCAT_MANAGER_URL"

username="username"

password="password"

path="WEBAPP_CONTEXT_PATH"

war="WAR_LOCATION"

update="true"/>

If not it probably should ;-)

ita6cgra at 2007-7-12 21:23:25 > top of Java-index,Java Essentials,Java Programming...
# 6
Looks like this is happening in your 'deploy' target: you're probably using a task in there that deploys to your server via http - it should have attributes for username/password, use themHope this helps
georgemca at 2007-7-12 21:23:25 > top of Java-index,Java Essentials,Java Programming...
# 7
Did you fix it?
ita6cgra at 2007-7-12 21:23:25 > top of Java-index,Java Essentials,Java Programming...