okay, I was able to solve this but not easily and the solution is hardly a good one.
My Solution: I had to start VNC as root (since that is the user that starts tomcat - via init scripts), next I had to export the display of the VNC terminal (:1.0 in my case) and set -Djava.awt.headless=false in my tomcat startup scripts: export JAVA_OPTS="-server -Xms256m -Xmx256m -XX:NewRatio=2 - XX:ThreadStackSize=2048 -Djava.awt.headless=false" export DISPLAY="localhost:1.0" So now to use the CFCaptcha tag I have to have: A. VNC-Server installed and running as root (started BEFORE tomcat) and export the port it is on B. Xvfb installed and running as root (again started BEFORE tomcat) and export the port it is on This is NOT a good idea for most people I am thinking, I dislike setting headless to false and I dislike leaving a GUI running for many reasons (security, resources, etc...). Before the question is asked, yes I have my server fire walled and port 5901 is blocked from all except localhost. So I have to ask, is this truely needed? Is there another way to get this to work with headless=true and without a running VNC/Xvfb? --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official site @ http://www.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
