I am always using the endorsed arguments -Djava.endorsed.dirs to be sure I get the right xerces.
Maybe this helps,

DicK Deneer

Op 5-dec-2006, om 23:49 heeft ptomsic het volgende geschreven:


this problem seems to occur only when i use JDK1.4.
i have the following system properties set, which i thought would make this
go away, but unfortunately not...

        System.setProperty("org.xml.sax.driver",
"org.apache.xerces.parsers.SAXParser");
        System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
        System.setProperty("javax.xml.transform.TransformerFactory",
"org.apache.xalan.processor.TransformerFactoryImpl");
        System.setProperty("javax.xml.parsers.SAXParserFactory",
"org.apache.xerces.jaxp.SAXParserFactoryImpl");


System.setProperty("javax.xml.validation.SchemaFactory:http:// www.w3.org/2001/XMLSchema",
                "org.apache.xerces.jaxp.validation.XMLSchemaFactory");


any recommendation on making that issue go away?
the exact error i'm getting is:

java.lang.NoSuchMethodError:
org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Lorg/apache/ xerces/xni/parser/XMLInputSource;)V

using xerces, v.2.8.1



Michael Glavassevich wrote:

Paul Tomsic <[EMAIL PROTECTED]> wrote on 10/03/2006 04:21:27 PM:

v.2.8.1, trying to validate schemas on XML files.

not sure where to start tracking down this issue?

I've never seen this happen before.

any help appreciated

There isn't much to go on here. It's more likely someone will be able to help you if you provide more information: stack traces, environment, code,
etc...

thanks


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

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]




--
View this message in context: http://www.nabble.com/no-such-method- XMLSchemaLoader.loadGrammar%28XMLInputSource%29--- tf2378514.html#a7709952
Sent from the Xerces - J - Users mailing list archive at Nabble.com.


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




Reply via email to