ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

ClassNotFoundException jdom

mark99
4 Feb 2012 18:50:03 GMT
4 Feb 2012 18:50:03 GMT

Hi guys, I use jdom library to generate an xml file. But when I click the button, which event generates xml file, I get this error alert: "org/jdom/Content " and in console I get this:

"GRAVE: >>java.lang.NoClassDefFoundError: org/jdom/Content
>>java.lang.ClassNotFoundException: org.jdom.Content
>> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701)
>> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546)
............................................."

I already added the jdom jar in fact in the class where I work with jdom these imports work correctly:

import org.jdom.*;
import org.jdom.output.XMLOutputter;


How can I solve?

hawk
6 Feb 2012 00:52:53 GMT
6 Feb 2012 00:52:53 GMT

Hi,

It's very likely a deployment problem. You must ensure you put jdom's jar file at correct path in your application server.