-
카테고리
-
세부 분야
백엔드
-
해결 여부
미해결
안녕하세요 선생님. 오류 관련 질문 드립니다.
21.09.23 21:28 작성 조회수 190
0
안녕하세요 선생님.
Ex05_JspUse 예제 실습 시부터 발생하는 오류인데, 학습을 따라간 이후 Boot Dashboard 에서 서버를 시작하려고 하면
포트(8081) 가 실행되지 않습니다. 오류 해결하고자 프로젝트 및 프로그램을 모두 지운 후 재설치 등도 해보았으나 해결이 되지 않아 여쭙습니다.
* 참고로 말씀드리면 처음 학습 시 8081 포트가 잘 실행 되었으나 기존 프로젝트 삭제 후 재학습시에는 이와 같은 에러로 웹화면이 뜨지 않습니다.
콘솔창에 보이는 내용은 다음과 같습니다.
[콘솔]
[콘솔내용 전문]
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:183)
The following method did not exist:
'void org.apache.tomcat.util.modeler.Registry.disableRegistry()'
The method's class, org.apache.tomcat.util.modeler.Registry, is available from the following locations:
jar:file:/C:/Users/EUNU/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/8.5.38/485668675de7538c5f08c5050377297c93493b59/tomcat-embed-core-8.5.38.jar!/org/apache/tomcat/util/modeler/Registry.class
The class hierarchy was loaded from the following locations:
org.apache.tomcat.util.modeler.Registry: file:/C:/Users/EUNU/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/8.5.38/485668675de7538c5f08c5050377297c93493b59/tomcat-embed-core-8.5.38.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.apache.tomcat.util.modeler.Registry
답변을 작성해보세요.
1
이재환
지식공유자2021.09.24
스프링부트가 최신 버전이라면 설정에서 톰캣 버전을 낮출 필요가 없습니다.
영상 아래에 버전업에 따른 변경점 설명이 되어 있습니다.
그 부분을 안 보신 것 같습니다. 확인해 보시고 다시 해보시면 될 것 같습니다 ^^
답변 1