users@glassfish.java.net

Re: Problem with javax.imageio and Glassfish

From: <glassfish_at_javadesktop.org>
Date: Fri, 20 Feb 2009 09:23:25 PST

Bump. Is there anybody out there? I can't believe I am the only one to have this error and I can't find anything on google for this....

After more testing I am guessing this is some sort of classpath issue - if I run:

 String[] names = ImageIO.getReaderFormatNames();

in a standalone JUnit test I get a list of image types. If I run this from within my Glassfish web project it throws a Throwable with:

Could not initialize class javax.imageio.ImageIO

The same web project in JBoss runs fine on the same computer.

Can anybody throw me a lifeline? I don't really want to have to go back to using JBoss just because of this...

Thanks in advance.
[Message sent by forum member 'polishben' (polishben)]

http://forums.java.net/jive/thread.jspa?messageID=333160