[daisy] Pointing Daisy at JAI
Caleb Callaway
caleb at autometrix.com
Thu Jul 5 17:28:03 CDT 2007
Andreas Deininger wrote:
> 2007/7/4, Caleb Callaway <caleb at autometrix.com>:
>> When trying to generate PDFs with PNG images, I'm getting a 500 error:
>>
>>
>> HTTP ERROR: 500
>>
>> com/sun/media/jai/codec/FileCacheSeekableStream
>>
>> The log file says:
>>
>> java.lang.NoClassDefFoundError:
>> com/sun/media/jai/codec/FileCacheSeekableStream
>
> There was a discussion thread on the mailing list regarding this issue
> 5 weeks ago:
>
> http://lists.cocoondev.org/pipermail/daisy/2007-June/006829.html
>
> Maybe the information provided there can help to resolve that issue.
>
> Good luck!
> Andreas
>
>> Obviously Daisy is not able to find JAI, but JAI *is* installed, and the
>> JARs are in the classpath settings of wrapper config files for both the
>> repo and wiki. I've checked the permissions on the files--no problems
>> there. What configuration parameter am I missing here?
>>
>> Thanks,
>> -Caleb
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
> http://outerthought.org/site/services/daisy/daisysupport.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>
Thanks for the reply...I read through that thread, but there wasn't
anything there that was of use--this instance of JAI came pre-packaged
with SuSE, so as far as I know it's correctly installed. The PNGs aren't
exotic in anyway AFAIK--no progressive loading or anything. Seems like
I'd be getting an error other than "NoClassDefFoundError" if it was an
issue with advanced PNG features though.
Here is the output of a jar listing:
$ jar tf /usr/java/jai-1_1_3/lib/jai_codec.jar | grep eCacheSeek
com/sun/media/jai/codec/FileCacheSeekableStream.class
So the file definitely exists. I have the following settings in the
wrapper config for the Wiki:
wrapper.java.classpath.1=/usr/java/jai-1_1_3/lib/jai_core.jar
wrapper.java.classpath.2=/usr/java/jai-1_1_3/lib/jai_codec.jar
As a side note, this issue appeared to crop up when I started running
the Daisy services as a restricted user. I've tried running them as root
again, though, and it doesn't affect anything...strange...
-Caleb
More information about the daisy
mailing list