pf4j-spring-tutorial icon indicating copy to clipboard operation
pf4j-spring-tutorial copied to clipboard

Dependency is fails to load in Plugin Application

Open MohankumarD opened this issue 7 years ago • 1 comments

Successfully we can load external Spring Boot JAR as a plugin in the main Spring Boot application. But plugin jar its fails to load its dependency (not able to load dependency(external Jar here I am using simple-json of plugin application). Deployment as JAR plugin.

Also added dependency in assambly.xml file

           <includes>
                <include>org.pf4j:*</include>
                <include>com.googlecode.json-simple:*</include>
            </includes>

java.lang.NoClassDefFoundError: org/json/simple/JSONObject at com.qruizemagic.springplugin.PluginController.greetMVC(PluginController.java:22) ~[na:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_91] at org.springframework.web.reactive.result.method.InvocableHandlerMethod.lambda$invoke$0(InvocableHandlerMethod.java:139) ~[spring-webflux-5.1.3.RELEASE.jar!/:5.1.3.RELEASE]

MohankumarD avatar Feb 14 '19 10:02 MohankumarD

When I use plugin application as ZIP file, its working fine. Help me on JAR

MohankumarD avatar Feb 15 '19 09:02 MohankumarD