Erik wrote:
> Does your ant task provide the HTTP authentication credentials? 
> According to the example build.xml comments, you need to set a 
> "manager.username" and "manager.password" property for the ant script to 
> access the /manager app with.

It's taken almost straight from the example:

<target name="reload" description="Reload Web application" depends="">
  <reload url="${manager.url}" username="${manager.username}" 
      password="${manager.password}" path="/${context}"/>
</target>

(With the appropriate properties set, of course.) And I get:

w:\java\bendev>ant reload
Buildfile: build.xml

reload:

BUILD FAILED
file:w:/java/bendev/build.xml:159: java.io.IOException: Server returned HTTP
res
ponse code: 401 for URL: http://localhost/manager/reload?path=%2Fbendev

Total time: 2 seconds
w:\java\bendev>

It does work manually from the manager app:
OK - Reloaded application at context path /bendev
with this URL:
http://localhost/manager/html/reload?path=/bendev

Looks the same to me... 

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to