Reputation: 6825
I'm running a program that using jai_imageio.jar and then validating if I can get ImageIO.getImageReadersByFormatName("tiff")
for some reason the program is running on other server, But when I checkout / load it into my server it always cause an error
java.util.NoSuchElementException
at javax.imageio.spi.FilterIterator.next(Unknown Source)
at javax.imageio.ImageIO$ImageReaderIterator.next(Unknown Source)
at javax.imageio.ImageIO$ImageReaderIterator.next(Unknown Source)
I've already spending half of my day with this.. but still can't figure it out. I hope someone can tell what's wrong with my setup. Note (jai_imageio.jar and jai_code_codec-1.1.3-alpha.jar) is already in my eclipse WEB-INF/lib
Upvotes: 5
Views: 4819
Reputation: 6825
Seems I cannot delete this question and no answered it. I'm going to answer it. Just like the comment I post, adding the jar files of jai into the directory of tomcat resolve the problem.
Upvotes: 8