Skip to content

Inconsistency in spring-boot-starter-jersey #15365

Closed
@raphw

Description

@raphw

A simple project with the single dependency

<dependencies>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jersey</artifactId>
    <version>2.1.1.RELEASE</version>
  </dependency>
</dependencies>

with

@SpringBootApplication
public class SampleApp {
    public static void main(String[] args) {
        SpringApplication.run(SampleApp.class);
    }
}

will fail to start with the error:

java.lang.NoSuchMethodError: org.springframework.aop.framework.AopProxyUtils.getSingletonTarget(Ljava/lang/Object;)Ljava/lang/Object;

It seems like the Jersey dependency is dragging ing Spring 4 via the HK2 bridge what causes an inconsistency with Spring Boot that is using Spring 5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions