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