일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 삭제
- Exception
- Drawer
- Cluster
- dataSource
- Query
- googlemap
- 색상 변경
- mybatis
- 아이튠즈
- backspace
- 단축키
- api19
- KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED
- delete button
- beanCreationException
- KVO
- DELETE
- Detect
- 실행
- mysql
- 삭제버튼
- itunes
- command not found
- color
- bash
- IPA
- sqlSession
- UITextField
- NoClassDefFoundError
- Today
- Total
BlueAroma
[ERROR] BeanCreationException 과 NoClassDefFoundError 본문
[ERROR] org.springframework.beans.factory.BeanCreationException
에러.
첫 서버 공부 중
context-datasource.xml / context-mapper.xml
sample_SQL.xml
만들어 서버를 실행시키려 하니 익셉션의 발생.
Property 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError
org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'sqlSession' defined
이 발생하였다. 아주 초보적인 실수인데 초보라.. ( :ㅁ )
엄청 해맸다는 것만 이야기하고 ㅎㅎ
결론은 프레임워크 선언이 빠져있었다.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${org.springframework-version}</version>
</dependency>
데이터베이스와의 연결을 지원하는 spring-jdbc 와 beans 생성에 필요한 spring-beans 를
pom.xml 에 추가하면
에러가 해결된다.
'내맘대로 프로그래밍 > Server' 카테고리의 다른 글
[Error] mysql 실행 시 -bash: mysql: command not found 에러 (2) | 2018.01.23 |
---|