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

startPlugin error:class not found #260

Closed
zhanghuidouble opened this issue Dec 5, 2018 · 5 comments
Closed

startPlugin error:class not found #260

zhanghuidouble opened this issue Dec 5, 2018 · 5 comments

Comments

@zhanghuidouble
Copy link

when I use pluginManager.loadPlugins();
pluginManager.startPlugins(); in my class but not MainMethod,it run with errors:

java.lang.ClassNotFoundException: com.test.adapters.plugin.PluginComponent
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.pf4j.PluginClassLoader.loadClass(PluginClassLoader.java:126)
	at org.pf4j.DefaultPluginFactory.create(DefaultPluginFactory.java:46)
	at org.pf4j.PluginWrapper.getPlugin(PluginWrapper.java:78)
	at org.pf4j.AbstractPluginManager.startPlugins(AbstractPluginManager.java:326)
@decebals
Copy link
Member

decebals commented Dec 6, 2018

Can you give us more details?
From what I see in the stack trace I suppose that com.test.adapters.plugin.PluginComponent is the plugin class defined in plugin descriptor (MANIFEST.MF or plugin.properties). Is this class exists (correct spell, ...)?

@decebals
Copy link
Member

Any news?

@decebals
Copy link
Member

I will close this issue because of the lack of feedback. Please open it if you want to continue the discussion.

@svarma11
Copy link

svarma11 commented Jul 13, 2019

Hi I am using third party library in the plugin using the maven which is not the part of main appliication
whenever pluging gets loaded it try to use 3rd party library its throwing java.lang.NoClassDefFoundError
basically whenever i am using any 3rd party library it is unable to find those classes if it is not the part of main application

@decebals
Copy link
Member

A stack trace or something similar is welcome

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

3 participants