Plugin NoClassDefFoundError [message #1292153] |
Fri, 11 April 2014 11:12  |
Eclipse User |
|
|
|
Hi, I have a plugin that I've been developing that I import:
import org.jfree.data.general.DefaultPieDataset;
To create a graph, this works fine in Jenkins, but in Hudson I get:
FATAL: org/jfree/data/general/PieDataset
java.lang.NoClassDefFoundError: org/jfree/data/general/PieDataset
at com.me.hudson.plugins.myplugin.Publisher.perform(Publisher.java:138)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:51)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:736)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:714)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$RunnerImpl.post2(Build.java:163)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:652)
at hudson.model.Run.run(Run.java:1474)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)
Caused by: java.lang.ClassNotFoundException: org.jfree.data.general.PieDataset
at org.aspectj.weaver.bcel.ExtensibleURLClassLoader.findClass(ExtensibleURLClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 11 more
So I thought something must be off with the dependencies, commenting out this import and code using it solves the issue, but then I get the same with: hudson.util.Graph;
so now im confused... any ideas? also using 3.1.2 hudson
|
|
|
|
|
|
Re: Plugin NoClassDefFoundError [message #1320306 is a reply to message #1319909] |
Mon, 28 April 2014 14:15  |
Eclipse User |
|
|
|
Hi Michael, hudson.util.Graph is part of the jfreechart-plugin, if you include that plugin as your dependency your plugin should build fine. Do not directly add core as dependency. BTW, if your plugin is somewhere in github I can take a look at it.
Feel free to write to me directly at winston DOT prakash AT gmail
|
|
|
Powered by
FUDForum. Page generated in 0.24190 seconds