[jdom-interest] validation problems using b9-rc1?

Ben Rogers svenjamin at yahoo.com
Fri Apr 11 09:03:06 PDT 2003


I am developing an application (using Websphere App
Developer 5) that relies on XML input files.  I have
been using the b8 code, with the xerces.jar that comes
with b8.  When i read in my input file, I want to
validate it, and when using the b8/xerces combination,
this code works great:
	SAXBuilder builder = new SAXBuilder(true);

Now that I have switched to b9_rc1, i am getting these
exceptions: (or "this" exception, depending on your
point of view).  So the question is this: why do WSAD
and b8 think that all of my xml/xsd files are fine,
but b9 does not?


org.jdom.input.JDOMParseException: Error on line 2 of
document file:/D:/eclipse/workspace/Tool/src/Tool.xml:
Element type "tool:TestRun" is not declared.
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:377)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:724)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:703)
	at
com.ibm.tool.suite.SuiteControler.parseInputFile(SuiteControler.java:154)
	at
com.ibm.tool.suite.SuiteControler.<init>(SuiteControler.java:62)
	at com.ibm.tool.MainClass.runTool(MainClass.java:61)
	at com.ibm.tool.MainClass.main(MainClass.java:49)
Caused by: org.xml.sax.SAXParseException: Element type
"tool:TestRun" is not declared.
	at
org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
	at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1322)
	at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
	at
org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
	at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:370)
	... 6 more
Caused by: org.xml.sax.SAXParseException: Element type
"tool:TestRun" is not declared.
	at
org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
	at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1322)
	at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
	at
org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
	at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:370)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:724)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:703)
	at
com.ibm.tool.suite.SuiteControler.parseInputFile(SuiteControler.java:154)
	at
com.ibm.tool.suite.SuiteControler.<init>(SuiteControler.java:62)
	at com.ibm.tool.MainClass.runTool(MainClass.java:61)
	at com.ibm.tool.MainClass.main(MainClass.java:49)
Caused by: org.xml.sax.SAXParseException: Element type
"tool:TestRun" is not declared.
	at
org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
	at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1322)
	at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
	at
org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
	at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:370)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:724)
	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:703)
	at
com.ibm.tool.suite.SuiteControler.parseInputFile(SuiteControler.java:154)
	at
com.ibm.tool.suite.SuiteControler.<init>(SuiteControler.java:62)
	at com.ibm.tool.MainClass.runTool(MainClass.java:61)
	at com.ibm.tool.MainClass.main(MainClass.java:49)

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com



More information about the jdom-interest mailing list