java.awt.headless=true

If you've been trying to post a comment on this weblogs in the last hours, you couldn't because, after having enabled the SCode plugin for blojsom, I forgot to add one very important extra option to the Tomcat configuration:

-Djava.awt.headless=true

Without this option, Java will try to connect to the X server to do whatever it needs to do in order to generate an image. And since I stopped X before going home yesterday, the result is that the CAPTCHA image was not being generated.

I should have known better. I't about the twelfth time that I trip upon this gotcha.

0 Responses to “java.awt.headless=true”


  1. No Comments

Leave a Reply