0
votes

I'm using Tomcat 7 and Manager coming from 7.0.32.

curl -X PUT http://user:password@server:port/manager/text/deploy?path=/app
OK - it works

curl -X PUT http://user:password@server:port/manager/text/list
FAIL - Unknown command /list
Same with stop : 
FAIL - Unknown command /stop

but in the official doc : http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Stop_an_Existing_Application It's clearly stated that this command exists.

What am I missing ?

1
Are you able to do this using the tomcat manager UIShamis Shukoor
Yes no problem with the UI version, I found a way to do it : paulgrenyer.blogspot.in/2011/11/catalina-ant-for-tomcat-7.html but needs a bit overhead...Camille R
just answered :'-) PUT is in fact used for deploy only that's why it was working on deployCamille R
yea completely, but the doc is far to be clear x)Camille R

1 Answers

7
votes

OK ... very simple answer : it's not a PUT it's a GET.

curl -X GET http://user:password@server:port/manager/text/list

I used wireshark to listen on my machine when using tomcat+ant. ( http://paulgrenyer.blogspot.in/2011/11/catalina-ant-for-tomcat-7.html )