Skip to content

Fails to run with Java 17 Spring Boot 3  #450

Description

@milindsingh

Describe the bug
With Spring Boot 3 javax.* is replaced with jakarta.* resulting in unit test failure due to dependency conflict in project and sdk.
Error: NoClassDefFound javax/xml/bind/annotation/XmlElement

To Reproduce
Run the below code in project:

  objectMapper.findAndRegisterModules();
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    objectMapper.readValue(data, tClass);

Expected behavior
SDK should use the latest jakarta dependencies.

Screenshots/Code snippet
Error: NoClassDefFound javax/xml/bind/annotation/XmlElement

Stack information (please complete the following information):

  • Java: 17
  • SDK: 14.3 latest

Additional context
NA

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions