Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D50F6181B5 for ; Tue, 14 Jul 2015 15:13:04 +0000 (UTC) Received: (qmail 99304 invoked by uid 500); 14 Jul 2015 15:13:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 99242 invoked by uid 500); 14 Jul 2015 15:13:01 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 99228 invoked by uid 99); 14 Jul 2015 15:13:01 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2015 15:13:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AD2CA1A6FAD for ; Tue, 14 Jul 2015 15:13:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id NIZXWW6umraF for ; Tue, 14 Jul 2015 15:12:51 +0000 (UTC) Received: from vms173021pub.verizon.net (vms173021pub.verizon.net [206.46.173.21]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id BC24D20772 for ; Tue, 14 Jul 2015 15:12:50 +0000 (UTC) Received: from Christophers-MacBook-Pro.local ([98.213.217.75]) by vms173021.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NRH003G6GVGMAD0@vms173021.mailsrvcs.net> for users@tomcat.apache.org; Tue, 14 Jul 2015 10:11:42 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=J+9Xl1TS c=1 sm=1 tr=0 a=3tMq/n+FvoH7rmQ1UKd0qw==:117 a=-57I09spAAAA:8 a=oR5dmqMzAAAA:8 a=tHvJy1wsfNMA:10 a=-9mUelKeXuEA:10 a=IkcTkHD0fZMA:10 a=zOBTXjUuO1YA:10 a=mV9VRH-2AAAA:8 a=j4nzMFrpAAAA:8 a=GiMBW7ncaVi8xIeIfREA:9 a=QEXdDO2ut3YA:10 a=Z9aDq7a1-pcA:10 Message-id: <55A526AC.5080806@christopherschultz.net> Date: Tue, 14 Jul 2015 10:11:40 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-version: 1.0 To: Tomcat Users List Subject: Re: Command line requests for starting/reloading/stoping applications are not working in Tomcat 7.0.57 Manager References: In-reply-to: Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit -----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 > /conf/tomcat-users.xml file: > > rolename="manager-script"/> password="OurSecurePasswd" roles="manager-gui,manager-script"/> > > > ... 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