jenkinsci / jenkinsci/java-client-api

jdk17 + springboot3 use jenkins-client-0.3.8 create jenkins bean fail. throw java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

Open
#505 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
913
Forks
466
PR merge metrics
No merged PRs in 30d

Description

### Jenkins and plugins versions report

Environment


```text
Paste the output here
```

### What Operating System are you using (both controller, and any agents involved in the problem)?

use windows os system. base jdk17&springboot3 develop

### Reproduction steps

1. import dependency (jdk17 + jenkins-client-0.3.8 + springboot3)
2. inject bean
```
@Bean
public JenkinsServer jenkinsServer() throws URISyntaxException {
return new JenkinsServer(new URI(url), user, token);
}
```
3. run application

### Expected Results

system success running

### Actual Results

Exception in thread "main" java.lang.IllegalStateException: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

### Anything else?

_No response_

### Are you interested in contributing a fix?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.