From owner-freebsd-java@FreeBSD.ORG Sat Nov 10 12:27:05 2012 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C90D573D for ; Sat, 10 Nov 2012 12:27:05 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 4C9CD8FC08 for ; Sat, 10 Nov 2012 12:27:05 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TXA9I-0001VP-OB; Sat, 10 Nov 2012 13:26:57 +0100 Received: from h253044.upc-h.chello.nl ([62.194.253.44] helo=pinky) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TXA9H-00028B-Jj; Sat, 10 Nov 2012 13:26:55 +0100 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org, "Marc Fournier" Subject: Re: FIXED: Re: FreeBSD + openjdk7 + hudson References: <17378912.104.1352503810904.JavaMail.mfournier@Marcs-Mac-Pro.local> Date: Sat, 10 Nov 2012 13:26:54 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <17378912.104.1352503810904.JavaMail.mfournier@Marcs-Mac-Pro.local> User-Agent: Opera Mail/12.10 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.0 X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_50 autolearn=disabled version=3.2.5 X-Scan-Signature: 6c9cb813585780de5eb5173c5d3ca72d X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2012 12:27:05 -0000 On Sat, 10 Nov 2012 00:30:12 +0100, Marc Fournier wrote: > Just found it ... missing dejavu font ... Very well. A little of topic, but I recommend you to use Jenkins in stead of Hudson. It is a fork of Hudson when Oracle bought Sun. But Jenkins is still actively developed by the original author. And much better updated in the FreeBSD ports tree. Upgrading should be a drop-in replacement as Jenkins reads the hudson config files, but backups are always wise to have. http://www.freshports.org/devel/jenkins/ http://www.freshports.org/www/hudson/ Ronald. > > ----- Original Message ----- > >> From: "Marc Fournier" >> To: freebsd-java@freebsd.org >> Sent: Friday, November 9, 2012 2:14:11 PM >> Subject: FreeBSD + openjdk7 + hudson > >> First, I have a Hudson environment working in a seperate jail using >> diablo-jdk6, so I know this does work perfectly, but since it >> doesn't appear that there will be a 'jdk7' port, I want to do some >> tests of our application using openjdk7, so I setup a seperate jail, >> installed the openjdk7 binary (from ports) and hudson ... the hudson >> server starts up, and I get the initial hudson page, but, i get an >> error about AWT: > >> ==== > >> AWT is not properly configured on this server. Perhaps you need to >> run your container with "-Djava.awt.headless=true"? >> java.lang.NullPointerException >> at >> sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779) >> at sun.font.SunFontManager$2.run(SunFontManager.java:432) >> at java.security.AccessController.doPrivileged(Native Method) >> at sun.font.SunFontManager.(SunFontManager.java:375) >> at sun.awt.X11FontManager.(X11FontManager.java:32) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:525) >> at java.lang.Class.newInstance0(Class.java:372) >> at java.lang.Class.newInstance(Class.java:325) >> at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74) >> at java.awt.Font.getFont2D(Font.java:490) >> at java.awt.Font.getFamily(Font.java:1187) >> at java.awt.Font.getFamily_NoClientCode(Font.java:1161) >> at java.awt.Font.getFamily(Font.java:1153) >> at java.awt.Font.toString(Font.java:1650) >> at hudson.util.ChartUtil.(ChartUtil.java:229) >> at hudson.WebAppMain.contextInitialized(WebAppMain.java:181) >> at winstone.WebAppConfiguration.(WebAppConfiguration.java:889) >> at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131) >> at winstone.HostConfiguration.(HostConfiguration.java:73) >> at winstone.HostGroup.initHost(HostGroup.java:85) >> at winstone.HostGroup.(HostGroup.java:45) >> at winstone.Launcher.(Launcher.java:196) >> at winstone.Launcher.main(Launcher.java:391) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:601) >> at Main.main(Main.java:200) > >> === > >> I did modify my /etc/rc.conf for the headless, and ps shows it: > >> /usr/local/openjdk7/bin/java -DHUDSON_HOME=/home/hudson/webapps >> -Djava.awt.headless=true -jar /usr/local/share/hudson/hudson.war >> --logfile=/home/hudson/logs/hudson.log >> --webroot=/home/hudson/webapps/war --httpListenAddress=127.0.0.1 > >> But it still generates the error ... > >> Note that when I go to the web page, I am getting hte 'hudson image', >> and the Search in the top left, but then the error message above >> generates generated to the screen ... > >> I'm doing this all via ports ... did I miss a step? a dependency? Or >> shouldn't openjdk7 be used at this time? If not, how safe is >> openjdk6 then ... ? > >> Thx > >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to >> "freebsd-java-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"