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

Dependency is fails to load in Plugin Application #2

Open
MohankumarD opened this issue Feb 14, 2019 · 1 comment
Open

Dependency is fails to load in Plugin Application #2

MohankumarD opened this issue Feb 14, 2019 · 1 comment

Comments

@MohankumarD
Copy link

MohankumarD commented Feb 14, 2019

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
Copy link
Author

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

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