From owner-freebsd-java@FreeBSD.ORG Mon Nov 5 11:07:01 2007 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F00F716A4BF for ; Mon, 5 Nov 2007 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DFF5B13C4A6 for ; Mon, 5 Nov 2007 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id lA5B709g026356 for ; Mon, 5 Nov 2007 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id lA5B70g8026352 for freebsd-java@FreeBSD.org; Mon, 5 Nov 2007 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Nov 2007 11:07:00 GMT Message-Id: <200711051107.lA5B70g8026352@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 11:07:01 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java java/jdk14 - Unsafe use of getaddrinfo in jvm 1.4.2-p5 f java/72151 java JVM crash on 5.2.1-R o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/110912 java Java krb5 client leaks UDP connections o java/112595 java Java appletviewer frequently hangs (kse_release loop) o ports/113467 java Multiple "missing return value" errors building JDK on o java/114644 java tomcat goes out of PermSpace, jvm crashes 7 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- f ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext f java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires o java/97461 java Diablo JDK does not report Update level in a format su o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/115279 java [UPDATE] java/java3d to 1.5.1 o java/115773 java java.nio channel selectors should use kqueue/kevent in o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 10 problems total. From owner-freebsd-java@FreeBSD.ORG Wed Nov 7 08:12:40 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B424816A419 for ; Wed, 7 Nov 2007 08:12:40 +0000 (UTC) (envelope-from luca@morettoni.net) Received: from gighen.tomato.it (gighen.tomato.it [213.92.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id DFC0D13C48D for ; Wed, 7 Nov 2007 08:12:39 +0000 (UTC) (envelope-from luca@morettoni.net) Received: (qmail 92726 invoked from network); 7 Nov 2007 07:45:33 -0000 Received: from host176-190-dynamic.1-87-r.retail.telecomitalia.it (HELO ?127.0.0.1?) (87.1.190.176) by 172.16.7.11 with SMTP; 7 Nov 2007 07:45:33 -0000 Message-ID: <47316D01.3050800@morettoni.net> Date: Wed, 07 Nov 2007 08:45:05 +0100 From: Luca Morettoni User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-java@FreeBSD.org X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 071106-0, 06/11/2007), Outbound message X-Antivirus-Status: Clean Cc: Subject: Glassfish v2 on FreeBSD X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 08:12:40 -0000 I need to do some tests on glassfish over FreeBSD but on internet I found only this tutorial: http://blogs.sun.com/hyau/entry/glassfish_on_freebsd_too anybody have installed glassfish on recent FreeBSD (>= 6.2)? Any benchmark? Thanks! -- Luca Morettoni - http://morettoni.net GUFI staff/core member - http://gufi.org Thawte notary (25 pts) | FreeSBIE developer jugUmbria founder - https://jugUmbria.dev.java.net/ From owner-freebsd-java@FreeBSD.ORG Wed Nov 7 18:36:16 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A31B316A41A; Wed, 7 Nov 2007 18:36:16 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from outcold.yadt.co.uk (outcold.yadt.co.uk [81.187.204.178]) by mx1.freebsd.org (Postfix) with ESMTP id 0B99013C48E; Wed, 7 Nov 2007 18:36:15 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from localhost (localhost [127.0.0.1]) by outcold.yadt.co.uk (Postfix) with ESMTP id AFA413424; Wed, 7 Nov 2007 18:19:02 +0000 (GMT) X-Virus-Scanned: amavisd-new at yadt.co.uk Received: from outcold.yadt.co.uk ([127.0.0.1]) by localhost (outcold.yadt.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hc9-ufVWd2PS; Wed, 7 Nov 2007 18:18:57 +0000 (GMT) Received: by outcold.yadt.co.uk (Postfix, from userid 1001) id 76AA4341D; Wed, 7 Nov 2007 18:18:57 +0000 (GMT) Date: Wed, 7 Nov 2007 18:18:57 +0000 From: David Taylor To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org Message-ID: <20071107181857.GA35213@outcold.yadt.co.uk> Mail-Followup-To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: FreeBSD 7 and java networking X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 18:36:16 -0000 Hello, I'm having terrible problems getting java working properly on FreeBSD-7. I've tried java/diablo-jdk15 -- this doesn't work very well at all. It coredumps running azureus and behaves very oddly running jbidwatcher (my two current "test applications"). java/linux-sun-jdk15 and java/linux-sun-jdk16 do work with jbidwatcher. In fact it seems to be fine (I had some problem with _all_ the jdks disliking a MAXDSIZ greater than 900MB). However, azureus cannot be compiled (or run) against a non-native jdk, so I need to compile my own... I've tried compiling java/jdk15 and java/jdk16 bootstrapping with all three binary jdks (diablo 1.5, linux 1.5, linux 1.6). They all give the same problem: Running jbidwatcher or azureus results in a mass of messages like the following, whenever network IO is attempted: java.net.ConnectException: Invalid argument at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1223) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1217) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:906) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at Http.receiveData(Unknown Source) at Http.receivePage(Unknown Source) at ebayServer.getSignInCookie(Unknown Source) at ebayServer.getSignInCookie(Unknown Source) at ebayServer.getNecessaryCookie(Unknown Source) at ebayServer.messageAction(Unknown Source) at PlainMessageQueue.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) Caused by: java.net.ConnectException: Invalid argument at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:520) at sun.net.NetworkClient.doConnect(NetworkClient.java:155) at sun.net.www.http.HttpClient.openServer(HttpClient.java:387) at sun.net.www.http.HttpClient.openServer(HttpClient.java:522) at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:1956) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFieldKey(HttpsURLConnectionImpl.java:287) at CookieJar.getAllCookiesFromPage(Unknown Source) at CookieJar.getAllCookiesFromPage(Unknown Source) ... 6 more I've put the full output of jbidwatcher at: http://www.yadt.co.uk/~davidt/java/jbidwatcher.out There is also: http://www.yadt.co.uk/~davidt/java/ifconfig.out http://www.yadt.co.uk/~davidt/java/dmesg.out http://www.yadt.co.uk/~davidt/java/make.conf http://www.yadt.co.uk/~davidt/java/kernel-config http://www.yadt.co.uk/~davidt/java/loader.conf If anyone has _any_ ideas (or needs any other information), please let me know... This is driving me nuts! I briefly tried writing a small java testcase to trigger the problem, but my java is rusty and I ran out of time and patience -- my extremely brief test seemed to work ok and I started to think it may be related to multi-threading... If I can't fix it any other way, I'll give it another shot. -- David Taylor From owner-freebsd-java@FreeBSD.ORG Wed Nov 7 18:40:39 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B67316A420 for ; Wed, 7 Nov 2007 18:40:39 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8AEE813C4B8 for ; Wed, 7 Nov 2007 18:40:39 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 001AE17115; Wed, 7 Nov 2007 10:40:23 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id F023017110; Wed, 7 Nov 2007 10:40:23 -0800 (PST) Date: Wed, 7 Nov 2007 10:40:23 -0800 (PST) From: Nick Johnson X-X-Sender: spatula@turing To: David Taylor In-Reply-To: <20071107181857.GA35213@outcold.yadt.co.uk> Message-ID: <20071107103941.G46367@turing> References: <20071107181857.GA35213@outcold.yadt.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-java@freebsd.org Subject: Re: FreeBSD 7 and java networking X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 18:40:39 -0000 On Wed, 7 Nov 2007, David Taylor wrote: > I've tried compiling java/jdk15 and java/jdk16 bootstrapping with > all three binary jdks (diablo 1.5, linux 1.5, linux 1.6). > > They all give the same problem: > > Running jbidwatcher or azureus results in a mass of messages > like the following, whenever network IO is attempted: > > java.net.ConnectException: Invalid argument Did you try running it with -Djava.net.preferIPv4Stack=true ? Nick -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Wed Nov 7 20:05:37 2007 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57C9216A46B for ; Wed, 7 Nov 2007 20:05:37 +0000 (UTC) (envelope-from yhahn@pcsedu.com) Received: from office.permacrete.com (office.permacrete.com [69.38.113.77]) by mx1.freebsd.org (Postfix) with SMTP id DCD1313C4BD for ; Wed, 7 Nov 2007 20:05:36 +0000 (UTC) (envelope-from yhahn@pcsedu.com) Received: from [49.110.202.48] (helo=dujf) by office.permacrete.com with smtp (Exim 4.62 (FreeBSD)) id 1J~rD0-0003JQ-Qi; Wed, 7 Nov 2007 14:09:06 -0600 Message-ID: <47321A7B.5030607@humornsex.com> Date: Wed, 7 Nov 2007 14:05:15 -0600 From: User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: To much fun X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 20:05:37 -0000 I know you hate junk mail, but this is just plane old fun. http://121.114.134.186/ From owner-freebsd-java@FreeBSD.ORG Wed Nov 7 20:11:55 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2704316A420 for ; Wed, 7 Nov 2007 20:11:55 +0000 (UTC) (envelope-from peter.wullinger@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id CEE9613C4A6 for ; Wed, 7 Nov 2007 20:11:54 +0000 (UTC) (envelope-from peter.wullinger@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so370150ana for ; Wed, 07 Nov 2007 12:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:content-transfer-encoding:in-reply-to:user-agent; bh=oO7L8TcuKeG2juI7TCZRzV7zFcdh/j0Yz6OgteY/ZUA=; b=YPY7LSvLr9z4wUCm2vah0vp6xHkVQu8fAiE8ooxy/a4F8PmM6PpRw/Kz4b1Viij5cH5JXRWdcL4RjwuZHrXrCzSB6QaTbpiw+aQmijzMPI+dEYhN5hbck+BwVAo+N6j0wt0paz+9jk85wRBRAUKHn5vDJaLgukPuECS5ojF/7lA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:content-transfer-encoding:in-reply-to:user-agent; b=UVAl+en3SkyosR+sRrJ+ixU1bCK5YzTQ73b6t905XFCQFYu5PGIL9KHGGpX2oHWvKzqygJmdfe24M8DxFAPveOqx6CbPQ3N+u1Eh7jUppIiY3x8HPOaY8dGklk1zcjx9bJNuHA6yirY6M6Qs82DodpVd97jy+Q9dfZMGRABDoPs= Received: by 10.100.44.4 with SMTP id r4mr11438881anr.1194464813695; Wed, 07 Nov 2007 11:46:53 -0800 (PST) Received: from kaliope.wg ( [77.7.95.167]) by mx.google.com with ESMTPS id 2sm337718nfv.2007.11.07.11.46.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Nov 2007 11:46:51 -0800 (PST) Received: (qmail 2856 invoked by uid 1001); 7 Nov 2007 19:46:46 -0000 Date: Wed, 7 Nov 2007 20:46:46 +0100 From: Peter Wullinger To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org Message-ID: <20071107194646.GA2626@kaliope> References: <20071107181857.GA35213@outcold.yadt.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20071107181857.GA35213@outcold.yadt.co.uk> User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: Subject: Re: FreeBSD 7 and java networking X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 20:11:55 -0000 In epistula a David Taylor, die horaque Wed, Nov 07, 2007 at 06:18:57PM +0000: > Hello, > > I've tried compiling java/jdk15 and java/jdk16 bootstrapping with > all three binary jdks (diablo 1.5, linux 1.5, linux 1.6). > > They all give the same problem: Hello David, Have you tried setting export JAVAVAVM_OPTS_java=-Djava.net.preferIPv4Stack=true" export JAVAVAVM_OPTS_javaws="-J-Djava.net.preferIPv4Stack=true" If this helps, the problem maybe related to http://lists.freebsd.org/pipermail/freebsd-java/2007-August/006544.html I can't find a PR for that currently, so I don't know if this is known (and both problems are the same). Regards, PEter -- Alte Leute sind gefährlich, denn sie fürchten sich nicht vor der Zukunft. -- Sir Peter Ustinov From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 08:17:48 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E37D616A468 for ; Thu, 8 Nov 2007 08:17:48 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 8986F13C4B0 for ; Thu, 8 Nov 2007 08:17:48 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 1935 invoked from network); 8 Nov 2007 02:11:00 -0600 Received: from 124-170-22-248.dyn.iinet.net.au (HELO localhost) (124.170.22.248) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Nov 2007 02:11:00 -0600 Date: Thu, 8 Nov 2007 19:10:52 +1100 From: Norberto Meijome To: FreeBSD Java ML Message-ID: <20071108191052.3cf8ed20@meijome.net> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: Javavm , 1.5 vs 1.6 under 7 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 08:17:49 -0000 hi there, I have the following VMs installed: [betom@ayiin] [Thu Nov 8 19:05:28 2007] /usr/home/betom $ pkg_info | grep jdk jdk-1.5.0.13p7,1 Java Development Kit 1.5.0 jdk-1.6.0.2p2 Java Development Kit 1.6.0 [betom@ayiin] [Thu Nov 8 19:05:31 2007] /usr/home/betom $ cat /usr/local/etc/javavms=20 /usr/local/jdk1.6.0/bin/java /usr/local/jdk1.5.0/bin/java # FREEBSD-JDK1.5.0 $ uname -srv FreeBSD 7.0-BETA2 FreeBSD 7.0-BETA2 #2: Wed Nov 7 12:02:06 EST 200 =46rom man javavm:=20 [....] By default, javavm will select the most ``native'' and up to date version of the Java VM when a given symbolic link is used, invoking and passing the arguments to the matching executable within the chosen Java VM. T= he choice of Java VM may also be influenced by using environment variables to constrain the version, vendor and operating system of the Java VM. [...] I would expect javavm to pick 1.6 as the default VM, but it picks 1.5 $ java -version java version "1.5.0_13-p7" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-p7-root_08= _nov_2007_16_03) Java HotSpot(TM) Client VM (build 1.5.0_13-p7-root_08_nov_2007_16_03, mixed= mode It works ok if I export JAVA_VERSION=3D1.6 to my environment, but I wonder = why 1.5 is considered the "more native and up to date version of the Java V= M" thanks, B _________________________ {Beto|Norberto|Numard} Meijome "Great spirits have often encountered violent opposition from mediocre mind= s." Albert Einstein I speak for myself, not my employer. Contents may be hot. Slippery when wet= . Reading disclaimers makes you go blind. Writing them is worse. You have b= een Warned. From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 11:12:30 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9509E16A417 for ; Thu, 8 Nov 2007 11:12:30 +0000 (UTC) (envelope-from calvin.varney@gmail.com) Received: from mxsrv2.tranzpeer.net (mxsrv2.tranzpeer.net [202.180.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id 5A99D13C4A8 for ; Thu, 8 Nov 2007 11:12:30 +0000 (UTC) (envelope-from calvin.varney@gmail.com) Received: from 202-180-123-137.jetbuster.co.nz ([202.180.123.137] helo=[192.168.1.10]) by mxsrv2.tranzpeer.net with ESMTP (Exim 4.50) id 1Iq4H8-0005cQ-HW for freebsd-java@FreeBSD.org; Thu, 08 Nov 2007 23:06:14 +1300 From: Calvin Varney To: freebsd-java@FreeBSD.org In-Reply-To: <47316D01.3050800@morettoni.net> References: <47316D01.3050800@morettoni.net> Content-Type: text/plain Date: Thu, 08 Nov 2007 22:06:05 +1300 Message-Id: <1194512765.1550.10.camel@exponent> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Subject: Re: Glassfish v2 on FreeBSD X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 11:12:30 -0000 I followed those instructions to get v1 working. All went fine but I only played with a few examples and have yet to use it on a real project. No benchmarks sorry, but sun claim its the fastest app server out there... v2 should be easier still to install, it no longer has dependencies on NSS/NSPR stuff. I'm yet to find time to try it out but will be interested to hear how you get on ;-) NetBeans 6 may also be an option. I remember it (or some edition of it) comes bundled with glassfish and recall seeing some guys building it from source on FreeBSD. cheers Calvin. On Wed, 2007-11-07 at 08:45 +0100, Luca Morettoni wrote: > I need to do some tests on glassfish over FreeBSD but on internet I > found only this tutorial: > > http://blogs.sun.com/hyau/entry/glassfish_on_freebsd_too > > anybody have installed glassfish on recent FreeBSD (>= 6.2)? Any benchmark? > > Thanks! From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 11:25:28 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2F7F16A417 for ; Thu, 8 Nov 2007 11:25:28 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by mx1.freebsd.org (Postfix) with ESMTP id 2B74E13C481 for ; Thu, 8 Nov 2007 11:25:27 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [195.241.149.28] (helo=guido.klop.ws) by smtp-out3.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1Iq5Eu-0007vo-R0 for ; Thu, 08 Nov 2007 12:08:01 +0100 Received: (qmail 28603 invoked from network); 8 Nov 2007 11:07:57 -0000 Received: from localhost (HELO guido.klop.ws) (127.0.0.1) by localhost with SMTP; 8 Nov 2007 11:07:57 -0000 To: "Norberto Meijome" , "FreeBSD Java ML" From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <20071108191052.3cf8ed20@meijome.net> Content-Transfer-Encoding: Quoted-Printable Date: Thu, 08 Nov 2007 12:07:55 +0100 Message-ID: In-Reply-To: <20071108191052.3cf8ed20@meijome.net> User-Agent: Opera Mail/9.24 (FreeBSD) Cc: Subject: Re: Javavm , 1.5 vs 1.6 under 7 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 11:25:28 -0000 On Thu, 08 Nov 2007 09:10:52 +0100, Norberto Meijome = wrote: > hi there, > I have the following VMs installed: > [betom@ayiin] [Thu Nov 8 19:05:28 2007] > /usr/home/betom > $ pkg_info | grep jdk > jdk-1.5.0.13p7,1 Java Development Kit 1.5.0 > jdk-1.6.0.2p2 Java Development Kit 1.6.0 > > [betom@ayiin] [Thu Nov 8 19:05:31 2007] > /usr/home/betom > $ cat /usr/local/etc/javavms > /usr/local/jdk1.6.0/bin/java > /usr/local/jdk1.5.0/bin/java # FREEBSD-JDK1.5.0 > > $ uname -srv > FreeBSD 7.0-BETA2 FreeBSD 7.0-BETA2 #2: Wed Nov 7 12:02:06 EST 200 > > From man javavm: > [....] > > By default, javavm will select the most ``native'' and up to date = > version > of the Java VM when a given symbolic link is used, invoking and = > passing > the arguments to the matching executable within the chosen Java = > VM. The > choice of Java VM may also be influenced by using environment = > variables > to constrain the version, vendor and operating system of the Java= = > VM. > > [...] > > I would expect javavm to pick 1.6 as the default VM, but it picks 1.5 > > $ java -version > java version "1.5.0_13-p7" > Java(TM) 2 Runtime Environment, Standard Edition (build = > 1.5.0_13-p7-root_08_nov_2007_16_03) > Java HotSpot(TM) Client VM (build 1.5.0_13-p7-root_08_nov_2007_16_03, = = > mixed mode > > It works ok if I export JAVA_VERSION=3D1.6 to my environment, but I wo= nder = > why 1.5 is considered the "more native and up to date version of the = > Java VM" > > thanks, > B Do you have JAVA_HOME set? -- = Ronald Klop Amsterdam, The Netherlands From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 13:27:55 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92D2416A479 for ; Thu, 8 Nov 2007 13:27:55 +0000 (UTC) (envelope-from peter.wullinger@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.freebsd.org (Postfix) with ESMTP id 3FF4813C4C5 for ; Thu, 8 Nov 2007 13:27:54 +0000 (UTC) (envelope-from peter.wullinger@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so143323wxd for ; Thu, 08 Nov 2007 05:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; bh=NBxgbTpdav+dNxYSSRWQUgQpjylOUdhkk6CXDq1o9WI=; b=CngnxB6KK10d1WAeNd86WEDQ14aMpzgEbnW9MdT0h+/B0NxfJWuyYmGBthVTEzULfpzzGMrsQiuGkEeBsIu9ihGz2rpGoXrOS6AgqCsZQSQGgyns/gRnsowI2+rJW0HeE/N7N1UBHuAZanKR+7lNNcwS+Rnc2WZi8IZ/E1Gs0t4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=JZlZV7Gg3KSQghsTfEyQHQ8eKrCrOKr6hdKmhN2RiaW5VQdfNOENMYizvwZAyzA5dDKNnvIc4bYuN0NZDwDkperFYGGLu7m9zJX03jjmURahdaSePj516kyJLN3Xgh9mhwEIB1pnhrEdaDcLoj6u1y3yk/6OdYMhEpVuPmnSi7o= Received: by 10.90.100.2 with SMTP id x2mr474576agb.1194528465404; Thu, 08 Nov 2007 05:27:45 -0800 (PST) Received: by 10.90.33.3 with HTTP; Thu, 8 Nov 2007 05:27:45 -0800 (PST) Message-ID: Date: Thu, 8 Nov 2007 14:27:45 +0100 From: "Peter Wullinger" To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org In-Reply-To: <20071107194646.GA2626@kaliope> MIME-Version: 1.0 References: <20071107181857.GA35213@outcold.yadt.co.uk> <20071107194646.GA2626@kaliope> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: FreeBSD 7 and java networking X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: peter.wullinger@googlemail.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 13:27:55 -0000 2007/11/7, Peter Wullinger : > > In epistula a David Taylor, die horaque Wed, Nov 07, 2007 at 06:18:57PM > +0000: > > Hello, > > > > I've tried compiling java/jdk15 and java/jdk16 bootstrapping with > > all three binary jdks (diablo 1.5, linux 1.5, linux 1.6). > > > > They all give the same problem: > > Hello David, > > Have you tried setting > > export JAVAVAVM_OPTS_java=-Djava.net.preferIPv4Stack=true" > export JAVAVAVM_OPTS_javaws="-J-Djava.net.preferIPv4Stack=true" of course this has to be JAVAVM_OPTS_java and JAVAVM_OPTS_javawm .. Peter From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 14:39:16 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0212E16A419 for ; Thu, 8 Nov 2007 14:39:16 +0000 (UTC) (envelope-from djp@polands.org) Received: from ms-smtp-01.rdc-kc.rr.com (ms-smtp-01.rdc-kc.rr.com [24.94.166.115]) by mx1.freebsd.org (Postfix) with ESMTP id 2A40D13C4B6 for ; Thu, 8 Nov 2007 14:39:11 +0000 (UTC) (envelope-from djp@polands.org) Received: from corinth.polands.org (CPE-75-87-219-217.new.res.rr.com [75.87.219.217]) by ms-smtp-01.rdc-kc.rr.com (8.13.6/8.13.6) with ESMTP id lA8DQZtU022938; Thu, 8 Nov 2007 07:26:40 -0600 (CST) Received: from ammon.polands.org (ammon.polands.org [172.16.1.7]) by corinth.polands.org (8.13.8/8.13.8) with ESMTP id lA8DUUME019439; Thu, 8 Nov 2007 07:30:30 -0600 (CST) (envelope-from djp@polands.org) Received: from ammon.polands.org (localhost [127.0.0.1]) by ammon.polands.org (8.13.8/8.13.8) with ESMTP id lA8DUT19009444; Thu, 8 Nov 2007 07:30:29 -0600 (CST) (envelope-from djp@ammon.polands.org) Received: (from djp@localhost) by ammon.polands.org (8.13.8/8.13.8/Submit) id lA8DUTZm009443; Thu, 8 Nov 2007 07:30:29 -0600 (CST) (envelope-from djp) Date: Thu, 8 Nov 2007 07:30:29 -0600 From: Doug Poland To: Calvin Varney Message-ID: <20071108133028.GA9408@polands.org> References: <47316D01.3050800@morettoni.net> <1194512765.1550.10.camel@exponent> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1194512765.1550.10.camel@exponent> User-Agent: Mutt/1.5.11 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: ClamAV 0.88.4/4708/Thu Nov 8 00:07:54 2007 on corinth.polands.org X-Virus-Status: Clean Cc: luca@morettoni.net, freebsd-java@freebsd.org Subject: Re: Glassfish v2 on FreeBSD X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 14:39:16 -0000 On Thu, Nov 08, 2007 at 10:06:05PM +1300, Calvin Varney wrote: > On Wed, 2007-11-07 at 08:45 +0100, Luca Morettoni wrote: > > I need to do some tests on glassfish over FreeBSD but on internet I > > found only this tutorial: > > > > http://blogs.sun.com/hyau/entry/glassfish_on_freebsd_too > > > > anybody have installed glassfish on recent FreeBSD (>= 6.2)? Any > > benchmark? > > > I followed those instructions to get v1 working. All went fine but I > only played with a few examples and have yet to use it on a real > project. No benchmarks sorry, but sun claim its the fastest app server > out there... > > v2 should be easier still to install, it no longer has dependencies on > NSS/NSPR stuff. I'm yet to find time to try it out but will be > interested to hear how you get on ;-) > > NetBeans 6 may also be an option. I remember it (or some edition of > it) comes bundled with glassfish and recall seeing some guys building > it from source on FreeBSD. > Netbeans 6.0 Beta 2 builds from souce quite nicely on 7.0 (also beta 2). Note: you must use java 1.5 to build netbeans 6. I haven't had a need to use glassfish but it appears as an available server in the menu structure/dialog. -- Regards, Doug From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 18:11:11 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E23B16A41A for ; Thu, 8 Nov 2007 18:11:11 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from outcold.yadt.co.uk (outcold.yadt.co.uk [81.187.204.178]) by mx1.freebsd.org (Postfix) with ESMTP id F126213C4B9 for ; Thu, 8 Nov 2007 18:11:10 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from localhost (localhost [127.0.0.1]) by outcold.yadt.co.uk (Postfix) with ESMTP id 24BB16184; Thu, 8 Nov 2007 18:11:03 +0000 (GMT) X-Virus-Scanned: amavisd-new at yadt.co.uk Received: from outcold.yadt.co.uk ([127.0.0.1]) by localhost (outcold.yadt.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FcafSR74tDXX; Thu, 8 Nov 2007 18:10:56 +0000 (GMT) Received: by outcold.yadt.co.uk (Postfix, from userid 1001) id 3B177617B; Thu, 8 Nov 2007 18:10:56 +0000 (GMT) Date: Thu, 8 Nov 2007 18:10:56 +0000 From: David Taylor To: Nick Johnson Message-ID: <20071108181055.GA20748@outcold.yadt.co.uk> References: <20071107181857.GA35213@outcold.yadt.co.uk> <20071107103941.G46367@turing> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20071107103941.G46367@turing> User-Agent: Mutt/1.4.2.3i Cc: freebsd-java@freebsd.org Subject: Re: FreeBSD 7 and java networking X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 18:11:11 -0000 On Wed, 07 Nov 2007, Nick Johnson wrote: > On Wed, 7 Nov 2007, David Taylor wrote: > > > I've tried compiling java/jdk15 and java/jdk16 bootstrapping with > > all three binary jdks (diablo 1.5, linux 1.5, linux 1.6). > > > > They all give the same problem: > > > > Running jbidwatcher or azureus results in a mass of messages > > like the following, whenever network IO is attempted: > > > > java.net.ConnectException: Invalid argument > > Did you try running it with -Djava.net.preferIPv4Stack=true ? Thank you! As it turns out, I'd just noticed the global "WITH_IPV6=yes" that I'd put in /etc/make.conf, and started recompiling java without IPv6 support shortly before you sent that message. I had already tried (both native jdks) with IPV6 turned off in the "make config" menu -- or so I thought -- but my choice was overriden by that forgotten entry. The IPv6-less jdk works perfectly, now all that remains is to figure out why IPv6 support has stopped working... I'm fairly sure it worked fine before I switched motherboards and upgraded to 7-CURRENT (now stable, or beta, or whatever). -- David Taylor From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 21:26:26 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B13C216A418 for ; Thu, 8 Nov 2007 21:26:26 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 62A4D13C491 for ; Thu, 8 Nov 2007 21:26:26 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 2035 invoked from network); 8 Nov 2007 15:26:20 -0600 Received: from 124-170-22-248.dyn.iinet.net.au (HELO localhost) (124.170.22.248) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Nov 2007 15:26:20 -0600 Date: Fri, 9 Nov 2007 08:26:09 +1100 From: Norberto Meijome To: "Ronald Klop" Message-ID: <20071109082609.3cc5f827@meijome.net> In-Reply-To: References: <20071108191052.3cf8ed20@meijome.net> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Java ML Subject: Re: Javavm , 1.5 vs 1.6 under 7 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 21:26:26 -0000 On Thu, 08 Nov 2007 12:07:55 +0100 "Ronald Klop" wrote: > > Do you have JAVA_HOME set? > nope [betom@ayiin] [Fri Nov 9 08:25:37 2007] /usr/home/betom $ echo $JAVA_HOME thx _________________________ {Beto|Norberto|Numard} Meijome "Unix is very simple, but it takes a genius to understand the simplicity." Dennis Ritchie I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 23:55:36 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3583716A419 for ; Thu, 8 Nov 2007 23:55:36 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 0508013C4DD for ; Thu, 8 Nov 2007 23:55:35 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 21242 invoked from network); 8 Nov 2007 17:55:20 -0600 Received: from 124-170-22-248.dyn.iinet.net.au (HELO localhost) (124.170.22.248) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Nov 2007 17:55:19 -0600 Date: Fri, 9 Nov 2007 10:55:08 +1100 From: Norberto Meijome To: FreeBSD Java ML Message-ID: <20071109105508.7867bd5a@meijome.net> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Java Plugin, FFox 2, Fbsd7 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 23:55:36 -0000 Hi list, I have ffox 2, jdk1.5 and .16 installed and working ok for other programs. I have the 1.5 plugin loaded and recognised OK in about:plugins: [betom@ayiin] [Fri Nov 9 10:41:19 2007] /usr/local/lib/browser_plugins $ sudo ln -s /usr/local/jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so When I try to load Sun's applet test ( http://www.java.com/en/download/help/testvm.xml ) , but I get this in the java console , and the applet doesn't load : Java Plug-in 1.5.0_13 Using JRE version 1.5.0_13-p7 Java HotSpot(TM) Client VM User home directory = /home/betom ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging p: reload proxy configuration q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to ---------------------------------------------------- load: class testvmDynamicJavaCom.class not found. java.lang.ClassNotFoundException: testvmDynamicJavaCom.class at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599) at sun.applet.AppletPanel.createApplet(AppletPanel.java:723) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1815) at sun.applet.AppletPanel.runLoader(AppletPanel.java:652) at sun.applet.AppletPanel.run(AppletPanel.java:326) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271) at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44) at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155) ... 9 more ----------------------------- I tested it with JAVA_HOME unset (my default) and with JAVA_HOME set to /usr/local/jdk.1.5.0/, with JAVA_VERSION set and unset. When I try another applet, randomly on the web ( http://www.java.com/en/download/help/testvm.xml ) , i get the following too Java Plug-in 1.5.0_13 Using JRE version 1.5.0_13-p7 Java HotSpot(TM) Client VM User home directory = /home/betom ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging p: reload proxy configuration q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to ---------------------------------------------------- load: class testvmDynamicJavaCom.class not found. java.lang.ClassNotFoundException: testvmDynamicJavaCom.class at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599) at sun.applet.AppletPanel.createApplet(AppletPanel.java:723) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1815) at sun.applet.AppletPanel.runLoader(AppletPanel.java:652) at sun.applet.AppletPanel.run(AppletPanel.java:326) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271) at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44) at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155) ... 9 more load: class ping2.class not found. java.lang.ClassNotFoundException: ping2.class at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599) at sun.applet.AppletPanel.createApplet(AppletPanel.java:723) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1815) at sun.applet.AppletPanel.runLoader(AppletPanel.java:652) at sun.applet.AppletPanel.run(AppletPanel.java:326) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271) at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44) at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155) ... 9 more -------------------------------- If i load the 1.6 plugin instead, i get the same result, BUT ffox locks up , using over 60% CPU non stop. FFox stops refreshing its window , and I have to kill it. The environment is the same on 6.2 (eg, no lib paths defined,etc), but never had this problem... Any pointers? ( I reiterate, Eclipse, freemind, yed, Lucene's Luke analyzer, and others work just fine) thanks, B _________________________ {Beto|Norberto|Numard} Meijome Software QA is like cleaning my cat's litter box: Sift out the big chunks. Stir in the rest. Hope it doesn't stink. I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. From owner-freebsd-java@FreeBSD.ORG Fri Nov 9 13:34:01 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57C1E16A41A for ; Fri, 9 Nov 2007 13:34:01 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from banan.pingpong.net (banan.pingpong.net [213.136.40.205]) by mx1.freebsd.org (Postfix) with ESMTP id 01C4E13C4C1 for ; Fri, 9 Nov 2007 13:34:00 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from rambutan.pingpong.net (rambutan.pingpong.net [192.168.1.187]) by banan.pingpong.net (Postfix) with ESMTP id DB7331CC84; Fri, 9 Nov 2007 14:17:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by rambutan.pingpong.net (8.14.1/8.14.1) with ESMTP id lA9DHoav007410; Fri, 9 Nov 2007 14:17:51 +0100 (CET) (envelope-from girgen@FreeBSD.org) Date: Fri, 09 Nov 2007 14:17:50 +0100 From: Palle Girgensohn To: Greg Lewis , Dominic Bishop Message-ID: In-Reply-To: <20070507160709.GC36747@misty.eyesbeyond.com> References: <20070430023320.5342813C457@mx1.freebsd.org> <20070507160709.GC36747@misty.eyesbeyond.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: freebsd-java@FreeBSD.org Subject: Re: diablo-jdk and jmap etc tools X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 13:34:01 -0000 --On m=E5ndag, maj 07, 2007 09.07.09 -0700 Greg Lewis=20 wrote: > On Mon, Apr 30, 2007 at 03:06:48AM +0100, Dominic Bishop wrote: >> I'm currently trying to analyse memory usage etc in some java >> applications running on FreeBSD and whilst googling came across mention >> of tools such as jmap, jstack and so on in the JDK distribution. >> I cannot however get any of these to work, I set my JAVA_HOME >> environment to the jdk dir but still get the following error with all of >> them (or equivalent error anyway): >> >> %jmap >> Exception in thread "main" java.lang.NoClassDefFoundError: >> sun/jvm/hotspot/tools/Jmap >> >> Have I forgotten to do something or is it just the case that these tools >> are non-functional on FreeBSD. I did briefly browse the JDK jars on the >> machine and couldn't actually find the class it is looking for, or the >> equivalent ones for other tools like jstack, jsadebug etc which fail >> with similar messages. >> >> System is: >> FreeBSD 6.2-RELEASE-p3 i386 >> diablo-jdk-1.5.0.07.01_3 > > Looks like the appropriate classes aren't being compiled in. That might > be fixable by simply finding where they get compiled and enabling it, but > its more likely that there is a native piece associated with those tools > which hasn't been ported. You'd need to dig into the code to find out = for > sure. This is an old discussion; any news? I badly need jmap to trace=20 PermGenSpace problems. Can we run it with diablo? /Palle From owner-freebsd-java@FreeBSD.ORG Fri Nov 9 21:39:48 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5DFA16A417 for ; Fri, 9 Nov 2007 21:39:48 +0000 (UTC) (envelope-from james@mansionfamily.plus.com) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by mx1.freebsd.org (Postfix) with ESMTP id 5837413C48A for ; Fri, 9 Nov 2007 21:39:45 +0000 (UTC) (envelope-from james@mansionfamily.plus.com) Received: from [80.229.150.39] (helo=mansionfamily.plus.com) by pih-relay05.plus.net with esmtp (Exim) id 1Iqb9U-0001Pm-1E for freebsd-java@freebsd.org; Fri, 09 Nov 2007 21:12:32 +0000 Received: from [192.168.0.87] ([192.168.0.87]:1751) by mansionfamily.plus.com with [XMail 1.22 ESMTP Server] id for from ; Fri, 9 Nov 2007 21:16:59 -0000 Message-ID: <4734CD95.6070104@mansionfamily.plus.com> Date: Fri, 09 Nov 2007 21:13:57 +0000 From: James Mansion User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Cut down JRE X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 21:39:48 -0000 I've assembled a small image for automation by hacking things from the Sun JRE. I believe this may be somewhat against the diablo licenses if it goes beyong my own research use, since its clearly not 'Java' any more. I'd like something that doesn't have an infectious license, so I need at least a 'classpath exception'. It seems that once OpenJDK is available that will circumvent the license issue, as would Harmony - but I can't see muh discussion of either with respect to FreeBSD. Does anyone know what the state of either of those is? The bits I ripped out of rt.jar and the i386 directory was graphics and multimedia, so if those bits aren't complete I don't mind. I do mind whether rxtx works though. James From owner-freebsd-java@FreeBSD.ORG Fri Nov 9 22:23:26 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B68616A504 for ; Fri, 9 Nov 2007 22:23:26 +0000 (UTC) (envelope-from andy@triera.net) Received: from md2.t-2.net (84-255-209-81.static.t-2.net [84.255.209.81]) by mx1.freebsd.org (Postfix) with ESMTP id 3F10E13C4B6 for ; Fri, 9 Nov 2007 22:23:25 +0000 (UTC) (envelope-from andy@triera.net) Received: from [192.168.4.14] ([86.58.35.102]) by md2.t-2.net (MOS 3.8.5-GA) with ESMTP id BZW28977 (AUTH andy@t-2.net); Fri, 9 Nov 2007 23:20:45 +0100 (CET) Message-ID: <4734DD46.2060002@triera.net> Date: Fri, 09 Nov 2007 23:20:54 +0100 From: Andy Rozman User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: James Mansion References: <4734CD95.6070104@mansionfamily.plus.com> In-Reply-To: <4734CD95.6070104@mansionfamily.plus.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=10/150, host=md2.t-2.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A010205.4734DBEA.00E9,ss=1,fgs=0, ip=192.168.4.14, so=2007-07-31 18:51:00, dmn=5.4.3/2007-10-18 Cc: freebsd-java@freebsd.org Subject: Re: Cut down JRE X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 22:23:26 -0000 James Mansion wrote: > Does anyone know what the state of either of those is? The bits I > ripped out of > rt.jar and the i386 directory was graphics and multimedia, so if those > bits > aren't complete I don't mind. I do mind whether rxtx works though. > > James > Hi James ! Rxtx is external library and I think that is not dependant on any "extended" classes. You should probably go through all imports in rxtx jar classes, to verify this. Ok. I have gone through it (fast, not very detailed) java.io.* java.util.* java.util.logging.* java.io.* java.awt.* java.awt.event.* Hope this helps a litlle. You did mean rxtx COM API right? Andy > _______________________________________________ > 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" > From owner-freebsd-java@FreeBSD.ORG Sat Nov 10 12:26:14 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E82816A419 for ; Sat, 10 Nov 2007 12:26:14 +0000 (UTC) (envelope-from mark.hindess@googlemail.com) Received: from pih-relay06.plus.net (pih-relay06.plus.net [212.159.14.133]) by mx1.freebsd.org (Postfix) with ESMTP id 50FB113C4B3 for ; Sat, 10 Nov 2007 12:26:14 +0000 (UTC) (envelope-from mark.hindess@googlemail.com) Received: from [81.174.247.202] (helo=anaheim.local) by pih-relay06.plus.net with esmtp (Exim) id 1IqnFT-0002MA-4S for freebsd-java@freebsd.org; Sat, 10 Nov 2007 10:07:31 +0000 X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-10) with nmh-1.1 In-reply-to: <4734CD95.6070104@mansionfamily.plus.com> References: <4734CD95.6070104@mansionfamily.plus.com> Comments: In-reply-to James Mansion message dated "Fri, 09 Nov 2007 21:13:57 +0000." From: Mark Hindess To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Nov 2007 10:07:09 +0000 Message-Id: <20071110122614.50FB113C4B3@mx1.freebsd.org> Subject: Re: Cut down JRE X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 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 2007 12:26:14 -0000 On 9 November 2007 at 21:13, James Mansion wrote: > > I've assembled a small image for automation by hacking things from the > Sun JRE. > > I believe this may be somewhat against the diablo licenses if it goes > beyong my own research use, since its clearly not 'Java' any more. > > I'd like something that doesn't have an infectious license, so I need > at least a 'classpath exception'. The Harmony license is pretty liberal - but it may never be Java(tm). However it sounds like this isn't particularly important to you. Harmony has fairly module structure so (once it is working!) it shouldn't be too difficult to strip it down. > It seems that once OpenJDK is available that will circumvent the > license issue, as would Harmony - but I can't see muh discussion of > either with respect to FreeBSD. This is the most recent relevant Harmony thread: http://thread.gmane.org/gmane.comp.java.harmony.devel/30120 If anyone is inclined to help, I don't think it would be that difficult to get it working. (I'm making slow progress but pretty much everyone on this list will be more familiar with FreeBSD than I am.) Potential Harmony contributors should to read: http://harmony.apache.org/contribution_policy.html particularly if you've worked on Sun code but this is the price we pay to ensure cleanliness of our code base and keep the liberal Apache License. Harmony is not yet complete but should certainly be sufficient for the packages Andy mentioned on this thread. Regards, -Mark