• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

안녕하세요 선생님. 오류 관련 질문 드립니다.

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

답변을 작성해보세요.

1

스프링부트가 최신 버전이라면 설정에서 톰캣  버전을 낮출 필요가 없습니다.

영상 아래에 버전업에 따른 변경점 설명이 되어 있습니다. 

그 부분을 안 보신 것 같습니다. 확인해 보시고 다시 해보시면 될 것 같습니다 ^^

zieunu님의 프로필

zieunu

질문자

2021.09.24

선생님 너무 감사합니다. 뭐가 문제인지 계속 머리 싸매고 있었는데.. 제가 주의깊게 안본 탓이었네요! 다시 시도해보니 정상작동 됩니다!