"Bernd Kolb \([EMAIL PROTECTED])" <[EMAIL PROTECTED]> wrote on 01/09/2007 09:17:22 AM:
> Hm. I have noticed something strange. > > When I am running the code with Sun JDK 1.5_6 everything works nicely. > When switching to JDK 1.4.2_13 I am getting this error. > > org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of > element 'log'. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > at > org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown > Source) > at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown > Source) > at > org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown > Source) > at > org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown > Source) > at > org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown > Source) > at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown > Source) > at javax.xml.validation.Validator.validate(Unknown Source) > at XMLValidation.<init>(XMLValidation.java:52) > at XMLValidation.main(XMLValidation.java:23) > Exception in thread "main" > > In case of jdk 1.5 xerces is part of the jdk, right? Not exactly. It's Sun's two to three year old fork off the Xerces codebase. It has bugs which are unique to it and others which have long been fixed in Apache. > So normally I should be able to just add xml-apis.jar and > xercesImpl.jar to the classpath when using 1.4 and it should work, shouldn't > it???? Adding xml-apis.jar to the classpath doesn't work. You need to use the Endorsed Standards Override Mechanism [1][2]. > I am a bit confuesd.... > > > Best reagards > > Bernd Kolb [1] http://xerces.apache.org/xerces2-j/faq-general.html#faq-4 [2] http://java.sun.com/j2se/1.4.2/docs/guide/standards/ Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]