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 DA38F1041E for ; Fri, 18 Oct 2013 16:48:43 +0000 (UTC) Received: (qmail 66926 invoked by uid 500); 18 Oct 2013 16:48:38 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 66873 invoked by uid 500); 18 Oct 2013 16:48:37 -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 66862 invoked by uid 99); 18 Oct 2013 16:48:36 -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:48:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 16:48:30 +0000 Received: from [192.168.245.129] (HSI-KBW-37-49-53-194.hsi14.kabel-badenwuerttemberg.de [37.49.53.194]) (Authenticated sender: andre.warnier@ice-sa.com) by tor.combios.es (Postfix) with ESMTPA id D76B53C2A61 for ; Fri, 18 Oct 2013 18:48:34 +0200 (CEST) Message-ID: <52616648.5060207@ice-sa.com> Date: Fri, 18 Oct 2013 18:48:08 +0200 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) 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> <52616496.7040508@christopherschultz.net> In-Reply-To: <52616496.7040508@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Christopher Schultz wrote: > -----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. > The logfile says : Informazioni: Marking servlet Manager as unavailable ott 18, 2013 4:48:17 PM org.apache.catalina.core.StandardWrapperValve invoke Grave: Allocate exception for servlet Manager java.lang.SecurityException: Restricted (ContainerServlet) class org.apache.catalina.manager.ManagerServlet So to my (admittedly untrained) eyes, it may look like the Manager application (and its static pages) is deployed, but it is when it's servlet is starting to run that the Java Security Manager shoots it down.. It doesn't for that undeploy the whole app I guess. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org