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 WebSphere 4.04 & Solaris --> NoClassDefFoundError

pascaldecker

Member since : Nov 5, 2003
Messages : 2
 Nov 5, 2003 at 5:08 PM
Hi,

We are facing a serious problem with WebSphere on UNIX (Solaris).

We added pja.jar to the bootclasspath and classpath and added the System Properties
-Dawt.toolkit=com.eteks.awt.PJAToolkit \
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
-Djava.awt.fonts=/opt/Dynamo5.6.1/webreporting/reports/fonts \
-Djava2d.font.usePlatformFont=false \
-Duser.home=/opt/Dynamo5.6.1/webreporting/reports/fonts

The error is:
java.lang.Error: Could not find class: com.eteks.java2d.PJAGraphicsEnvironment
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:56)
...

or
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError
at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:150)
at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:350)
at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:271)
at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:257)

Maybe i need to place the jar-file at an additional location.

Could anybody hepl me?
Thanks and cheers,
Pascal

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Nov 11, 2003 at 8:23 AM
Did you try the solutions described in the subjects
http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=200#202
http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=2
http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=44

I don't know if it will help you since they describe problems with WebSphere 3 or 5 not WebSphere 4. I hope IBM doen't change WebSphere configuration tools at each major update...
Please keep us informed of your solution
---
Manu (moderator/modérateur)

pascaldecker

Member since : Nov 5, 2003
Messages : 2
 Nov 20, 2003 at 9:31 AM
Hi Manu,

Thanks for your help
We solved the problem!
At first we set the bootclasspath and the System-properties like
-Dawt.toolkit=com.eteks.awt.PJAToolkit \
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
-Djava.awt.fonts=/opt/someapp/fonts \
-Djava2d.font.usePlatformFont=false \
-Duser.home=/opt/someapp/fonts

in {WEBSPHERE_HOME}/AppServer/bin/startupserver.sh.

--> But this didn´t work...

Our final solution:
- exporting the server configuration XML-File using wscp
XMLConfig export <filename>
- adding pja.jar to the bootclasspath in the XML-file
- adding the above System properties like user.home to the JVM-Args section of the XML-file
- importing the server configuration XML-File using wscp
XMLConfig import <filename>
- restart WebSphere

That´s it - works great!
cheers,
Pascal

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Nov 20, 2003 at 5:43 PM
Thank you for your feedback !
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation