Mukul Gandhi <gandhi.mu...@gmail.com> wrote on 06/23/2009 11:30:31 PM:

> Hi David,
>
> On Wed, Jun 24, 2009 at 6:35 AM, govelogo<govel...@gmail.com> wrote:
> > But I got this error,
> > error: Parse error occurred -
> > com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl
> > java.lang.ClassCastException:
> > com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl
> >         at TypeInfoWriter.main(TypeInfoWriter.java:558)
>
> It seems, you have hit a classpath issue. Your application seems to be
> using the JAXP implementation available in Sun JDK. You may try
> setting a system property to use Xerces-J JAXP SchemaFactory.
> Something like below:
>
> System.setProperty("javax.xml.validation.SchemaFactory:http://www.
>
w3.org/2001/XMLSchema","org.apache.xerces.jaxp.validation.XMLSchemaFactory");

>
> Michael, might be able to provide a more correct answer :)

There's a bug [1] in some JDK versions which would cause this. You can also
resolve it by putting the xml-apis.jar from Xerces in the JDK's endorsed
directory.

> --
> Regards,
> Mukul Gandhi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org

[1] http://markmail.org/message/rvlroblxyza3xt3v

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Reply via email to