Skip to content

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

@origin-meta

Description

@origin-meta

Jenkins and plugins versions report

Environment
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions