stackoverflow 에러(annotations for web application [/api] due to a StackOverflowError)

2021. 7. 21. 10:18Spring

Tomcat run 시 발생하는 에러

Caused by: java.lang.IllegalStateException: Unable to complete the scan for 
annotations for web application [/api] due to a StackOverflowError.

 

해결방법


톰캣 시작시 bcprov*.jar 파일들 스킵

1. tomcat catalina.properties 파일 열기

2.tomcat 폴더에 org.apache.catalina.startup.ContextConfig.jarsToSkip=bcprov*.jar 추가

 

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\
annotations-api.jar,\
-----------생략-----------
xmlParserAPIs.jar,\
xom-*.jar,\
-----------추가-----------
bcprov*.jar

 

참조 : https://stackoverflow.com/questions/29955410/how-do-i-fix-stackoverflowerror-in-org-apache-catalina-startup-contextconfig-pop