ERROR


java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener


Ecelipse / Maven 환경에서 Dependency가 정상적인 상황에서 위와 같이 ClassNotFoundException 발생할 경우.


Deployment Assembly 환경 설정에서 Maven Dependencies를 추가해준다.


프로젝트 우클릭 > properties >Deployment Assembly 에서 추가





[출처] http://wesoulmate.tistory.com/entry/MavenEclipse-javalangClassNotFoundException-orgspringframeworkwebcontextContextLoaderListener



Solution for Eclipse Luna


1. Right Click on maven web project


2. Click 'Properties'menu


3. Select 'Deployment Assembly' in left side of the popped window


4. Click 'Add...' Button in right side of the popped up window


5. Now appear one more popup window(New Assembly Directivies)


6. Click 'Java Build path entries'


7. Click 'Next' Button


8. Click 'Finish' Button, now atomatically close New Assemby Directivies popup window


9. Now click 'Apply' Button and Ok Button


10. Run your webapplication


[출처] http://stackoverflow.com/questions/6210757/java-lang-classnotfoundexception-org-springframework-web-context-contextloaderl




위에 작업 후 Servers 탭의 프로젝트 해당 서버에 오른쪽 클릭하여 'Clean' 메뉴 선택 처리 후 'Clean Tomcat Work Directory...' 메뉴 선택 한 후

서버 스타트 한다.


+ Recent posts