[EMAIL PROTECTED] wrote on 30/03/2002 04:46:24 AM:

> [EMAIL PROTECTED] writes:
> 
> > It works fine for my 'normal' build file. But with maven's build file 
I'm 
> > getting 
> >
> > loader constraints violated when linking org/xml/sax/ContentHandler 
class
> > when parsing the XML doc :(
> 
> I've seen this problem while using Catalina before.  You may have more
> than one version of ContentHandler (or a supporting class) in your
> classpath which are incompatible with one another.  Try this:
> 
>   jar tvf xmlSuspect1.jar >> classes.list
>   jar tvf xmlSuspect2.jar >> classes.list
>   grep ContentHandler classes.list
> 
> In my situation, the sizes of the two interfaces varied _drastically_,
> to the point where the loader constraints violation was thrown.

My case was the classes bundled in JDK1.4 vs the ones I've placed as 
project dependencies. I've removed them,
and all seems to build well with ant under 1.3 as well. I'm guessing 
they're not needed at all, and moving on.

I'm not sure if this is something Maven should handle in general: 
different classpath's for different jdks. An idea would be to have that as 
an optional <dependency> tag, e.g. <java-version>1.2</java-version>.

--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


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

Reply via email to