I am trying to learn the basics of creating a plugin for spark. Right now I am simply trying to get the example plugin from the spark dev kit to work, but am running into problems. I am able to compile the plugin using ant and it creates a jar file, but when i copy the jar file to the plugins directory of my spark client (windows) i get the following error in the client log file…
Apr 14, 2008 7:53:40 PM org.jivesoftware.spark.util.log.Log error
SEVERE: Unable to load plugin org.jivesoftware.spark.plugins.myplugin.addButton.
java.lang.ClassNotFoundException: org.jivesoftware.spark.plugins.myplugin.addButton
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.jivesoftware.spark.PluginManager.loadPublicPlugin(PluginManager.java:266)
at org.jivesoftware.spark.PluginManager.loadPublicPlugins(PluginManager.java:532)
at org.jivesoftware.spark.PluginManager.loadPlugins(PluginManager.java:170)
at org.jivesoftware.spark.Workspace$4.run(Workspace.java:257)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Based on what i have read; i think this has something to do with my plugin.xml file class declaration and the directory structure to my source java file, but am at a loss. Any help would be greatly appreciated.
Jon