250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Eclipse
- Docker
- maven
- spring
- JavaScript
- MySQL
- MSSQL
- 오픈소스
- Exception
- Thymeleaf
- JDBC
- SpringBoot
- 설정
- git
- Python
- Core Java
- Source
- AJAX
- Spring Boot
- error
- IntelliJ
- oracle
- Tomcat
- Open Source
- STS
- 문서
- PostgreSQL
- ubuntu
- jpa
- myBatis
Archives
- Today
- Total
헤르메스 LIFE
[Exception] java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter 본문
Exception
[Exception] java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
헤르메스의날개 2024. 8. 3. 17:17728x90
개발환경을 업그레이드 하던 중 아래와 같은 오류가 발생하였습니다.
JDK 11 -> JDK 17
Spring Boot 2.7.18 -> Spring Boot 3.2.4
java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
개발환경
Tools : STS 4.22.1.RELEASE
JDK : zulu17.72.19-jdk11.0.23
Framework : Spring Boot 3.2.4 & MyBatis
Database : PostgreSQL 16.3
Build : Maven
Doc : Swagger
Mybatis 버전도 같이 올려줘야 하는군요.
pom.xml (JDK 11 의 경우)
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
pom.xml (JDK 17 의 경우)
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
출처 : https://5g-0.tistory.com/11
[Spring] Userjava.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter 에러, JWT 토큰 생성에러
현재 팀원들과 미니프로젝트를 진행중입니다. 프로젝트는 다음과 같이 진행중입니다. Java 17 Spring Boot 3.2.0 Gradle 기존의 로그인 방식을 JWT에서 토큰을 생성하는 방식으로 바꾸었고 문제가 발생하
5g-0.tistory.com
728x90
'Exception' 카테고리의 다른 글
[Error] Failed to retrieve application JMX service URL (0) | 2024.10.05 |
---|---|
[Exception] No static resource swagger-ui/index.html (0) | 2024.08.03 |
[Exception] Invalid value type for attribute 'factoryBeanObjectType': java.lang.String (0) | 2024.08.03 |
[Exception] No identifier specified for entity (0) | 2024.07.31 |
[Exception] Build failed with an exception (0) | 2024.07.31 |