Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error is reported when running a plugin in a Spring Boot project and introducing additional Spring dependencies into the plugin #86

Open
Aboudkingto opened this issue Nov 23, 2024 · 0 comments

Comments

@Aboudkingto
Copy link

I'm using a SpringBoot main project, introducing Spring Security dependencies into my plugin project, I package it into the jar when packing, and use the plugin in the main project, but running SpringBoot gives an error, the following is the error content.
java.lang.LinkageError: loader constraint violation for class org.stardye.plugins.devise.security.SercurityPlugin: when selecting overriding method 'org.springframework.context.ApplicationContext org.stardye.plugins.devise.security.SercurityPlugin.createApplicationContext()' the class loader org.pf4j.PluginClassLoader @73844119 of the selected method's type org.stardye.plugins.devise.security.SercurityPlugin, and the class loader 'app' for its super type org.pf4j.spring.SpringPlugin have different Class objects for the type org.springframework.context.ApplicationContext used in the signature (org.stardye.plugins.devise.security.SercurityPlugin is in unnamed module of loader org.pf4j.PluginClassLoader @73844119, parent loader 'app'; org.pf4j.spring.SpringPlugin is in unnamed module of loader 'app')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant