[jdom-interest] JDOM8,XERCES2.3,TOMCAT4.0 Schema Validation -
Class Cast Exceptio n Unkown Source Error
Laurent Bihanic
laurent.bihanic at atosorigin.com
Wed Apr 16 05:06:57 PDT 2003
Hi,
Xerces 2.3.0 is broken regarding the support of the Xerces-specific schema
validation properties (See bug #16528 at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16528). This is what causes
the error.
To work around this bug, you should stick to Xerces 2.2.1 or switch to 2.4.0
which is said to fix the problem.
Laurent
Bajaj, Shailesh wrote:
> I wanted to do schema validation. My XML document would be in the form of an
> String.
> It works fine when I wun standalone but fails on tomcat.
> I am getting Class Cast Exception
> Caused by: java.lang.ClassCastException
> at org.apache.xerces.impl.xs.XMLSchemaValidator.reset(Unknown
> Source)
> at org.apache.xerces.parsers.BasicParserConfiguration.reset(Unknown
> Source)
> at org.apache.xerces.parsers.DTDConfiguration.reset(Unknown Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:354)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:740)
> at
> com.wpp_ai.biz.bizsvc.SchemaValidator.entitySchemaValidate(SchemaValidator.j
> ava:138)
>
> Has anybody come across something like this earlier. TIA
More information about the jdom-interest
mailing list