dcsimg
Reload Tomcat Application Fails from Ant
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   AJ_Coon
Posted On:   Wednesday, June 24, 2009 02:22 PM

Hello, I am having a problem with the Tomcat reload task in my Ant build file. I am seeing the following issue: BUILD FAILED E:Eclipseworkspace-2springapp uild.xml:113: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/html/reload?path=%2Fspringapp I have triple-checked that I have the correct username and password for Tomcat in my build file. My suspicion is the encoding of the "/" in the path variable. When I use the manager app via the Web interface, I can reload my app without an error. The query string in that case looks like "?path=/springapp" Here is the t   More>>

Hello,


I am having a problem with the Tomcat reload task in my Ant build file. I am seeing the following issue:




BUILD FAILED

E:Eclipseworkspace-2springapp uild.xml:113: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/html/reload?path=%2Fspringapp




I have triple-checked that I have the correct username and password for Tomcat in my build file. My suspicion is the encoding of the "/" in the path variable. When I use the manager app via the Web interface, I can reload my app without an error. The query string in that case looks like "?path=/springapp"



Here is the task from my build file:

			


username="${tomcat.manager.username}"
password="${tomcat.manager.password}"
path="/${name}"/>





Any help resolving the 401 would be much appreciated.




Thanks,

-aj





  • Tomcat Version: Apache Tomcat/6.0.20

  • JVM Version: 1.6.0_13-b03

  • JVM Vendor: Sun Microsystems Inc.

  • OS Name: Windows XP

  • OS Version: 5.1

  • OS Architecture: x86

  • Eclipse Version: 3.4.1

  • JDK Version: 1.6.0_11

  • Ant Version: 1.7.0


   <<Less
About | Sitemap | Contact