Unix won't display images when X11 is running

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Hosoi
Posts: 4
Joined: Wed Jun 11, 2003 11:43 pm
Location: Newcastle

Unix won't display images when X11 is running

Post by Hosoi » Wed Jun 11, 2003 11:57 pm

Hi,

I am getting the usual X11 problem when running my Application consisting of JSP's, Servlets and EJB's in Webspshere on Unix.

X11 is running on the server so I can't understand why the image can't be generated.

So firstly can this be done using Websphere?

If so has Websphere been configured incorrectly? If so does anybody know what needs to be done.

Ta very much,

Hosoi

anon

Re: Unix won't display images when X11 is running

Post by anon » Fri Jul 25, 2003 8:39 pm

Hosoi wrote:Hi,

I am getting the usual X11 problem when running my Application consisting of JSP's, Servlets and EJB's in Webspshere on Unix.

X11 is running on the server so I can't understand why the image can't be generated.

So firstly can this be done using Websphere?

If so has Websphere been configured incorrectly? If so does anybody know what needs to be done.

Ta very much,

I have deployed an enterprise application from development people who incorporated jfreechart functionality on WAS 4.05 - HP UX and charts are now working. Can give you more info if you are still interested.

Hosoi

paul_harpreet
Posts: 2
Joined: Wed Aug 06, 2003 6:04 am

Post subject: Unix won't display images when X11 is running

Post by paul_harpreet » Wed Aug 06, 2003 6:30 am

Hosoi,

I am facing the similar problem on AIX environment. Can you tell me how did you displayed images?
Actually ia m unable to write image to JPEG in AIX. Any idea why this is happening.

Paul

gautam

Post by gautam » Wed Aug 06, 2003 9:04 am

try out pjatools.jar

mconner

try "headless" setting on Java command line

Post by mconner » Thu Aug 07, 2003 6:31 pm

I had a similar problem on a Sun box, the fix was to
use JDK1.4 and call java with the following option :

"-Djava.awt.headless=true"

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

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

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

:D
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!

Guest

Post by Guest » Tue Feb 24, 2004 8:39 am

Hi phamdinhnguyen

Did you also using WebSphere with 3-tier. ie. Separate WebServer, plugin.xml to communicate with AppServer. After I installed Xvfb in linux, and done some test with xclock, it works fine with the xclock, but not with the browser ????

Cheers
Seri

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

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

Post by phamdinhnguyen » Mon Mar 15, 2004 5:22 pm

Seri,
Sorry I didn't answer you sooner.

Our development and deployment have both WebServer and AppServer in the same box. If you have them in separate boxes, my strong feeling is that you must have XVFB installed where your AppServer resides, since this is where your Servlet codes make graphic API calls.
I could be wrong though!

Good luck!
phamdinhnguyen

Locked