Skip to content

function-sample-azure-web fails at runtime with Spring Boot 4.0.0 due to incompatible Spring Cloud Function dependencies #1324

@purohitdeep

Description

@purohitdeep

Describe the bug

function-sample-azure-web

The application fails during initialization with a runtime exception (e.g. NoClassDefFoundError related to Spring Boot internals such as DefaultBootstrapContext).

Dependency inspection shows incompatible major versions being pulled in simultaneously:

  • Spring Boot 4 APIs being used with Spring Cloud Function code built for Boot 3.x
  • Mixed Jackson 2.x and Jackson 3.x artifacts on the classpath

The sample should either:

  • Use Spring Boot 3.x with a compatible Spring Cloud Function 4.x release
    OR
  • Be updated to a Spring Cloud Function version compatible with Spring Boot 4

Sample

  1. Navigate to sample: spring-cloud-function-samples/function-sample-azure-web
  2. ./mvnw azure-functions:run
  3. curl -X GET http://localhost:7072/api/AzureWebAdapter/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions