Skip to content

NoClassDefFoundError: commons-io/IOUtils at startup #394

@manolo

Description

@manolo

Description of the bug

The application fails at startup with NoClassDefFoundError: org/apache/commons/io/IOUtils because the exampledata dependency has commons-io excluded in pom.xml, but exampledata (via FileCache) requires it at runtime.

This was previously provided transitively, but with Spring Boot 4.x it no longer arrives transitively.

The same issue was fixed in ce-demo (vaadin/ce-demo#154, vaadin/ce-demo#155) by removing the commons-io exclusion.

Expected behavior

The application should start without NoClassDefFoundError.

Fix

Remove the <exclusions> block for commons-io from the exampledata dependency in pom.xml.

Versions

  • Vaadin: 25.0.5
  • Spring Boot: 4.0.x

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