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 | 31 |
Tags
- db admin
- 스프링
- 마리아DB
- 마이바티스
- 버전
- 캐릭터셋
- mybatis
- 루팅
- dbeaver
- 일정계획
- Spring
- ResponseBody
- 윈도우
- jsonview
- AOP
- cutomobjectmapper
- SVN
- 이클립스
- 제어역전
- ㅗ르
- 생략
- 리눅스
- Version
- git
- Eclipse
- marketplace
- 설정파일
- 의존성주입
- NoClassDefFoundError
- 긴문자열
Archives
- Today
- Total
프밍일기
이클립스에서 Spring 프로젝트 생성후 NoClassDefFoundError 본문
■ 이클립스로 Spring 프로젝트 생성후 간단한 프로그램 작성후에 실행시키면 아래와 같은 예외 발생
Failed to instantiate SLF4J LoggerFactory
Reported exception:
java.lang.NoClassDefFoundError: org/apache/log4j/Level
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
............
처음 spring 프로젝트를 생성하면 메이븐 설정파일인 settings.xml 파일 경로가 다음과 같다.
C:\Users\사용자\.m2\settings.xml
저런 경로나 파일이 없기때문에 JDK 기본 라이브러리가 아닌 외부 라이브러리를 참조할때 예외가 발생하는것 같다.
아래와 같이 settings.xml 파일을 생성하여 repository 경로를 설정하고 Maven Update를 실행하면 정상적으로 실행된다.
<settings>
<localRepository>E:\30.Dev\J2EE\project\maven_neon\repository</localRepository>
</settings>
Comments