Jenkins 2.401.3 upgrade

Hi All, We have created new jenkins server with version 2.401.3 and migrated jobs from old jenkin to new jenkins and in new jenkins the developer is facing this error message while running build which was not visible in old jenkins , is this due to any dependency missing ,Please tell me

Error message :-java.util.MissingResourceException: Can't find bundle for base name javax.xml.bind.Messages, locale en_US


at java.base/java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:2055)

at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1689)

at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1593)

at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1556)

at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:857)```

Hello @Prafful and welcome to this community. :wave:

The error message you’re seeing seems related to the javax.xml.bind package, part of Java’s JAXB API.
This API was included in Java SE until Java 8 but was removed in Java 11.
If your new Jenkins server is running on Java 11 or later, this could cause the error.

To resolve this issue, you may add the JAXB API as a dependency to your Jenkins job. :person_shrugging:
If your job is a Maven project, you could add the following dependencies to your pom.xml file:

<dependencies>
    <!-- JAXB API -->
    <dependency>
        <groupId>jakarta.xml.bind</groupId>
        <artifactId>jakarta.xml.bind-api</artifactId>
        <version>2.3.3</version>
    </dependency>
    <!-- JAXB Runtime -->
    <dependency>
        <groupId>org.glassfish.jaxb</groupId>
        <artifactId>jaxb-runtime</artifactId>
        <version>2.3.3</version>
    </dependency>
</dependencies>
1 Like