From owner-freebsd-java@FreeBSD.ORG Sun Feb 23 18:08:56 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 68814C2C for ; Sun, 23 Feb 2014 18:08:56 +0000 (UTC) Received: from avasout06.plus.net (avasout06.plus.net [212.159.14.18]) by mx1.freebsd.org (Postfix) with ESMTP id C4488165A for ; Sun, 23 Feb 2014 18:08:55 +0000 (UTC) Received: from [192.168.1.78] ([87.112.224.216]) by avasout06 with smtp id Vu8s1n00D4glJkf01u8t3Q; Sun, 23 Feb 2014 18:08:54 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=dodVCjQ4 c=1 sm=1 tr=0 a=bgXbGjc1CwrTyPrQsCPHNQ==:117 a=bgXbGjc1CwrTyPrQsCPHNQ==:17 a=0Bzu9jTXAAAA:8 a=2YU7Ix1lbqoA:10 a=flBcMdbvP54A:10 a=ihvODaAuJD4A:10 a=EBOSESyhAAAA:8 a=FUorbQD8GGcA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=6I5d2MoRAAAA:8 a=tnuKCAGtNQqidUUiRYQA:9 a=wPNLvfGTeEIA:10 a=TNd1EgzxhGaE8D5s:21 a=_W_S_7VecoQA:10 Message-ID: <530A3932.7030307@mansionfamily.plus.com> Date: Sun, 23 Feb 2014 18:08:50 +0000 From: james User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-java@FreeBSD.org Subject: Trouble starting xwiki on FreeBSD 9.2, Could not initialize class sun.security.util.SecurityConstants Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: james@mansionfamily.plus.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2014 18:08:56 -0000 (Apologies if you've seen this on freebsd-questions, it went there by mistake) I'm having trouble getting xwiki to start, using jetty and openjdk7. I *have* managed to get it to work with openjdk6 (though I had to mess with memory parameters to do so) I have: root@nas:/usr/local/etc/rc.d # uname -a FreeBSD nas 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 root@nas:/usr/local/etc/rc.d # ps auxwww | grep jetty | grep -v grep www 1918 0.1 19.4 3714508 1545664 0 S 11:33AM 2:05.47 /usr/local/openjdk7/bin/java -Djetty.home=/usr/local/jetty -jar /usr/local/jetty/start.jar root@nas:/usr/local/etc/rc.d # grep jetty /etc/rc.conf jetty_enable="YES" jetty_java_version="1.7" root@nas:/usr/local/etc/rc.d # pkg search jetty jetty-8.1.11 (The above configured from pkg, with the version override to give me 1.7) I have configured for postgresql, and created the user and database. However, trying to browse to xwiki/ gives: HTTP ERROR 500 Problem accessing /xwiki/bin/view/Main/. Reason: Server Error Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.security.util.SecurityConstants at java.lang.Class.getProtectionDomain(Class.java:2181) at ch.qos.logback.classic.spi.PackagingDataCalculator.getCodeLocation(PackagingDataCalculator.java:165) at ch.qos.logback.classic.spi.PackagingDataCalculator.calculateByExactType(PackagingDataCalculator.java:123) at ch.qos.logback.classic.spi.PackagingDataCalculator.populateFrames(PackagingDataCalculator.java:95) at ch.qos.logback.classic.spi.PackagingDataCalculator.calculate(PackagingDataCalculator.java:55) at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:147) at ch.qos.logback.classic.spi.LoggingEvent.(LoggingEvent.java:129) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:439) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:395) at ch.qos.logback.classic.Logger.error(Logger.java:558) at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:206) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459) ... Any idea what I need to fix?