Re: strange behavior of iText across platforms
- From: steveg144@xxxxxxxxx
- Date: Fri, 26 Oct 2007 14:58:20 -0000
On Oct 26, 6:58 am, Bruno Lowagie <bruno.lowa...@xxxxxxxx> wrote:
steveg...@xxxxxxxxx wrote:
I do my development on XP using IBM's RAD developer, with J2EE level
set to 1.3. I've built some code to print a PDF and display it on-
screen. This code works great (thanks to some assistance from Bruno
Lowagie and others). When I move it to our staging server, things
misbehave.
You are listing several problems; for clarity it would better be
to split them up, and deal with them separately. Maybe some of the
issues you describe are symptoms of the same problem, maybe not.
First of all:
The downloadable iText jar is compiled with JDK 1.4 and if you
use it in a 1.3 environment, you WILL get errors saying "class
not found" (or related problems) EVEN WHEN you can see the class
or method when inspecting the jar.
If you intend to use iText in a 1.3 environment (but note that
even 1.4 is considered to be End of Life by SUN), then you need
to get the source code from SVN, more specifically from the 1.3
branch of iText. (We officially work with 1.4, but we maintain
a 1.3 and a 1.5 branch in the SVN repository).
You may argue that it works in your development environment
with 1.3 because you are setting the J2EE level to 1.3, but...
that's debatable. I don't know about IBM's RAD developer tool,
but I know other tools that ignore those settings.
Second remark:
You are serving PDF. Your server on your development machine
knows this, and does this the right way. But does the server
on your production machine know you are serving PDF? There
could be a configuration problem there. I haven't seen that
kind of problems in this century, because most recent servers
do it right, but I did have to solve similar problems in the
previous century with older webserver versions.
In any case: if something works on one system, but not on
another, we are talking about configuration problems.
I find it very hard to solve configuration problems remotely.
br,
Bruno
Looks like my info was out of date; our staging server is in fact at
this jvm level:
/opt/WebSphere/AppServer/java/bin/java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM build
cxia32142ifx-20061121(ifix 112270: SR6 + 111682 + 111872 + 110979 +
109973) (JIT enabled: jitc))
So I'd expect that itext would work in this environment? Just fyi, the
jar file I am using is iText-2.0.6.jar. Is this the correct one for me
to be using? thanks as always.
.
- Follow-Ups:
- Re: strange behavior of iText across platforms
- From: Bruno Lowagie
- Re: strange behavior of iText across platforms
- References:
- strange behavior of iText across platforms
- From: steveg144
- Re: strange behavior of iText across platforms
- From: Bruno Lowagie
- strange behavior of iText across platforms
- Prev by Date: Re: strange behavior of iText across platforms
- Next by Date: Re: firefox, explorer and pdf and www;sciencedirect.com
- Previous by thread: Re: strange behavior of iText across platforms
- Next by thread: Re: strange behavior of iText across platforms
- Index(es):
Relevant Pages
|