Hello Yudin - try using the -X GET option with curl

E.G.  curl --user OurName:OurSecurePasswd -X GET 

Theo Sweeny
Web Support Contractor

T: 01293 722211
W: www.avios.com

From:   "Yudin, Ilya" <yudi...@nytimes.com>
To:     users@tomcat.apache.org, 
Date:   14/07/2015 15:58
Subject:        Command line requests for starting/reloading/stoping 
applications are not working in Tomcat 7.0.57 Manager


I'm running Apache Tomcat 7.0.57 on RHEL 6.6 servers for CCI NewsGate
editorial system which uses around 20 applications per Tomcat server. 
is a requirement here (for the reasons of automating administrative tasks)
to enable starting, stoping and reloading individual applications from
Linux command line

I am using your documentation on Apache Tomcat Manager at the following

to achieve that, but the commands do not work as described, even though 
GUI Manager works just fine.

I do have appropriate roles for the user added to my
<tomcat>/conf/tomcat-users.xml file:

  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <user username="OurName" password="OurSecurePasswd"

... and I have re-started Tomcat after adding the manager-script role.

The list command works exactly as described in documentation:

[ngtom@ng-web01 ~]$ curl --user OurName:OurSecurePasswd
OK - Listed applications for virtual host localhost

However when I try to start/stop/reload any of the listed applications I 
getting the following result:

[ngtom@ng-web01 ~]$ curl --user OurName:OurSecurePasswd
curl: No match.

I think that I've done everything exactly as shown in the examples given 
your documentation, but apparently something there or in what I'm doing is

Could you please help?

*Ilya Yudin*


The Mileage Company Limited is a limited company registered in England under 
company number 2260073 whose registered office address is at
Astral Towers, Betts Way, London Road, Crawley, West Sussex, RH10 9XY.

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify the 
system manager.

This footnote also confirms that this email message has been swept by Mimecast 
for the presence of computer viruses. 

Reply via email to