Summary: | ant-task undeploy uses GET while ManagerServlet requires POST in undeploy | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Markus Huelsekopf <mh> |
Component: | Manager | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED INVALID | ||
Severity: | minor | ||
Priority: | P2 | ||
Version: | 7.0.6 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Markus Huelsekopf
2011-02-02 07:39:01 UTC
You are using the wrong url. I tried hard to find my error in the url, but haven't, sorry. (In reply to comment #1) > You are using the wrong url. The error message is somewhat missleading than? Hopefully URL is the same for "deploy" and "undeploy": I am using "http://localhost:8080/manager/html": ------------------------------------------------------------------- ... <property name="url" value="http://localhost:8080/manager/html"/> ... <target name="deploy" description="Deploy web application"> <deploy url="${url}" username="${username}" password="${password}" path="${apppath}" war="${appname}.war" update="true" /> </target> <target name="undeploy" description="Undeploy web application"> <undeploy url="${url}" username="${username}" password="${password}" path="${apppath}" /> </target> ------------------------------------------------------------------- (In reply to comment #2) > I am using "http://localhost:8080/manager/html": Automatic tools, such as this one, should use URL of http://localhost:8080/manager/text and a user with the role of "manager-script". It is recommended to never assign "manager-script" and "manager-gui" roles to the same user, but use separate users for these tasks. The docs in 7.0 were updated recently. If anything else is needed, patches for webapps/docs are welcome. |