[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-user
Subject:    Re: If an element is a simple or array element
From:       Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date:       2009-06-29 3:09:37
Message-ID: OF5331D100.C9CEA2DA-ON852575E4.0010F4AD-852575E4.00116426 () ca ! ibm ! com
[Download RAW message or body]

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

> Hi David,
>
> On Wed, Jun 24, 2009 at 6:35 AM, govelogo<govelogo@gmail.com> wrote:
> > But I got this error,
> > error: Parse error occurred -
> > com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandler=
Impl
> > java.lang.ClassCastException:
> > com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandler=
Impl
> > =A0=A0 =A0 =A0 =A0at TypeInfoWriter.main(TypeInfoWriter.java:558)
>
> It seems, you have hit a classpath issue. Your application seems to b=
e
> 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.XMLSchemaFact=
ory");

>
> 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 endorse=
d
directory.

> --
> Regards,
> Mukul Gandhi
>
> ---------------------------------------------------------------------=

> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org

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

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

[Attachment #3 (text/html)]

<html><body>
<p><tt>Mukul Gandhi &lt;gandhi.mukul@gmail.com&gt; wrote on 06/23/2009 11:30:31 \
PM:<br> <br>
&gt; Hi David,<br>
&gt; <br>
&gt; On Wed, Jun 24, 2009 at 6:35 AM, govelogo&lt;govelogo@gmail.com&gt; wrote:<br>
&gt; &gt; But I got this error,<br>
&gt; &gt; error: Parse error occurred -<br>
&gt; &gt; com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl<br>
&gt; &gt; java.lang.ClassCastException:<br>
&gt; &gt; com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl<br>
&gt; &gt;         at TypeInfoWriter.main(TypeInfoWriter.java:558)<br>
&gt; <br>
&gt; It seems, you have hit a classpath issue. Your application seems to be<br>
&gt; using the JAXP implementation available in Sun JDK. You may try<br>
&gt; setting a system property to use Xerces-J JAXP SchemaFactory.<br>
&gt; Something like below:<br>
&gt; <br>
&gt; System.setProperty(&quot;javax.xml.validation.SchemaFactory:<a \
href="http://www">http://www</a>.<br> &gt; \
w3.org/2001/XMLSchema&quot;,&quot;org.apache.xerces.jaxp.validation.XMLSchemaFactory&quot;);<br>
 &gt; <br>
&gt; Michael, might be able to provide a more correct answer :)<br>
</tt><br>
<tt>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.</tt><br> <tt><br>
&gt; -- <br>
&gt; Regards,<br>
&gt; Mukul Gandhi<br>
&gt; <br>
&gt; ---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org<br>
&gt; For additional commands, e-mail: j-users-help@xerces.apache.org<br>
</tt><br>
<tt>[1] </tt><tt><a href="http://markmail.org/message/rvlroblxyza3xt3v">http://markmail.org/message/rvlroblxyza3xt3v</a></tt><br>
 <br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: mrglavas@ca.ibm.com</tt><br>
<tt>E-mail: mrglavas@apache.org</tt><tt><br>
</tt></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic