Re: [xerces-J] Getting Validation errors with JAXP API.

2008-11-09 Thread Michael Glavassevich
Hi Sagara, The bug in the Sun JDK I was referring to is in SchemaFactory's processing of META-INF/services files. It's expecting a different format than what is supposed to be in such files so is incapable of loading implementations on the classpath which contain correctly formatted META-INF/serv

Re: [xerces-J] Getting Validation errors with JAXP API.

2008-11-09 Thread Sagara Gunathunga
Hi Michael, Thanks for your help , now it works ! .. any way i also have noticed com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl and com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl classes were loaded instead of Apache Xerces implementation. Still i couldn'

Re: [xerces-J] Getting Validation errors with JAXP API.

2008-11-09 Thread Michael Glavassevich
Hi Sagara, Those are DTD validation errors and you're probably getting them because you're calling setValidating() [1] on the DocumentBuilderFactory. Don't set this to true. DocumentBuilderFactory.setSchema() [2] supports a completely different and independent validation mechanism. setValidating(

Re: [xerces-J] Getting Validation errors with JAXP API.

2008-11-09 Thread Michael Glavassevich
Hi Sagara, I see two issues. The first Mukul already pointed out. "http://www.w3.org/ns/wsdl";, "http://www.w3.org/ns/wsdl-extensions"; and "http://www.w3.org/2001/XMLSchema"; are not schema documents. I suppose these are the target namespaces of the other documents you have in the list. They jus

Re: [xerces-J] Getting Validation errors with JAXP API.

2008-11-09 Thread Sagara Gunathunga
Hi Mukul , Your guess is correct , once i remove those invalid Schema references it does not give any exception , thanks for your help . Also when i add invalid entry to the documents it shows the validation Errors ,but for all the documents ( valid WSDL ) validator shows following two error messa

Re: [xerces-J] Getting Validation errors with JAXP API.

2008-11-09 Thread Mukul Gandhi
Just trying to make my best guess to the cause of this. Please read my answer below ... On Sun, Nov 9, 2008 at 9:04 PM, Sagara Gunathunga <[EMAIL PROTECTED]> wrote: > Vector schemas = new Vector(); > > schemas.add("http://www.w3.org/ns/wsdl "); > > schemas.add("