tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: can't connect to manager application
Date Fri, 18 Oct 2013 16:57:02 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Edorado,

On 10/18/13 12:55 PM, Edoardo Panfili wrote:
> Il 18/10/13 18:40, Christopher Schultz ha scritto:
>> -----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"
>>>> 
>>>> <MG>my HostManagerServlet is defined in 
>>>> webapps/host-manager/WEB-INF/web.xml as: <servlet> 
>>>> <servlet-name>HostManager</servlet-name>
>>>> 
>>>> <servlet-class>org.apache.catalina.manager.host.HostManagerServlet</servlet-class>
>>>>
>>>>
>>>>
>>>>
>>
>>>> 
<init-param>
>>>> <param-name>debug</param-name> <param-value>2</param-value>

>>>> </init-param> </servlet> <servlet> 
>>>> <servlet-name>HTMLHostManager</servlet-name>
>>>> 
>>>> <servlet-class>org.apache.catalina.manager.host.HTMLHostManagerServlet</servlet-class>
>>>>
>>>>
>>>>
>>>>
>>
>>>> 
<init-param>
>>>> <param-name>debug</param-name> <param-value>2</param-value>

>>>> </init-param> </servlet> </MG>
>>> 
>>> the same for me.
>>> 
>>> 
>>>>> seem that the solution is to add privileged="true"
>>>> <MG>my privileged attr in Context is located at 
>>>> /webapps/host-manager/META-INF/context.xml as: <Context 
>>>> 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.
> yes.
> 
> catalina-daemon.out
> 
> ott 18, 2013 6:43:57 PM
> org.apache.catalina.core.AprLifecycleListener init Informazioni:
> The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the 
> java.library.path: 
> /usr/local/jdk1.7.0_40/jre/lib/amd64/server:/usr/local/jdk1.7.0_40/jre/lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>
>  ott 18, 2013 6:43:57 PM org.apache.coyote.AbstractProtocol init 
> Informazioni: Initializing ProtocolHandler ["http-bio-9080"] ott
> 18, 2013 6:43:57 PM org.apache.coyote.AbstractProtocol init 
> Informazioni: Initializing ProtocolHandler ["ajp-bio-9009"] ott 18,
> 2013 6:43:57 PM org.apache.catalina.startup.Catalina load 
> Informazioni: Initialization processed in 528 ms ott 18, 2013
> 6:43:57 PM org.apache.catalina.core.StandardService startInternal 
> Informazioni: Starting service Catalina ott 18, 2013 6:43:57 PM
> org.apache.catalina.core.StandardEngine startInternal Informazioni:
> Starting Servlet Engine: Apache Tomcat/7.0.42 ott 18, 2013 6:43:58
> PM org.apache.catalina.startup.HostConfig deployDescriptor 
> Informazioni: Deploying configuration descriptor 
> /usr/local/apache-tomcat-7.0.42/conf/Catalina/localhost/anotherApp.xml
>
> 
ott 18, 2013 6:43:58 PM org.apache.catalina.startup.HostConfig
> deployDescriptor Avvertenza: A docBase
> /usr/local/apache-tomcat-7.0.42/webapps/sisv inside the host
> appBase has been specified, and will be ignored ott 18, 2013
> 6:43:59 PM org.apache.catalina.startup.HostConfig deployDescriptor 
> Informazioni: Deploying configuration descriptor 
> /usr/local/apache-tomcat-7.0.42/conf/Catalina/localhost/myApplication.xml
>
> 
ott 18, 2013 6:43:59 PM
> org.apache.catalina.startup.SetContextPropertiesRule begin 
> Avvertenza: [SetContextPropertiesRule]{Context} Setting property
> 'debug' to '100' did not find a matching property. ott 18, 2013
> 6:44:01 PM org.apache.catalina.startup.HostConfig deployDescriptor 
> Informazioni: Deploying configuration descriptor 
> /usr/local/apache-tomcat-7.0.42/conf/Catalina/localhost/app5.xml 
> ott 18, 2013 6:44:01 PM org.apache.catalina.startup.HostConfig 
> deployDescriptor Avvertenza: A docBase
> /usr/local/apache-tomcat-7.0.42/webapps/app5 inside the host
> appBase has been specified, and will be ignored ott 18, 2013
> 6:44:01 PM org.apache.catalina.startup.SetContextPropertiesRule
> begin Avvertenza: [SetContextPropertiesRule]{Context} Setting
> property 'debug' to '100' did not find a matching property. ott 18,
> 2013 6:44:01 PM org.apache.catalina.startup.HostConfig 
> deployDirectory Informazioni: Deploying web application directory 
> /usr/local/apache-tomcat-7.0.42/webapps/ROOT ott 18, 2013 6:44:01
> PM org.apache.catalina.startup.HostConfig deployDirectory 
> Informazioni: Deploying web application directory 
> /usr/local/apache-tomcat-7.0.42/webapps/manager ott 18, 2013
> 6:44:01 PM org.apache.catalina.startup.HostConfig deployDirectory 
> Informazioni: Deploying web application directory 
> /usr/local/apache-tomcat-7.0.42/webapps/app7 ott 18, 2013 6:44:03
> PM org.apache.catalina.startup.HostConfig deployDirectory 
> Informazioni: Deploying web application directory 
> /usr/local/apache-tomcat-7.0.42/webapps/host-manager ott 18, 2013
> 6:44:03 PM org.apache.coyote.AbstractProtocol start Informazioni:
> Starting ProtocolHandler ["http-bio-9080"] ott 18, 2013 6:44:03 PM
> org.apache.coyote.AbstractProtocol start Informazioni: Starting
> ProtocolHandler ["ajp-bio-9009"] ott 18, 2013 6:44:03 PM
> org.apache.catalina.startup.Catalina start

Okay, did it fail this time? I see no problems in the above log 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/

iQIcBAEBCAAGBQJSYWheAAoJEBzwKT+lPKRYl0kP/0eCTgo0LjGd0dHqcjktmWvV
il/1XJRyOcSm7vS/6l7m9yIjYzsyHeolXgdH6L3aMLIlab4a7q/x1JPrXee188S4
+ZY8vUH8kjfygpnvxBiFgm3zX/OYbDckYsEhF9EZfFNVPfGAQQBiN03OHZHuOjww
RwfjoGWJXFrSuBIghGMBoVc3tVEXTVR8xfEf/Wkt6RywScILA80brAh6VZ1lukJI
dzspOqrGgtVO+xJw67vOM0XQJyqw++Nz+Q9OeU2sDTyPm+ESV+CppB6w9AYeizvu
bqEwckFn9N8s2CPEhBa3dTUsQyX6BsE8JjUYUb4vl8blJWEPtcm0vxgd1vC1AcxF
JKiaavzMOuehJABWbq9ywPPL7pCUgZlGhT22iAz/0gAIdkJL7AnMfziBh3vMdraW
5b5Jdnyvct9Au4dMHAjhBE11c0zkiG+05fWvOkZ7NE2m4z8JNlvW+MF/AuXJ/GCu
HdNkJAtHeqD34P7dGlQ14vlTk+SWMF3BtJFucDCohVdsLnBlLzcYxq1+ZohWscjY
tOnkz93482Li1c0n1YEsF/9i0i7Rq17D+wCpVZkhrRiVTVP0h2u6yWWcbI/hkTi6
8I8C60sxoszdTq5effIx7woiLw7Li4HHlweOZG5kzvxsw/rvxzOd5p47De2hyA10
/A6MjKs4cw3jeK53jbHU
=4b7F
-----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