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 CDB83103E1 for ; Fri, 18 Oct 2013 16:41:30 +0000 (UTC) Received: (qmail 44817 invoked by uid 500); 18 Oct 2013 16:41:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 44764 invoked by uid 500); 18 Oct 2013 16:41:24 -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 44750 invoked by uid 99); 18 Oct 2013 16:41:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 16:41:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [76.96.62.96] (HELO qmta09.westchester.pa.mail.comcast.net) (76.96.62.96) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 16:41:17 +0000 Received: from omta01.westchester.pa.mail.comcast.net ([76.96.62.11]) by qmta09.westchester.pa.mail.comcast.net with comcast id ecS91m0050EZKEL59ggwYg; Fri, 18 Oct 2013 16:40:56 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.106.98]) by omta01.westchester.pa.mail.comcast.net with comcast id eggv1m00S27QCxh3MggvHR; Fri, 18 Oct 2013 16:40:56 +0000 Message-ID: <52616496.7040508@christopherschultz.net> Date: Fri, 18 Oct 2013 12:40:54 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: can't connect to manager application References: <5260142A.1030509@aspix.it> <52604BD7.5090200@gmail.com> <5260C86C.10609@aspix.it> <5260D895.3040001@gmail.com> <526132C2.9080009@aspix.it> <5261485E.8090005@ice-sa.com>,<52615C03.8000100@aspix.it> <526163EC.8090200@aspix.it> In-Reply-To: <526163EC.8090200@aspix.it> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1382114456; bh=Czxi3R68sA8L2nM46ffvGw9ODLoKruyv9Mdb4okJtfA=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=iBJy9Li1i6Hp0z2d+eccxFfYi2ZreG404V7MCLM9hPW+MA0dTLp/grf1XTVxAiKQv qfKia3FOMocdzPQHxZhl5E+HMPLLFCvGx4XmJe0AhHFqdYV6BJY20rU5KWUjil+K0K LsNfz5VOlrc7RnzCcSVrD8p6Ex12M1dsuDw9UlU9QHI1NGCL41gwUGK7Z+k6jjz4Z9 dIIe9cQgh9Xls8qiXpwLYY8ntprP9QW+CPCkbYeRBHL/9OzGojtOOmcHxx2y9j0ZHJ o7tkSptj0Nmf5ChTyODe/db5LVr3Q97T8c2hEeo1QfopJksRJyWoLkpPC2bfsOrCww 7oGxc2DtriMbA== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Edoardo, On 10/18/13 12:38 PM, Edoardo Panfili wrote: > Il 18/10/13 18:29, Martin Gainty ha scritto: >> >>> Date: Fri, 18 Oct 2013 18:04:19 +0200 From: edoardo@aspix.it >>> To: users@tomcat.apache.org Subject: Re: can't connect to >>> manager application >>> >>> Il 18/10/13 16:40, André Warnier ha scritto: >>>> Edoardo Panfili wrote: >>>>> Il 18/10/13 08:43, Ognjen Blagojevic ha scritto: >>>>>> On 18.10.2013 7:34, Edoardo Panfili wrote: >>>>>>>> To rule out faulty upgrade, could you try to >>>>>>>> reproduce the problem on clean Tomcat 7.0.42 >>>>>>>> install? >>>>>>> the problem was surely present with 7.0.39, the 7.0.42 >>>>>>> is a fresh installation for me. >>>>>> >>>>>> Could you please clarify: does the problem exists on >>>>>> 7.0.42, 7.0.39 or both? >>>>> both >>>>> >>>>>> Could you provide steps to reproduce the problem on fresh >>>>>> 7.0.42 installation? >>>>> - unpack tomcat - modify listen port - modify >>>>> tomcat-users.xml - copy jmxremote.access and >>>>> jmxremote.password (setting permissions) - build jsvc - >>>>> copy configuration files for applications (in >>>>> $tomcat/conf/Catalina/localhost) >>>>> >>>>> thank you for you question: also jmx remote access is not >>>>> working (in both tomcat 7.0.39 and 7.0.42), maybe the two >>>>> problems are related? >>>>> >>>>> >>>>>> I tried to reproduce with the information you provided so >>>>>> far, but I was unable. It works for me. >>>>> Also on my local machine, where jmx is not configured. >>>>> >>>>> >>>> >>>> Usually, a good place to look first, are the Tomcat >>>> logfiles. What do they say ? >>> >>> searching for "java.lang.SecurityException: Restricted >>> (ContainerServlet) class >>> org.apache.catalina.manager.ManagerServlet" >> >> my HostManagerServlet is defined in >> webapps/host-manager/WEB-INF/web.xml as: >> HostManager >> >> org.apache.catalina.manager.host.HostManagerServlet >> >> >> >> debug 2 >> >> HTMLHostManager >> >> org.apache.catalina.manager.host.HTMLHostManagerServlet >> >> >> >> debug 2 >> > > the same for me. > > >>> seem that the solution is to add privileged="true" >> my privileged attr in Context is located at >> /webapps/host-manager/META-INF/context.xml as: > antiResourceLocking="false" privileged="true" /> > > also this, the same. > > I can try with a new install (as suggested from Ognjen ) > > then try to use manager before install jsvc and befor setting the > jmx properties. Neither jsvc nor jmx should have any effect on what you are seeing. I would like to confirm that, however. Let us know what you discover. The SecurityException is certainly going to be a problem. It's odd that you saw the SecurityException which should fail to deploy the Manager, yet you are seeing the Manager's 404-not-found page which would require the Manager to be deployed. Can you stop Tomcat, delete all log files, and then restart? If/when you see that failure (should be easy to reproduce: just use curl, right?) then post the entire catalina.out file. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSYWSWAAoJEBzwKT+lPKRY8osP/A6+LW/yrPt/cgl6kcb7CM+w xFuCnqQouQBLM5+tfpTqMnKAupFOKGYom+hmX/i1BKq7vxPdmZLEHsRS+DWnA1pw E+qwfI6uUyKUcV6KLhfIKdNWeJFIYn8jj9sAOIUCWrhAJGdhSWaQO7x8+4kslUno 4J3atY6uX4wEpo5RSxlhkd9bQ/s5G/OBuwGQves5fvjgQ37HSGNEm1kSmdFm9RaH 3HN3HOIWgNSuq7zCPib+kRWX06s5LBH/71bm5kTUtU2SyYWXQJQIfXx5MzocdLCE a/+bSJdNGqUQv7S7jvcyHddWkRQjNbX8OO4+AvtoPXe6J00Wdfcl3lXZWaTTVQjg OgV9Ac/SnGyCb+n2IwKj+bw2m478Vk3jC1QT+GW3dRdmifzWaOKFXZN5fRvR+3gK aM7d1tw/RrBnMVQN1ZKqPlfC+BHofYZxvGQKHlu9L9DL6XDX8v2MahjFoxCZ4yZD BFtq88YzvzyHa3DLQ4dNa76k/g2qF//JnkjgS2fvlAtanteXLvQPNp44o18VCe7n jwC0J0xTOvH66tUb01Zt7aLmuJjMEYCA5pCgt2QpbmzVJZ2fk0wft+pSp1cZ3Nmz WVEXvCB2TLpjfDnFp8LTH+AaRTzw4tqzHpkEAZDUSH93TU+ToK2COuym28+j/j6i +KbPLMJPsNqMG3QjGejd =rx9x -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org