xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Bockermann <christian.bockerm...@udo.edu>
Subject Re: ClassCast Error
Date Wed, 21 Jul 2010 18:42:59 GMT
Hi Thomas!

Thanks for the answer (and to Jonathan as well, of course!).

Jonathan's tip pointed me to the right direction. I did change my classpath
a bit (re-organizing my maven-dependencies), and now it seems to work almost

The only problem I struggle with now, is the xslt-transformer/fop exiting my
Java VM upon an error, but that is not related to batik.

Thanks again to all your hints!


Am 21.07.2010 um 14:11 schrieb thomas.deweese@kodak.com:

> Hi Christian, 
> Christian Bockermann <christian.bockermann@udo.edu> wrote on 07/19/2010 04:12:43
> > However, as soon as I deploy my code into a web-application I run into some
> > class-cast errors:
> > 
> > Caused by: java.lang.ClassCastException: 
> > org.apache.batik.extension.svg.BatikDomExtension cannot be cast to 
> > org.apache.batik.dom.DomExtension
>     This indicates that you have Batik in two independent classpath 
> domains within the servlet container (or what ever the web app is 
> talking to. 
>     You can tell this because if you look at 
> org.apache.batik.extension.svg.BatikDomExtension it _does_ extend 
> org.apache.batik.dom.DomExtension.  So the only possible reason 
> to get this exception is if there are two instances of the class 
> "org.apache.batik.dom.DomExtension". 
>     If none of this makes sense to you then you need to find a 
> class path guru and have them help you sort out your class path 
> in the servlet engine. 
>     Good luck. 

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message