-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: Macintosh, OS: Mac OS X
Symptom:
hudson.war fails to initialize while attempting to connect to a non-existent
window server process. Tomcat is launched as a service on Mac OS X Server using
Apple's launchd process. The Tomcat process does not have access to an
interactive window server session. Hudson appears to require a interactive
session window server to load the java.awt.Font class.
Environment:
OS -> Mac OS X Server 10.5.1 (Leopard)
Java -> Apple's Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_13-b05-237)
Tomcat -> 6.0.14
Hudson -> 1.165 and 1.166
catalina.out:
...
INFO: Deploying web application archive hudson.war
hudson home directory: /usr/local/hudson
Jan 5, 2008 6:59:41 AM hudson.WebAppMain$2 run
SEVERE: Failed to initialize Hudson
java.lang.InternalError: Can't connect to window server - not enough permissions.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
at java.awt.Toolkit.<clinit>(Toolkit.java:1530)
at java.awt.Font.<clinit>(Font.java:141)
at hudson.model.DependencyGraph.<clinit>(DependencyGraph.java:286)
at hudson.model.Hudson.<init>(Hudson.java:210)
at hudson.WebAppMain$2.run(WebAppMain.java:129)
...