Re: How to prefer FOP native for JAI

2006-05-30 Thread Raino Kolk
Jeremias Maerki dev at jeremias-maerki.ch writes: As Joerg suggested earlier, this seems to be a class loader problem. We already check for both conditions a) and b). I've just checked and FOP falls back nicely to ImageIO if support for JAI is compiled but JAI is not present during runtime.

Re: How to prefer FOP native for JAI

2006-05-30 Thread J.Pietschmann
Jeremias Maerki wrote: As Joerg suggested earlier, this seems to be a class loader problem. I noticed the missing class seems to be from the codec jar. Maybe only this jar is missing, or can't be accessed for some other reason. Jai also uses native libraries, which might be a problem too

Re: How to prefer FOP native for JAI

2006-05-29 Thread Raino Kolk
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

Re: How to prefer FOP native for JAI

2006-05-29 Thread Jeremias Maerki
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

Re: How to prefer FOP native for JAI

2006-05-29 Thread Manuel Mall
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

Re: How to prefer FOP native for JAI

2006-05-29 Thread Jeremias Maerki
As Joerg suggested earlier, this seems to be a class loader problem. We already check for both conditions a) and b). I've just checked and FOP falls back nicely to ImageIO if support for JAI is compiled but JAI is not present during runtime. In my case, loading JAIImage resulted in a

How to prefer FOP native for JAI

2006-05-26 Thread Raino Kolk
Hi, my problem appears when i use fop in servlets. If I use in XSL-FO file GIF image i get JAI classNotFound exception. However when i use JPG image, then everything is ok. So why fop uses JAI instead of native? By the way from command line this error never appears. in command line the fop uses