[jdom-interest] NoSuchMethodError, even after changing classpath
Rasmussen, John
John.Rasmussen at FMR.COM
Thu Apr 11 13:17:21 PDT 2002
I can't seem to get around this error
I read the FAQ, and modified my classpath so the jdom xerces is first
classpath=C:\jdom\jdom-b8\lib\xerces.jar;C:\Program Files\Apache Tomcat
4.0\lib\
xalan.jar;C:\jdom\jdom-b8\build\jdom.jar;C:\jdom\jdom-b8\build\jdom-jdk11.ja
r;.
I'm using Tomcat 4.0, and copied the jdom xerces to the tomcat / common /
lib
But I can't get past this problem, here's my code :
System.out.println("Building Device Table");
org.jdom.input.SAXBuilder builder = new SAXBuilder();
org.jdom.Document document =
builder.build("C:/vobs_mcp/wwwroot/com/fmr/mcp/WEB-INF/xml/deviceConfigurati
on.xml");
System.out.println("doc built");
org.jdom.Element root = document.getRootElement();
List allElements =
root.getChildren("deviceConfiguration"); <--- Offending Line,
also tried getChildren()
XMLOutputter outptr = new XMLOutputter(" ",
true);
outptr.output(document, System.out);
Here's the console :
Building Device Table
doc built
java.lang.NoSuchMethodError
Any ideas
Thanks !
John
More information about the jdom-interest
mailing list