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

Aperta
#505 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Java
Stelle
913
Fork
466
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.