I was asked to deploy an application to Weblogic and iText started blowing up
because it didn't understand the URL's I was giving it. The reason is that on
weblogic, ClassLoader.getResource() is typically going to to return a "zip:"
URL instead of "file:" or "jar:". I downloaded the source for version 2.17 &
found this line of code in com.lowagie.text.pdf. RandomAccessFileOrArray (line
91):
if (filename.startsWith("file:/") || filename.startsWith("http://")
|| filename.startsWith("https://") || filename.startsWith("jar:")) {
When that evaluates to true, iText treats filename as a URL. I added a
|| filename.startsWith("zip:")
to this, and now everything works fine on Weblogic. So: Could I get somebody
to add this to the next version of iText?
-tm
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/