반응형
250x250
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
- VPN
- Airflow
- 도커
- chart.js
- SQL
- Spring Error
- JavaScript
- Flux
- kubeflow
- node
- chartjs
- aws cicd
- docker
- or some instances in your deployment group are experiencing problems.
- bootstrap
- Kafka
- PostgreSQL
- COALESCE
- java bigdecimal
- Jenkins
- Spring
- codepipeline
- Python
- AWS CI/CD 구축하기
- codedeploy error
- IntelliJ
- codedeploy
- codebuild
- redis
- aws
Archives
- Today
- Total
Small Asteroid Blog
[spring error] Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError 본문
백엔드/Spring
[spring error] Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError
작은소행성☄️ 2022. 3. 8. 15:31728x90
NoClassDefFoundError 에러는 컴파일 시점에 존재했던 클래스가 런타임에 존재하지 않으면 발생하는 에러이다.
즉 JVM 이 내부의 클래스 데이터 구조에서 class를 찾지 못했다는 것을 말한다.
나의 경우 의존하는 라이브러리의 버전이 서로 맞지 않아 발생한 오류로
build.gradle 에 아래 코드를 추가해 주었더니 해결되었다.
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
나와 같은 방법으로 해결되지 않았다면 라이브러리 버전을 확인하거나 아래 내용을 참고해봐도 좋을 것 같다.
참고
https://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java
Why am I getting a NoClassDefFoundError in Java?
I am getting a NoClassDefFoundError when I run my Java application. What is typically the cause of this?
stackoverflow.com
728x90
반응형
'백엔드 > Spring' 카테고리의 다른 글
[spring] HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=45s216ms). (0) | 2022.03.17 |
---|---|
[Bootstrap5] me-auto 의미 (0) | 2022.03.10 |
[spring] chromedriver 사용 시 Checking your browser before accessing URL (0) | 2022.01.12 |
Whitelabel Error Page (0) | 2021.12.27 |
[spring error]org.hibernate.service.spi.ServiceException (0) | 2021.12.20 |