Skip to main content

ImageIO in web application

1 reply [Last post]
Joined: 2004-11-22


I use ImageIO and JAI in a web application on tomcat. I added the ImageIO and JAI jars and dlls to the lib directory of the war file. Sometimes I get the following exception:

Caused by: java.util.NoSuchElementException
at javax.imageio.ImageIO$

After restart of tomcat the exception is gone (sometimes). I think it is a problem of classpath. Is it enough to put all jars and dlls in the WEB-INF/lib ? Please help.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Oliver,

I don't know especially about tomcat but so far I
guess it has to be configured somewhere. You should
consult Tomcat documentation about that.

The DLLs (Windows) or SO-Libs (Unix) have to be in
PATH (Windows) and LD_LIBRARY_PATH (Unix). This have
to be set during Tomcat startup.

Kind regards,
Marco Jacob, PMP
Prisma GmbH

To unsubscribe, e-mail:
For additional commands, e-mail: