Tomcat SSL인증서 설정시 APR 관련 에러 발생시
- Development/Tools
- 2021. 10. 24.
Tomcat에 SSL인증서를 설정하다 다음과 같은 에러가 날 경우에 대한 조치 방법이다.
org.apache.coyote.AbstractProtocolHandler init
심각: Failed to initialize end point associated with ProtocolHandler [“http-apr-8444”]
java.lang.Exception: Connector attribute SSLCertificateFile must be defined when using SSL with APR
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:468)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:482)
at org.apache.coyote.AbstractProtocolHandler.init(AbstractProtocolHandler.java:354)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:910)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.startup.Catalina.load(Catalina.java:572)
at org.apache.catalina.startup.Catalina.load(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:262)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
2013. 7. 30 오전 11:20:02 org.apache.catalina.core.StandardService initInternal
심각: Failed to initialize connector [Connector[HTTP/1.1-8444]]
org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:912)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.startup.Catalina.load(Catalina.java:572)
at org.apache.catalina.startup.Catalina.load(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:262)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
Caused by: java.lang.Exception: Connector attribute SSLCertificateFile must be defined when using SSL with APR
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:468)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:482)
at org.apache.coyote.AbstractProtocolHandler.init(AbstractProtocolHandler.java:354)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:910)
… 13 more
조치 방법은 간단하다.
$CATALINA_HOME/conf/server.xml 중 다음의 설정을 찾아 주석처리하자.
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
'Development > Tools' 카테고리의 다른 글
VirtualBox 오류 - Kernel driver not installed (rc=-1908)에러 (맥북) (0) | 2022.03.03 |
---|---|
PSD 뷰어 8가지 - 포토샵 없어도 이미지 확인할 수 있어요 (0) | 2022.02.21 |
맥/리눅스에서 반복작업은 crontab으로 (0) | 2022.01.31 |
유튜브 밴스드(Youtube Vanced) - 광고없이 유튜브를 볼 수 있다? (0) | 2022.01.02 |
온라인에서 쉽게 자소서, 블로그 글자수 세기 (0) | 2021.09.27 |
rsync 사용법 (0) | 2021.06.21 |
VI에서 개행 문자(^M) 삭제하기 (0) | 2021.01.03 |
Docker 기반 SonarQube 실행하기 - 정적 분석의 준비 (4) | 2020.12.23 |