심각: 이름이 []인 컨텍스트를 시작하는 중 예외 발생
org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]을(를) 시작하지 못했습니다.
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3752)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:297)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5531)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1385)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1385)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1353)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/mail/Email
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:137)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:69)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:781)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5053)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 8 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.mail.Email
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
... 21 more
이클립스에서 메이븐사용중 java 파일을 수정하면 계속 나오는 에러메시지
구글에 다 뒤져보고 처음엔 dependency jar파일 설정이 꼬여서 그런줄 알고
exclusions 설정 하고 별짓을 다했는데 다 뻘짓
톰캣의 Server Options 에 있는
serve moudles without publishing 체크 때문이었는데
이 옵션을 체크하면 변동사항이 반영되지 않아 생기는 문제
https://www.reimaginer.me/entry/tomcat-options-Serve-modules-without-publishing-%EC%9D%B4%EB%9E%80
'개발 > maven' 카테고리의 다른 글
jar를 가져올 수 있는 메이븐 저장소 (0) | 2022.01.12 |
---|---|
Dependency 중복 jar 정리 (의존성 해제) (0) | 2021.12.16 |
git에서 가져온 메이븐프로젝트 pom.xml 알수없는에러 (0) | 2021.12.02 |
댓글