I seem to be having great difficulty setting up Xvfb and DISPLAY to
generate images from a servlet.
I've tried this tip I found on the JServ site:
>I had the same problem earlier. I guess that the root of the problem is that,
> if you autostart JServ from Apache, then env var DISPLAY will not be handed to
> the process in which "java ...." runs. What I did is to manually start JServ
> with the following script:
>
> #!/bin/sh
> # launch jserv in manual mode
> jsdk=/path/to/jsdk.jar
> jserv=/path/to/Apache-JServ.jar
> props=/path/to/jserv.properties
> log=/path/to/jserv.log
> classes=$CLASSPATH:$jsdk:$jserv
>
> DISPLAY=yourHostName:0
> export DISPLAY
>
> THREADS_FLAG=native
> export THREADS_FLAG
> /path/to/java -Xms60m -Xmx120m -classpath $classes org.apache.jserv.JServ
> $props &> $log
>
> Hope it can be of help. I guess that there might be some tricks that you can
> try to let Apache server hand the DISPLAY env to java in autostart mode, but in
> my case I just want to write the useful code and my production and development
> environment also works more flexible with manual start option.
>
> regards,
>
> -Shaoping
But to no avail (I'm still getting a "no awt in shared library"
message).
Can anyone assist? Specifically, does anyone know how to set
environment variables from within a servlet?
Robbie
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]