tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <spr...@gmx.eu>
Subject RE: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
Date Thu, 23 Dec 2010 12:58:13 GMT
> >> java.lang.ClassCastException: 
> >> com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot 
> >> be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
> >>
> >> at:
> >>
> >> Iterator it = ImageIO.getImageReadersByFormatName("TIF");
> >> r = (TIFFImageReader)it.next(); //<==BANG
> > 
> > I solved that problem by moving jai_imageio.jar into 
> JAVA/lib/ext. Moving it
> > to TOMCAT/lib did NOT solve the problem.
> 
> I think you're referring to an older thread you posted, but I 
> can't find
> it in my mail client.

Yes, had a similar problem with Tomcat 7. Here it was not ClassCastEx but a
NoSuchElementEx indicating that the TIFF-Plugin cannot be found.
In both cases the problem was solved when moving the jar into ext.

> If you're using a Java 6 JDK, isn't the JAI stuff included?  I thought
> it was only a separate download for older versions of Java (please
> correct me if I'm wrong).

Hm, I think I need the jar for TIFF-Support. Plain JRE has JPEG, PNG, GIF
and BMP only - imo...


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


Mime
View raw message