Hi Rick,

To help clarify future google searches, I'll explain what's happening here:

The cfcaptcha and cfimage tags in OpenBD rely on the underlying java 
image manipulation functions. Further, Java's image manipulation 
functions rely on the image manipulation libraries of whatever OS Java 
happens to be installed on, be it Windows or Linux. For Linux installs, 
Java utilizes libraries in Xorg, which also power Linux's GUI desktops.

You do not have to be running a GUI on your Linux server in order to get 
the image manipulation functions of CFML to work, but you do have to 
have the Xorg libraries installed.

Here's a rather old post I wrote on the subject regarding BD JX and this 
particular issue:
http://www.viviotech.net/forum/viewtopic.php?f=6&t=317

Additionally, note that the Xorg libraries have been mixed and matched 
many times since that post and I don't know exactly which libraries are 
needed. You could either experiment with installing specific libraries, 
restarting OpenBD, and seeing what works, or you could simply do a 
blanket install of the Xorg packages:

# yum install xorg*

and seeing if that takes care of things for you or not...

Let us know what you find out!

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Railo Community Distributions


Rick Root wrote:
> So, out of the box, in my install, cfcaptcha does not work.
> 
> The first three lines of the exception were:
> 
> java.awt.HeadlessException:
> No X11 DISPLAY variable was set, but this program performed an
> operation which requires it.
>       at 
> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
> 
> so, I added -Djava.awt.headless=true to the
> /opt/openbd/tomcat/setenv.sh file and restarted tomcat... Now, the
> exception looks like this:
> 
> java.awt.HeadlessException
>       at 
> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
> 
> Same thing without the "No X11 DISPLAY" line...
> 
> Surprisingly, there is essentially no mention of "headless" when I
> google on openbluedragon.org
> 
> What is the correct way to resolve this problem, and how do we get it
> documented on the openbluedragon site somewhere?
> 
> I did find this thread on the list:
> 
> http://groups.google.com/group/openbd/browse_thread/thread/272a741798675cb6/d34ca24f89c8eb65?lnk=gst&q=headless#d34ca24f89c8eb65
> 
> But it seems to me that being required to start VNC is not a proper solution.
> 
> thanks.
> 
> Rick
> 

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to