오늘 톰캣을 구성하다가 다음과 같은 오류가 발생했습니다.
한번 끄적여두면 좋을 것 같아 적어둡니다.
이유: 톰캣 8.5부터는 Connector에 secretRequired를 추가해주어야 함 (보안 이슈인 듯)
해결법: server.xml에 AJP부분에 secretRequired="false" 추가
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector protocol="AJP/1.3"
address="::1"
port="8009"
secretRequired="false"
redirectPort="8443" />
22-Oct-2020 05:20:11.005 SEVERE [main] org.apache.catalina.core.StandardService.startInternal Failed to start connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1102)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
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:1100)
... 12 more
'개발 창고 > Server' 카테고리의 다른 글
[CentOS] 공용폴더를 위한 samba 활용하기 (0) | 2021.03.16 |
---|---|
[CentOS7] crontab 활용하기 (0) | 2021.01.28 |
[서버이야기] 웹서버(WS)와 와스(WAS)서버 (0) | 2020.09.07 |
[CentOS] 관련 링크 (0) | 2020.08.04 |
[CentOS] 압축관련 Util, tar (0) | 2020.08.04 |