Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- 재귀함수 예제
- 최대공약수 예제
- katalon 비교
- 홈택스 해외주식 양도세
- 한국투자증권 양도세 신고
- 한국투자증권 해외주식 양도세
- Katalon Recorder 사용법
- git 연동
- tomcat log
- CSTS 폭포수 모델
- 피보나치함수
- 피보나치함수 예제
- java.sql.SQLSyntaxErrorException
- 피보나치 예제
- oracle group by
- 테스트 자동화
- js 자동완성
- 주식 양도세 신고방법
- 재귀 예제
- 해외주식 양도세 신고
- katalon xpath
- katalon 자동화
- javascript 자동완성
- 국세청 해외주식 양도세 신고방식
- 해외증권 양도세 한국투자증권
- recursion example
- katalon 사용법
- katalon
- bfs 미로탐색 java
- 톰캣 실시간 로그
Archives
- Today
- Total
엄지월드
Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer 본문
java/Spring
Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
킨글 2024. 1. 21. 15:28아래와 같이 에러가 났다.
Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.dodrambio.web.WebApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:184)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:319)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:236)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at com.dodrambio.web.WebApplication.main(WebApplication.java:18)
Caused by: java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:164)
at org.springframework.context.annotation.ConfigurationClassParser.retrieveBeanMethodMetadata(ConfigurationClassParser.java:395)
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:320)
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:202)
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170)
... 12 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.web.servlet.support.SpringBootServletInitializer] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:481)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:455)
at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:153)
... 17 common frames omitted
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethods(Class.java:1975)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:463)
... 19 common frames omitted
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContext
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 23 common frames omitted
찾아보니, SpringBoot인데 tomcat 관련 의존성을 추가해줘서 그렇다고 한다.
그래서 tomcat 관련된 부분을 제거해준 후에 다시 실행하니 해당 에러는 없어졌다.
'java > Spring' 카테고리의 다른 글
템플릿 콜백 패턴 (0) | 2024.04.23 |
---|---|
스프링 구조 (2) | 2024.04.21 |
[intellij] hop swap 수동 적용 (community) (2) | 2023.12.02 |
java.sql.SQLSyntaxErrorException: ORA-00900: SQL 문이 부적합합니다 (0) | 2023.07.29 |
SpringBoot Bean 주입 에러(@ComponentScan) (0) | 2023.07.26 |
Comments