Hi there,
I have built the latest and greatest and suddenly get the
following exception
everytime a ServerPageGenerator gets used by a
pipeline:
org.apache.cocoon.ProcessingException: SAX2 driver class
org.apache.xerces.parsers.SAXParser does not implement XMLReader:
java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration
at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:209) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202) I was able to track doen the following:
org.xml.sax.helpers.XMLReader.createXMLReader(String
className)
throws a ClassCastException when executing:
(XMLReader)(Class.forName(className).newInstance());
className seems to
be: "org.apache.xerces.parser.SAXParser", which implements
XMLReader
but the actual class that eventually causes the problem
seems to be an org.apache.xerces.parsers.StandardParserConfiguration, which does
NOT implement XMLReader
???
Looks also as if there are 2 property files
involved:
org.xml.sax.driver contains
"org.apache.xerces.parser.SAXParser"
and org.apache.xerces.xni.parser.XMLParserConfiguration =
"org.apache.xerces.parsers.StandardParserConfiguration"
Does anybody have a clue about what's going on
here?
Thanks for any comments,
Horst
|
- RE: XML Reader giving problems Horst Rutter
- RE: XML Reader giving problems Vadim Gritsenko
- Re: XML Reader giving problems Horst Rutter
- RE: XML Reader giving problems Vadim Gritsenko
- Re: XML Reader giving problems Horst Rutter
- RE: XML Reader giving problems Vadim Gritsenko
- RE: XML Reader giving problems Liam Morley