Hudson gives awt.headless error
Hudson gives awt.headless error
- Subject: Hudson gives awt.headless error
- From: Johan Henselmans <email@hidden>
- Date: Tue, 9 Jun 2009 19:36:34 +0200
After the inspirational presentations at the WOWODC I immediately
started to change my whole build and deployment environment with
Hudson, maven and Capistrano, my WOLips environment with JavaRebel and
my testing environment (well..., the last thing will have to wait,
because Real Men Don't Test, They Swallow).
Starting with Hudson, I did the Mike one minute thing:
* install Tomcat from macports (60 mins)
* create an administrative user in /opt/local/share/java/tomcat6/conf/
tomcat-users.xml (20 mins to find out where the user should be and how
not to restart tomcat)
something along the line of:
========================
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="admin,manager"/>
</tomcat-users>
========================
(remember this is testing)
* Start tomcat, (1 min)
========================
sudo launchctl load -w /Library/LaunchDaemons/org.macports.tomcat6.plist
========================
* download Hudson (50 mins, long live Whitcomb Wanderless Wireless!)
* install Hudson in Tomcat (15 mins, once by hand and once by
download interface in Tomcat because I did not see the hudson.war
unwrapping, which it did right after I decided to try it via the
download option in tomcat manager),
And then I had hudson in Tomcat (96 mins Yah!, good I don't do live
presentations.)
Then I got two errors: first it tried to write something in /var/
root/.hudson, which I somehow did not agree with, I don't know why, it
seems soo... Windows, so I
created a /opt/local/var/db/hudson and set hudson to store it's stuff
over there by adding
========================
export HUDSON_HOME=/opt/local/var/db/hudson
========================
to /opt/local/share/java/tomcat6/conf/setenv.local
and creating that folder with ownership _www:_www
the next error I got was:
========================
AWT is not properly configured on this server. Perhaps you need to run
your container with "-Djava.awt.headless=true"?
java.lang.InternalError: Can't connect to window server - not enough
permissions.
========================
Does anybody know how I can get rid of that error?
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden