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 and Jserv?

knightwing

Location : Ireland
Member since : Jun 19, 2003
Messages : 1
 Jun 19, 2003 at 12:50 PM
Hi,

I have been attempting to use the PJA Toolkit to replace the use of Xvfb on a couple of applications.

I got the toolkit running properly under Tomcat and It runs great.
I am now looking to get it running with Jserv.

I have already carried out the following in jserv.properties:

added wrapper.bin.parameter=-Xbootclasspath/a:/path/to/lib/pja.jar
added wrapper.classpath=/path/to/lib/pja.jar & wrapper.classpath=/path/to/lib/pjatools.jar

commented out wrapper.env=DISPLAY=:9.0 (This was the reference for Xvfb)

I have also tried adding the -D settings with wrapper.bin.parameter and wrapper.env as follows:

wrapper.bin.parameter=-Dawt.toolkit=com.eteks.awt.PJAToolkit
wrapper.bin.parameter=-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
wrapper.bin.parameter=-Djava2d.font.usePlatformFont=false
wrapper.bin.parameter=-Djava.awt.fonts=/opt/java/jre/lib/fonts

&

wrapper.env=awt.toolkit=com.eteks.awt.PJAToolkit
wrapper.env=java.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
wrapper.env=java2d.font.usePlatformFont=false
wrapper.env=java.awt.fonts=/opt/java/jre/lib/fonts

both versions have been unsuccessful.

The error I keep getting is:
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable

If anyone has any ideas of what might help, It would be greatly appreciated.

Thanks,

~Greg.

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Jun 25, 2003 at 9:51 PM
Are you sure it's possible to cite more than once the wrapper.bin.parameter in jserv.properties ?
Wouldn't it work if you simply add all the java options in one line :

wrapper.bin.parameter=-Xbootclasspath/a:/path/to/lib/pja.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava2d.font.usePlatformFont=false
-Djava.awt.fonts=/opt/java/jre/lib/fonts

[Message update]
Please use wrapper.bin.parameters (with an s) instead of wrapper.bin.parameter
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2014 eTeks - All rights reserved

PJAPJA documentation