0. 실행환경
VMware Workstation 16
CentOS 7 minimal
apache tomcat 8.5.43
Spring 프로젝트 .WAR 파일
1. 에러 내용
04-Feb-2022 17:06:57.222 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
04-Feb-2022 17:06:57.224 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
04-Feb-2022 17:06:57.295 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8081"]
04-Feb-2022 17:06:57.301 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8083"]
04-Feb-2022 17:06:57.303 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 42825 ms
톰캣/logs/catalina.out 확인하면 위와 같았음
2. 대응
1) .WAR 파일의 권한 문제인가 싶어서 다시 설정하고 startup 해도 안됨
2) 프로젝트의 자바 설정과 서버에서의 자바 버전이 안맞나 확인했는데, 버전 잘 맞았음...
3) 에러는 났는데 톰캣은 돌고 있어서, 방화벽 설정하고 브라우저에서 접속해보니까 404 페이지만 뜸
(방화벽 설정)
iptables -I INPUT -p tcp --dport 8081 -j ACCEPT
iptables-save > /etc/sysconfig/iptables
4) 한참을 헤맸는데 원인은 그거였음
VMware에서 돌아가는 OS의 Memory 설정을 기본 1GB에서 2GB로 수정

=====> 서버 재시작하고 startup 다시 하니까 잘 돌아감..... ㅠㅠ;
'웹 공부' 카테고리의 다른 글
[Kendo ui] DropDownList에 Json 넣기 에러 해결 (0) | 2022.01.19 |
---|---|
kendo Ui 공부중... (0) | 2022.01.19 |