Skip to content

ClassNotFoundException for plugin class, loading a spring boot executable jar #10

@fabioformosa

Description

@fabioformosa

I'm testing the deployment runtime-mode.
Main App finds plugin jar that I put in plugins folder, but it fails when it tries to switch plugin state from RESOLVED to STARTED because:

java.lang.ClassNotFoundException: com.example.MyPlugin

I put the spring boot fat jar, built by spring-boot-maven-plugin that creates the following structure into the jar:

  • BOOT-INF
    -> classes -> com.example.MyPlugin and all others
    -> libs -> all jar dependencies
  • META-INF
  • org/springframework/boot/loader/...

Managing plugins with the shape of spring boot application, is SBP library aware to search classes under BOOT-INF folder?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions