Michael,

Thanks for the suggestions. I did end creating the DOMParser directly and
passing it XML11Configuration which immediately caused a very nasty
java.lang.Verify error. This is the kind of error you get when there is a
version mismatch between what something was compiled against and what it is
running against. Xerces in this case.

Someone should smack my hands for trying to switch in Xerces 2.4 into my
Cocoon 2.0 environment which was built against Xerces 2.1.

Anyway, I'm giving Cocoon 2.1 a try, which is based on Xerces 2.4, instead
of trying to rebuild Cocoon 2.0.4. At least my test case is happy with the
Cocoon 2.1 classpath. But I've got a bit of work yet to do to convert my
application over to Cocoon 2.1 before I'll get to see all the moving parts
working.

Cheers,

Bill

-----Original Message-----
From: Michael Rafael Glavassevich [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2003 10:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Accessing PSVI through DOM


Hi Bill,

One possibility is that the version of Xerces loaded in your test case may
be different than the one loaded by Cocoon. Maybe Cocoon is using its own
ClassLoader to load Xerces from some other location than your classpath.
org.apache.xerces.parsers.StandardParserConfiguration was the default
configuration in older versions such as Xerces 2.1.0. Are you using
some version of JDK 1.4? That could be the source of the problem.

or...

Perhaps Cocoon has changed the default parser configuration. The logic
used by Xerces to select a parser configuration is described at
http://xml.apache.org/xerces2-j/faq-xni.html#faq-2. The
org.apache.xerces.xni.parser.XMLParserConfiguration system property takes
precedence over other locations, so if you've set the property it should
instantiate the configuration of your choice (provided that Cocoon doesn't
change this value before it reads yours). Try setting this property to
org.apache.xerces.parsers.XML11Configuration, and then check the actual
configuration created for the DOMParser.

Hope that helps.

-----------------------------
Michael Glavassevich
[EMAIL PROTECTED]
4B Computer Engineering
University of Waterloo

[snip]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to