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

Offen
#505 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Java
Sterne
913
Forks
466
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reproducing the reported Windows setup with JDK 17, Spring Boot 3, and jenkins-client-0.3.8, then trace the missing javax/xml/bind/JAXBException dependency during JenkinsServer bean creation. Done means the application starts successfully with this combination, or the issue documents the supported dependency setup and limitation.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, spring-boot
Bereich
api, backend
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.