Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?

2006-12-05 Thread keshlam
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) ?

2006-12-05 Thread Michael Glavassevich
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: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

ptomsic <[EMAIL PROTECTED]> 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 <[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]

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



Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?

2006-12-05 Thread Dick Deneer
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]







Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?

2006-12-05 Thread ptomsic

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]



Re: no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?

2006-10-05 Thread Michael Glavassevich
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]



no such method XMLSchemaLoader.loadGrammar(XMLInputSource) ?

2006-10-03 Thread Paul Tomsic
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]