I am running the built-in Apache Tomcat 6.0 under Mac OS X Server 10.6.6. Tomcat runs Hudson and Hudson runs a script which needs to connect to the local WindowServer
process. This does not seem to be allowed for the user appserver
that Tomcat is configured to run under:
FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL
According to this technote connections to the window server are only allowed for the currently logged in user and for root. Is there a solution that does not require Tomcat to be re-configured to run as root or as the console user?