users@glassfish.java.net

Re: Problem with javax.imageio and Glassfish

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 20 Feb 2009 12:28:54 -0500

Salut,

wild guess. Add:

<jvm-options>-Dcom.sun.enterprise.server.ss.ASQuickStartup=false</jvm-options>

in domain.xml. I suspect it may not make any difference, but just to
make sure. If not, file an issue here:

https://glassfish.dev.java.net/servlets/ProjectIssues

and attach your war file.

A+

-- Jeanfrancois

glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>