You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Paul Tomsic <pt...@yahoo.com> on 2006/10/03 22:21:27 UTC
no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?
v.2.8.1, trying to validate schemas on XML files.
not sure where to start tracking down this issue?
any help appreciated
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?
Posted by Dick Deneer <di...@donkeydevelopment.com>.
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 <pt...@yahoo.com> 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: j-users-unsubscribe@xerces.apache.org
>>> For additional commands, e-mail: j-users-help@xerces.apache.org
>>
>> Michael Glavassevich
>> XML Parser Development
>> IBM Toronto Lab
>> E-mail: mrglavas@ca.ibm.com
>> E-mail: mrglavas@apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
>> For additional commands, e-mail: j-users-help@xerces.apache.org
>>
>>
>>
>
> --
> 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: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
>
>
>
Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
You're probably picking up an incompatible mix of classes from Xerces
2.8.1 and some old version of Xerces (something prior to 2.7.0) which is
somewhere on your classpath or perhaps in the endorsed directory of your
JDK 1.4 installation.
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
ptomsic <pt...@gmail.com> wrote on 12/05/2006 05:49:14 PM:
> 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 <pt...@yahoo.com> 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: j-users-unsubscribe@xerces.apache.org
> >> For additional commands, e-mail: j-users-help@xerces.apache.org
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> > For additional commands, e-mail: j-users-help@xerces.apache.org
> >
> >
> >
>
> --
> 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: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?
Posted by ke...@us.ibm.com.
Probably the usual problem:
http://xerces.apache.org/xerces2-j/faq-general.html#faq-4
______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
-- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
(http://www.ovff.org/pegasus/songs/threes-rev-11.html)
Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?
Posted by ptomsic <pt...@gmail.com>.
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 <pt...@yahoo.com> 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: j-users-unsubscribe@xerces.apache.org
>> For additional commands, e-mail: j-users-help@xerces.apache.org
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
>
>
>
--
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: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Paul Tomsic <pt...@yahoo.com> 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: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org