JFreeChart newbie is stucked!!!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
phamdinhnguyen
Posts: 22
Joined: Thu Jan 29, 2004 8:28 pm

JFreeChart newbie is stucked!!!

Post by phamdinhnguyen » Thu Jan 29, 2004 11:17 pm

I'm simply trying to run the simple demo servlet from my Webpshere appl server, and it fails consistently. The pattern is rather predictable.
. The first invocation to the servlet will generate error "java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable."
. All successive invocations to the servlet will generate error "java.lang.NoClassDefFoundError: org/jfree/chart/axis/AxisConstants"
This pattern can be consistently recreated. If I stop then restart the application server, the errors are generated in this fashion.

Here's the environment from Websphere log file:


************ Start Display Current Environment ************
WebSphere AE 4.0.3 ptf30217.01 running process id 145368
Host Operating System is AIX, version 4.3
Java version = J2RE 1.3.1 IBM AIX build ca131w-20020404 ORB130 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
server.root = /was/4.0.3
Java Home = /was/4.0.3/java/jre
ws.ext.dirs = /was/4.0.3/java/lib:/was/4.0.3/classes:/was/4.0.3/lib:/was/4.0.3/lib/ext:/db2/sqllib/java12/db2java.zip:
Classpath = /was/4.0.3/properties:/was/4.0.3/lib/bootstrap.jar:/app/ddadmin_db/installedApps/ddadmin_db.ear/ddadmin_db.war/lib/jcommon-0.9.1.jar:/app/ddadmin_db/installedApps/ddadmin_db.ear/ddadmin_db.war/lib/jfreechart-0.9.16.jar
Java Library path = /was/4.0.3/java/jre/bin:/was/4.0.3/java/jre/bin/classic:/was/4.0.3/lib/odbc/lib:/db2//sqllib/java12:/db2//sqllib/lib:/was/4.0.3/bin:/was/4.0.3/
lib:/db2/sqllib/lib:/usr/lib
Current trace specification = *=all=disabled
************* End Display Current Environment *************

Can someone help? Thanks.
pdn

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Feb 02, 2004 3:34 pm

David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

phamdinhnguyen
Posts: 22
Joined: Thu Jan 29, 2004 8:28 pm

JFreeChart ServletDemo1, JDK131, and PureJavaAWT

Post by phamdinhnguyen » Tue Feb 03, 2004 11:41 pm

I was able to set up my Websphere env, together with JFreeChart and PureJavaAWT.
Both PureJavaAWT 2.4 tool, and its DefaultToolkitTest servlet certified the server env is "Default Toolkit and Font class could be instantiated, you should be able to do graphics with this JVM."

However, when I ran ServletDemo1, all the browser got was a grey rectangle 400x300, and a grey horizontal line.

What went wrong?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Feb 04, 2004 10:23 am

Not sure. Check the server logs for any exception messages.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

phamdinhnguyen
Posts: 22
Joined: Thu Jan 29, 2004 8:28 pm

AIX 43/ JDK 131 / Websphere 403, and X11 DISPLAY problem

Post by phamdinhnguyen » Tue Feb 10, 2004 6:31 pm

Thanks.

My final working solution for AIX, after exhausting all possible settings/configurations with PureJavaAWT, is XVFB.
If you MUST get a solution, check out this link for details:

http://publibn.boulder.ibm.com/doc_link ... Header_363

Best luck!

Locked