> >> 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to