DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38863>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38863 Summary: [catalina-ant] "Server returned HTTP response code: 401" using InstallTask Product: Tomcat 5 Version: 5.5.15 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Where ? Apache Tomcat/5.5.15 JVM 1.5.0_06-b05 Windows XP SP2 What ? In a build.xml script, when using two variables for the tomcat manager login/password couple (set from a build.properties file) it produces the following error message : "java.io.IOException: Server returned HTTP response code: 401 for URL" <target name="deployTomCat" depends="prepareDeployTomCat,undeployTomCat"> <install url="${url}" username="${tomcat.username}" password="${tomcat.password}" path="${path}" war="file:///${web.war.file}"/> <echo message="deploy ok"/> </target> When ? Reproducable everytimes one will use some external variables to set the manager's login/password on the concerned machine within the build.xml file. Workaround : Explicitly set the attributes username/password in the <install/> element. <target name="deployTomCat" depends="prepareDeployTomCat,undeployTomCat"> <install url="${url}" username="admin" password="" path="${path}" war="file:///${web.war.file}"/> <echo message="deploy ok"/> </target> note : Tested several times, with several login/password combinations. Regards. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]