tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Command line requests for starting/reloading/stoping applications are not working in Tomcat 7.0.57 Manager
Date Tue, 14 Jul 2015 15:11:40 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ilya,

On 7/14/15 9:56 AM, Yudin, Ilya wrote:
> Hello,
> 
> 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. There 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 URL: 
> http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Reload_An_E
xisting_Application
>
> 
to achieve that, but the commands do not work as described, even though
Web
> GUI Manager works just fine.
> 
> I do have appropriate roles for the user added to my 
> <tomcat>/conf/tomcat-users.xml file:
> 
> <tomcat-users> <role rolename="manager-gui"/> <role
> rolename="manager-script"/> <user username="OurName"
> password="OurSecurePasswd" roles="manager-gui,manager-script"/> 
> </tomcat-users>
> 
> ... 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 
> http://our.server.fqdn:8080/manager/text/list OK - Listed
> applications for virtual host localhost ... 
> /manager:running:0:manager /workschedule:running:0:workschedule 
> /docs:running:0:docs /sample:running:348:sample ...
> 
> However when I try to start/stop/reload any of the listed
> applications I am getting the following result:
> 
> [ngtom@ng-web01 ~]$ curl --user OurName:OurSecurePasswd 
> http://our.server.fqdn:8080/manager/text/stop?path=/docs curl: No
> match.

This is a shell error: you need to quote the URL otherwise the ?
character tries to perform a glob match. Try this:

[ngtom@ng-web01 ~]$ curl --user OurName:OurSecurePasswd \
    'http://our.server.fqdn:8080/manager/text/stop?path=/docs'

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVpSasAAoJEBzwKT+lPKRYURsQAMQAXACbXz+RELq5nQYBKzfT
2ilEfZY6dzyibekFzLvVZ2I6xDJs+FeEE6qJBzkuUrgcJ6qxLKTRJJBlkD4wGbmY
0ZGbyUPc/84O0lcqEQEzFFPGIMfzid6A1ZKqw+S/ZuZI+GgdiWKeW/r+oI4VEC9D
Ja+NT8Ww54kVSH0D/hgcyDZ4erkar6U42hAbE/NnQuNLaEZzYY2uKNcEpbgdO6Cs
jmYq3Q6jU/7a9plXDKmc67EfVdEQtanShMu25yBRcQ49/6oiSeKomV9iyKEP+2WC
0du1gPGI9XjEUAGsPAFbO1wHtPGiqrUFqq/64KD6zgvusUAOWuPejxoMmIAWt4/a
7YUInqQjkbgPs6s3VsKVMnEHXQn6RVRCCMXpCfmJWFhXHTGo/1RnpqD6/y/ouEwl
m1wZlrSJe9WXX/CTmyAW+q2I+eKxLEkj8uBcCyZ1XMRhPtWholC8uy2wTRaexVKE
GdpSnbF/HINUFwDZ8iUITx2UqVHBKspOm2+/VJJjl+C+BRG+ZbIaof9/Hf4Hvt5i
0eMyZ+ncxX+05ziJhrzSr8g06w6aEqOX0CzWvll+AsD4QiYUt7kmkQb97APnvhFX
ThwlQ5yC+DLwSsMD45uHsrenQfVorvrHKz2j0SMk49DluMKGG2HJK39AWAgZbddS
B0gyRvdJQb5p+3gYmCdT
=1iuV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message