Home pageFind It!Contact PJAPJA documentation

PJA

 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject PJA with IBM Webpshere's 3.5.x

rajan

Member since : Jun 5, 2003
Messages : 4
 Jun 5, 2003 at 3:53 PM
I am using Websphere 3.5.4 on AIX. Have done following steps to use PJA freeware for re-directing the AWT calls (inside jasper reports freeware to generate PDF) to PJA APIs.
STEP 1
------
Added following lines in initializing servlet of my application
System.setProperty ("awt.toolkit", "com.eteks.awt.PJAToolkit");
System.setProperty ("java.awt.graphicsenv", "com.eteks.java2d.PJAGraphicsEnvironment");
System.setProperty ("java.awt.fonts", "/app/tio/conf/"); // path where fonts.properties is kept

STEP 2
------
pja.jar & pjatools.jar are set in the Application class path.

With this, the AWT calls are successfully getting redirected to PJA, but still the PDF file is not getting generated thru jasper-reports.
---
Rajan S.
JPMC, UK

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Jun 6, 2003 at 2:01 AM
First, as any user that wants to try PJA on its system, you should try PJAToolkitDemo1.2.sh and see if it works. Did it work on AIX ?
Second, pja.jar must be added to bootclasspath thanks to the java option -Xbootclasspath/a:path/to/pja.jar
---
Manu (moderator/modérateur)

rajan

Member since : Jun 5, 2003
Messages : 4
 Jun 11, 2003 at 5:27 PM
Yes. the Demo command ran successfully & created 5 gifs. Out of which the last one (PJAToolkitTextDrawer.gif) is not displaying any content. Is it supposed to work that way OR there is some problem with configuration ?
Now to make PJA work through my servlet, what all I need to do apart from the previous settings (in my first question) ?
---
Rajan S.
JPMC, UK

rajan

Member since : Jun 5, 2003
Messages : 4
 Jun 11, 2003 at 5:45 PM
How to set the Xbootclasspath/a: for IBM Webpshere's (ver 3.5.4) servlet engine ?
---
Rajan S.
JPMC, UK

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Jun 12, 2003 at 10:08 AM
[ From http://java.quest.com/support/search/JclServerChart/pr/jcl_serverchart_pr_4.html ]

1. Stop the Application Server (Default Server) from the Admin Console. In the JVM tab of the Application Server add the PJAToolkit JAR files to the CLASSPATH, I.e. Click on the Add button and enter in the path to the PJA jar files:
/path/to/pja.jar
/path/to/pjatools.jar

At the end, you should have 2 entries in this area, and once you are done, click "Apply" and you will see that the generated command line arguments section of that tab will include a -classpath entry.

2. Click on the "Advanced JVM Settings" button from the JVM Settings tab and enter in the various -D command line arguments in the top text field entry titled "Command line arguments". I.e. Enter the following separated by spaces:

-Xbootclasspath/a:/path/to/pja.jar:/path/to/pjatools.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava2d.font.usePlatformFont=false
-Djava.awt.fonts=/opt/WebSphere/AppServer/java/jre/lib/fonts
-Duser.home=/path/to/pja_2.4

Finally, click "OK" and you should see the generated command line arguments section updated.

3. Start the Application Server through the Administrative Console and try your servlet.
---
Manu (moderator/modérateur)

rajan

Member since : Jun 5, 2003
Messages : 4
 Jun 12, 2003 at 3:09 PM
Manu....Thanx for all your help. Now PJA is working fine on IBM WAS 3.5.4 on AIX 4.3.3 & my problem of generating PDF thru jasper-reports is also solved.
---
Rajan S.
JPMC, UK


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation