I am writing a plugin and trying to use a class in the plugin jar file.. and
I got the following error..
I searched around and found that there are some problems about classloading.
But I don't understand why it cannot load the class in its own jar..
08/02/19 21:32:27 ERROR digester.Digester: Begin event threw exception
java.lang.ClassNotFoundException: Contact
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
at org.apache.commons.digester.Rule.begin(Rule.java:175)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1453)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
--
View this message in context:
http://www.nabble.com/plugin-and-classloader-question-tp15581138p15581138.html
Sent from the Nutch - User mailing list archive at Nabble.com.