Wendy Smoak wrote:
Now I'm trying to use the tomcat ant tasks to automate things, and I'mI have not used the ant custom task (catalina-ant.jar) that does reloading, I have written my own with wget. But one of the issues is that the /manager webapp requires HTTP authentication to work. In my wget command I supply the --http-user and --http-pass arguments. You may have a session cookie in your browser that is letting you reload without specifying these, which may explain why it works in your browser but not in your ant script.
running into problems. First, I can't reload this app with the ant task.
It says: 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: 1 second
w:\java\bendev>
I can reload it manually using the manager app, and I get:
OK - Reloaded application at context path /bendev
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.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
