From owner-freebsd-java@FreeBSD.ORG Mon Nov 12 07:56:15 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 462915A2 for ; Mon, 12 Nov 2012 07:56:15 +0000 (UTC) (envelope-from achill@smadev.internal.net) Received: from smadev.internal.net (adsltrust.ath.forthnet.gr [194.219.204.174]) by mx1.freebsd.org (Postfix) with ESMTP id B92028FC08 for ; Mon, 12 Nov 2012 07:56:13 +0000 (UTC) X-Bogosity: No, tests=bogofilter Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.5/8.14.5) with ESMTP id qAC7jiwQ057337 for ; Mon, 12 Nov 2012 09:45:44 +0200 (EET) (envelope-from achill@smadev.internal.net) Received: (from achill@localhost) by smadev.internal.net (8.14.5/8.14.5/Submit) id qAC7jiUb057336 for freebsd-java@freebsd.org; Mon, 12 Nov 2012 09:45:44 +0200 (EET) (envelope-from achill@smadev.internal.net) From: Achilleas Mantzios To: freebsd-java@freebsd.org Subject: Re: FreeBSD + openjdk7 + hudson Date: Mon, 12 Nov 2012 09:45:44 +0200 Message-ID: <1528838.V4qDp6gdgl@smadev.internal.net> Organization: Dynacom Tankers Mgmt User-Agent: KMail/4.8.4 (FreeBSD/8.3-RELEASE; KDE/4.8.4; amd64; ; ) In-Reply-To: <10130611.101.1352499249367.JavaMail.mfournier@Marcs-Mac-Pro.local> References: <10130611.101.1352499249367.JavaMail.mfournier@Marcs-Mac-Pro.local> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Achilleas Mantzios List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 07:56:15 -0000 Marc hello, openjdk6 has been working fine for jboss/tomcat for quite some time. So= it is very safe regarding web apps/j2ee and the like. On =C3=8E =C3=8E=C2=B1=C3=8F=C2=81 09 =C3=8E=C2=9D=C3=8E=C2=BF=C3=8E=C2= =B5 2012 14:14:11 Marc Fournier wrote: >=20 > First, I have a Hudson environment working in a seperate jail using d= iablo-jdk6, so I know this does work perfectly, but since it doesn't ap= pear that there will be a 'jdk7' port, I want to do some tests of our a= pplication using openjdk7, so I setup a seperate jail, installed the op= enjdk7 binary (from ports) and hudson ... the hudson server starts up, = and I get the initial hudson page, but, i get an error about AWT:=20 >=20 > =3D=3D=3D=3D=20 >=20 > AWT is not properly configured on this server. Perhaps you need to ru= n your container with "-Djava.awt.headless=3Dtrue"? java.lang.NullPoint= erException=20 > at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:= 779)=20 > at sun.font.SunFontManager$2.run(SunFontManager.java:432)=20 > at java.security.AccessController.doPrivileged(Native Method)=20 > at sun.font.SunFontManager.(SunFontManager.java:375)=20 > at sun.awt.X11FontManager.(X11FontManager.java:32)=20 > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Meth= od)=20 > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstr= uctorAccessorImpl.java:57)=20 > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegati= ngConstructorAccessorImpl.java:45)=20 > at java.lang.reflect.Constructor.newInstance(Constructor.java:525)=20= > at java.lang.Class.newInstance0(Class.java:372)=20 > at java.lang.Class.newInstance(Class.java:325)=20 > at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)=20 > at java.security.AccessController.doPrivileged(Native Method)=20 > at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74= )=20 > at java.awt.Font.getFont2D(Font.java:490)=20 > at java.awt.Font.getFamily(Font.java:1187)=20 > at java.awt.Font.getFamily_NoClientCode(Font.java:1161)=20 > at java.awt.Font.getFamily(Font.java:1153)=20 > at java.awt.Font.toString(Font.java:1650)=20 > at hudson.util.ChartUtil.(ChartUtil.java:229)=20 > at hudson.WebAppMain.contextInitialized(WebAppMain.java:181)=20 > at winstone.WebAppConfiguration.(WebAppConfiguration.java:889)=20 > at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)=20= > at winstone.HostConfiguration.(HostConfiguration.java:73)=20 > at winstone.HostGroup.initHost(HostGroup.java:85)=20 > at winstone.HostGroup.(HostGroup.java:45)=20 > at winstone.Launcher.(Launcher.java:196)=20 > at winstone.Launcher.main(Launcher.java:391)=20 > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)=20 > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm= pl.java:57)=20 > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc= cessorImpl.java:43)=20 > at java.lang.reflect.Method.invoke(Method.java:601)=20 > at Main.main(Main.java:200)=20 >=20 > =3D=3D=3D=20 >=20 > I did modify my /etc/rc.conf for the headless, and ps shows it:=20 >=20 > /usr/local/openjdk7/bin/java -DHUDSON_HOME=3D/home/hudson/webapps -Dj= ava.awt.headless=3Dtrue -jar /usr/local/share/hudson/hudson.war --logfi= le=3D/home/hudson/logs/hudson.log --webroot=3D/home/hudson/webapps/war = --httpListenAddress=3D127.0.0.1=20 >=20 > But it still generates the error ...=20 >=20 > 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 gener= ates generated to the screen ...=20 >=20 > I'm doing this all via ports ... did I miss a step? a dependency? O= r shouldn't openjdk7 be used at this time? If not, how safe is openjd= k6 then ... ?=20 >=20 > Thx=20 >=20 >=20 >=20 > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.or= g" - Achilleas Mantzios IT DEPT