On 13.02.2020 10:13, kohmoto wrote:
Hi,

I have install Tomcat 8.5.51 today and found something wrong.

I have been using tomcat for last 5 years and never met this kind of problem.

It would be appreciated if I could be advised.

Thank you.

System:
CentOS 7.7.1908
httpd 2.4.41 (community version)
   httpd.conf:
     (LoadModule proxy_ajp_module lib64/httpd/modules/mod_proxy_ajp.so)
   httpd-proxy.conf:
     <Location /manager/>
           ProxyPass ajp://localhost:8009/manager/
     </Location>
tomcat 8.5.*

error log-----------
13-Feb-2020 17:13:12.523 重大 [main] org.apache.catalina.core.StandardService.startInternal Failed to start connector [Connector[AJP/1.3-8009]]         org.apache.catalina.LifecycleException: プロトコルハンドラの起動に失敗しました ( 'fail to start protocolhandler' in English )                 at org.apache.catalina.connector.Connector.startInternal(Connector.java:1057)
                 at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:440)
                 at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:766)
                 at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                 at 
org.apache.catalina.startup.Catalina.start(Catalina.java:688)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                 at java.base/java.lang.reflect.Method.invoke(Method.java:567)
                 at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
                 at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
        Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid.                 at org.apache.coyote.ajp.AbstractAjpProtocol.start(AbstractAjpProtocol.java:274)                 at org.apache.catalina.connector.Connector.startInternal(Connector.java:1055)
                 ... 12 more


Hi.
The log message above :

Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid.

seems pretty clear.

Check in the file (tomcat_dir)/conf/server.xml, the Connector :

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

and the associated on-line documentation :

http://tomcat.apache.org/tomcat-8.5-doc/config/ajp.html

search for "secretRequired".


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

Reply via email to