users@glassfish.java.net

Jai-Jars not loaded when deployed as ear. Deployment as war works.

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Dec 2009 04:43:39 PST

Hi,

When I deploy my war alone, the jai jar's load perfectly. When I pack the war in an ear, the classloader drops all package information about the jai libraries, and they are returning null on lookups.

[#|2009-11-30T15:26:43.016+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=25;_ThreadName=httpSSLWorkerThread-31231-3;|2009-11-30 15:26:43 ERROR httpSSLWorkerThread-31231-3 TextwerkAction.execute(92) sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageInputStreamSpi: Provider com.sun.media.imageioimpl.stream.ChannelImageInputStreamSpi could not be instantiated: java.lang.IllegalArgumentException: vendorName == null!
        at sun.misc.Service.fail(Service.java:120)
        at sun.misc.Service.access$200(Service.java:111)
        at sun.misc.Service$LazyIterator.next(Service.java:276)
        at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:188)
        at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:120)
        at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:141)
        at javax.imageio.ImageIO.<clinit>(ImageIO.java:46)

This same behaviour is also described here from someone else:
> http://article.gmane.org/gmane.comp.gis.geoserver.user/9790


Is this a bug in GlassFish or what am I doing wrong?

Cheers
Jonny
[Message sent by forum member 'jonnybecker' ]

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