On Monday 29 May 2006 20:33, Jeremias Maerki wrote: > The reason is org.apache.fop.images.FopFactory which specifies JAI as > the first image provider to try for loading GIF images. The code > should actually be smart enough to fall back to the next provider if > it can't load the image with the first. I will need to investigate > why this happens. > > On 29.05.2006 11:46:09 Raino Kolk wrote: > > I use fop 0.92 and i try to use it in Spring framework. > > The exact error is: > > java.lang.NoClassDefFoundError: > > com/sun/media/jai/codec/FileCacheSeekableStream at > > org.apache.fop.image.JAIImage.loadImage(JAIImage.java:80) ... > > > > It seems that in some reason fop trys to use JAI if i use gif > > pictures. So the question is why?
FOP only checks if the class org.apache.fop.image.JAIImage can be loaded (classForName method). It was assumed that this will fail if JAI is not available in the classpath. May be that is not always true especially for a FOP binary distribution and we may have to check both: a) FOP was build with JAI support AND b) JAI is available at runtime? Same for Jimi and ImageIO? Manuel > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
