This isn't really a bug in JForum so much as a potential bug in one's system setup. I wanted to run JForum on a linux box that has no X windows system on it. Unfortunately, JForum uses some X libraries to tinker with images. When trying to access a JForum page, I got an error similar to the following:
I dug around and managed to solve the problem on my own without having to install X on the machine. The general technique is found here:
http://javatechniques.com/public/java/docs/hosting/headless-java-x11-libraries.html
In addition to the libs listed above, I needed the libXau.so* libs. Once these files where copied to /usr/X11R6/lib/ dir on my server, I had to add the line:
in the /etc/lib.so.conf file of the server. That complete, I had to run
as root.
The final step was to edit the configuration of how
tomcat (my containter of choice) was started. On gentoo, I had to put the line:
in my /etc/conf.d/tomcat file. Other gentoo users might want to run
as root. The important thing, regardless of your linux distro, is that the -Djava.awt.headless=true option makes it to the command that launches
java (launching tomcat). You may have to edit your catalina.sh if your distro doesn't provide a simple way to pass options to tomcat.
Last but not least, I had to restart tomcat:
and everything was peachy. Hope this helps others. BTW: this install is using postgres as the back end. The newest sql setup scripts worked like a charm.
Crunge
[originally posted on jforum.net by Anonymous]