From owner-freebsd-java@FreeBSD.ORG Sun Dec 14 06:25:12 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B01ED16A4CF for ; Sun, 14 Dec 2003 06:25:12 -0800 (PST) Received: from alpha.workingtechnology.co.uk (www.shavers.co.uk [81.109.162.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53A9D43D35 for ; Sun, 14 Dec 2003 06:25:10 -0800 (PST) (envelope-from andrew@shavers.co.uk) Received: from laptop (host213-123-251-200.in-addr.btopenworld.com [213.123.251.200]) by alpha.workingtechnology.co.uk (Postfix) with SMTP id 759752AB9D8 for ; Sun, 14 Dec 2003 14:23:44 +0000 (GMT) Message-ID: <006201c3c24e$13b8c660$0300a8c0@laptop> From: "Andrew Edwards (Olympic Shaver Centre)" To: Date: Sun, 14 Dec 2003 14:25:08 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: linux-sun-jdk14 port X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 14:25:12 -0000 Hi guys, Probably a simple one due to my noobness and apologies if it's old ground. What are the implications of the current port requesting 1.4.2_02 and Sun distributing 1.4.2_03? Would a simple rename and ignore the md5 hash work as nothing is being compiled, merely installed? Looking at distinfo diffs it suggests the port is periodically updated to match but currently they are showing out of sync. What's the usual lead time for updates? Thanks, Andrew. From owner-freebsd-java@FreeBSD.ORG Sun Dec 14 16:15:52 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9BDE16A4CE for ; Sun, 14 Dec 2003 16:15:52 -0800 (PST) Received: from mk-smarthost-4.mail.uk.tiscali.com (mk-smarthost-4.mail.uk.tiscali.com [212.74.114.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9853843D31 for ; Sun, 14 Dec 2003 16:15:51 -0800 (PST) (envelope-from colin.magee@tiscali.co.uk) Received: from [80.225.0.88] (helo=tiscali.co.uk) by mk-smarthost-4.mail.uk.tiscali.com with esmtp (Exim 4.24) id 1AVgOu-000713-7I for freebsd-java@freebsd.org; Mon, 15 Dec 2003 00:15:52 +0000 Message-ID: <3FDCFC96.4080308@tiscali.co.uk> Date: Mon, 15 Dec 2003 00:13:10 +0000 From: colin magee User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en, en-us MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: java plugin for netscape 7.1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 00:15:52 -0000 Hi, I've not subscribed to this list but have noticed a few questions about the fact Netscape 7.1 does not recognise the Java plugin but no answers. I've got the same problem - anyone know how to remedy it? many thanks From owner-freebsd-java@FreeBSD.ORG Sun Dec 14 17:11:35 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56E5416A4CE for ; Sun, 14 Dec 2003 17:11:35 -0800 (PST) Received: from oak.FernUni-Hagen.de (oak.fernuni-hagen.de [132.176.114.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2601F43D1F for ; Sun, 14 Dec 2003 17:11:34 -0800 (PST) (envelope-from q5480035@mailstore.FernUni-Hagen.de) Received: from amavis by oak.FernUni-Hagen.de with scanned-ok (Exim 4.04) id 1AVhGn-0007J0-00; Mon, 15 Dec 2003 02:11:33 +0100 Received: from mailstore.fernuni-hagen.de ([132.176.114.185]) by oak.FernUni-Hagen.de with esmtp (Exim 4.04) id 1AVhGg-0007Ia-00; Mon, 15 Dec 2003 02:11:26 +0100 Received: from [217.0.104.44] (account q5480035 HELO oranje.my.domain) by mailstore.fernuni-hagen.de (CommuniGate Pro SMTP 4.0.6) with ESMTP id 3073835; Mon, 15 Dec 2003 02:11:21 +0100 To: Herve Quiroz , freebsd-java@FreeBSD.ORG References: <20031210153012.GA54442@andouillette.esil.univ-mrs.fr> <200312120506.33539.x@Vex.Net> <20031212174557.GA75947@andouillette.esil.univ-mrs.fr> Message-ID: From: Marc van Woerkom Organization: =?iso-8859-1?Q?FernUniversit=E4t_in_Hagen?= Content-Type: text/plain; format=flowed; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 15 Dec 2003 02:10:14 +0100 In-Reply-To: <20031212174557.GA75947@andouillette.esil.univ-mrs.fr> User-Agent: Opera7.23/FreeBSD M2 build 516 X-Virus-Scanned: by AMaViS perl-11 Subject: Re: Building or running SWT applications with FreeBSD X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 01:11:35 -0000 On Fri, 12 Dec 2003 18:45:57 +0100, Herve Quiroz wrote: > Thanks to IBM for having Java platform-dependent afterall When was Java ever platform-independent? . See the long road to a FreeBSD native JDK for how platform-dependent Java really is. Client-side Java (J2SE) still runs best under Windows, even under Linux and Solaris, you have the one or other quirk. > But more seriously, it would be nice if there could be a swing port of > SWT. How many more platforms would that bring? Regards, Marc From owner-freebsd-java@FreeBSD.ORG Sun Dec 14 23:09:34 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C789416A4CF for ; Sun, 14 Dec 2003 23:09:34 -0800 (PST) Received: from smtp3.euronet.nl (smtp3.euronet.nl [194.134.35.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26DF743D33 for ; Sun, 14 Dec 2003 23:09:33 -0800 (PST) (envelope-from znerd@FreeBSD.org) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp3.euronet.nl (Postfix) with ESMTP id 2DA263A008; Mon, 15 Dec 2003 08:09:32 +0100 (MET) From: Ernst de Haan To: "Andrew Edwards (Olympic Shaver Centre)" , Date: Mon, 15 Dec 2003 08:09:35 +0100 User-Agent: KMail/1.5.4 References: <006201c3c24e$13b8c660$0300a8c0@laptop> In-Reply-To: <006201c3c24e$13b8c660$0300a8c0@laptop> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312150809.35023.znerd@FreeBSD.org> Subject: Re: linux-sun-jdk14 port X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 07:09:34 -0000 Andrew, > What are the implications of the current port requesting 1.4.2_02 and Sun > distributing 1.4.2_03? Would a simple rename and ignore the md5 hash work > as nothing is being compiled, merely installed? What needs doing is fetching the distro, remake the checksum, and change the Makefile to deal with the new start of the compressed archive in the .bin file. I'll see to this ASAP. > Looking at distinfo diffs it suggests the port is periodically updated to > match but currently they are showing out of sync. What's the usual lead > time for updates? Usually until somebody notices and sends an email to freebsd-java :-) Ernst From owner-freebsd-java@FreeBSD.ORG Sun Dec 14 23:10:21 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ED5516A4CE for ; Sun, 14 Dec 2003 23:10:21 -0800 (PST) Received: from smtp0.euronet.nl (smtp0.euronet.nl [194.134.35.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3E5F43D2D for ; Sun, 14 Dec 2003 23:10:19 -0800 (PST) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp0.euronet.nl (Postfix) with ESMTP id A385D2466B; Mon, 15 Dec 2003 08:10:18 +0100 (MET) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Sheldon Hearn , freebsd-java@FreeBSD.org Date: Mon, 15 Dec 2003 08:10:22 +0100 User-Agent: KMail/1.5.4 References: <20031213145040.GE13737@starjuice.net> In-Reply-To: <20031213145040.GE13737@starjuice.net> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312150810.22127.ernst.dehaan@nl.wanadoo.com> Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 07:10:21 -0000 Sheldon, > Is there a way to enable debugging on the Tomcat instance started by > tomcat41ctl, or do I need to start Tomcat manually for that? You need to start it manually. The daemonctl program is in desperate need of improvement :=\ Ernst From owner-freebsd-java@FreeBSD.ORG Sun Dec 14 23:11:22 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96D0816A4CE; Sun, 14 Dec 2003 23:11:22 -0800 (PST) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47D9143D32; Sun, 14 Dec 2003 23:11:21 -0800 (PST) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id DFEE76723D; Mon, 15 Dec 2003 08:11:19 +0100 (MET) From: Ernst de Haan Organization: Wanadoo Nederland B.V. Date: Mon, 15 Dec 2003 08:11:23 +0100 User-Agent: KMail/1.5.4 To: java@FreeBSD.org, pav@FreeBSD.org X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312150811.23434.ernst.dehaan@nl.wanadoo.com> Subject: Fwd: cvs commit: ports/Mk bsd.java.mk X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 07:11:22 -0000 FYI. Ernst ---------- Forwarded Message ---------- Subject: cvs commit: ports/Mk bsd.java.mk Date: maandag 15 december 2003 08:04 From: Ernst de Haan To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org znerd 2003/12/14 23:04:50 PST FreeBSD ports repository Modified files: Mk bsd.java.mk Log: Fixed bug. If a Linux 1.4 JDK would have been installed, it would not have been picked up if USE_JAVA was set to "1.3+". The behaviour is now as follows if USE_JAVA is set to "1.3+": - If the setting is 1.3+, then use an already installed 1.3 or 1.4 JDK. If there is no such JDK, then set USE_JAVA to 1.3. The FreeBSD JDK 1.4 is preferred over all other JDK's. Noticed by: pav Revision Changes Path 1.36 +8 -5 ports/Mk/bsd.java.mk ------------------------------------------------------- From owner-freebsd-java@FreeBSD.ORG Sun Dec 14 23:29:09 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB40016A4CE for ; Sun, 14 Dec 2003 23:29:09 -0800 (PST) Received: from smtp0.euronet.nl (smtp0.euronet.nl [194.134.35.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 605D343D2D for ; Sun, 14 Dec 2003 23:29:08 -0800 (PST) (envelope-from znerd@FreeBSD.org) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp0.euronet.nl (Postfix) with ESMTP id 4A38124663; Mon, 15 Dec 2003 08:29:07 +0100 (MET) From: Ernst de Haan Date: Mon, 15 Dec 2003 08:29:10 +0100 User-Agent: KMail/1.5.4 To: java@FreeBSD.org, Andrew Edwards X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312150829.10315.znerd@FreeBSD.org> Subject: Fwd: cvs commit: ports/java/linux-sun-jdk14 Makefile distinfo X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 07:29:09 -0000 FYI. The Sun JDK 1.4 for Linux port is now updated to 1.4.2_03. Ernst ---------- Forwarded Message ---------- Subject: cvs commit: ports/java/linux-sun-jdk14 Makefile distinfo Date: maandag 15 december 2003 08:26 From: Ernst de Haan To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org znerd 2003/12/14 23:26:25 PST FreeBSD ports repository Modified files: java/linux-sun-jdk14 Makefile distinfo Log: Update to 1.4.2_03. Noticed by: Andrew Edwards Revision Changes Path 1.41 +4 -5 ports/java/linux-sun-jdk14/Makefile 1.13 +1 -1 ports/java/linux-sun-jdk14/distinfo ------------------------------------------------------- From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 01:36:24 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C316616A4CE for ; Mon, 15 Dec 2003 01:36:24 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4FD843D41 for ; Mon, 15 Dec 2003 01:36:22 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.24; FreeBSD) id 1AVp9I-000GCD-0T; Mon, 15 Dec 2003 11:36:20 +0200 Date: Mon, 15 Dec 2003 11:36:19 +0200 From: Sheldon Hearn To: Ernst de Haan Message-ID: <20031215093619.GM13737@starjuice.net> Mail-Followup-To: Ernst de Haan , freebsd-java@FreeBSD.org References: <20031213145040.GE13737@starjuice.net> <200312150810.22127.ernst.dehaan@nl.wanadoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312150810.22127.ernst.dehaan@nl.wanadoo.com> User-Agent: Mutt/1.5.4i cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 09:36:25 -0000 On (2003/12/15 08:10), Ernst de Haan wrote: > > Is there a way to enable debugging on the Tomcat instance started by > > tomcat41ctl, or do I need to start Tomcat manually for that? > > You need to start it manually. The daemonctl program is in desperate need > of improvement :=\ I've asked this before but don't remember getting a response: what problem does the daemonctl program solve that pay for its limitations over a regular rc.d shell script? I'm not attacked the script; it seems to work very well. I'm just wondering why we can't just use a rc.d script. I first wondered when using the jboss port, which also uses daemonctl. I just used a slightly modified version of the rc.d script distributed with jboss and it seemed to work fine. Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 02:38:57 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB04616A4CE for ; Mon, 15 Dec 2003 02:38:57 -0800 (PST) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23A3343D3F for ; Mon, 15 Dec 2003 02:38:53 -0800 (PST) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id 7F528671D0; Mon, 15 Dec 2003 11:38:50 +0100 (MET) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Sheldon Hearn Date: Mon, 15 Dec 2003 11:38:55 +0100 User-Agent: KMail/1.5.4 References: <20031213145040.GE13737@starjuice.net> <200312150810.22127.ernst.dehaan@nl.wanadoo.com> <20031215093619.GM13737@starjuice.net> In-Reply-To: <20031215093619.GM13737@starjuice.net> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312151138.55354.ernst.dehaan@nl.wanadoo.com> cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:38:57 -0000 The only reason for this is that an rc.d script cannot be made suid. Ernst On maandag 15 december 2003 10:36, Sheldon Hearn wrote: > On (2003/12/15 08:10), Ernst de Haan wrote: > > > Is there a way to enable debugging on the Tomcat instance started by > > > tomcat41ctl, or do I need to start Tomcat manually for that? > > > > You need to start it manually. The daemonctl program is in desperate > > need of improvement :=\ > > I've asked this before but don't remember getting a response: what > problem does the daemonctl program solve that pay for its limitations > over a regular rc.d shell script? > > I'm not attacked the script; it seems to work very well. I'm just > wondering why we can't just use a rc.d script. I first wondered when > using the jboss port, which also uses daemonctl. I just used a slightly > modified version of the rc.d script distributed with jboss and it seemed > to work fine. > > Ciao, > Sheldon. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 02:42:29 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D890216A4CE for ; Mon, 15 Dec 2003 02:42:29 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id B54E043D36 for ; Mon, 15 Dec 2003 02:42:28 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.24; FreeBSD) id 1AVqBH-000GWT-H5; Mon, 15 Dec 2003 12:42:27 +0200 Date: Mon, 15 Dec 2003 12:42:27 +0200 From: Sheldon Hearn To: Ernst de Haan Message-ID: <20031215104227.GN13737@starjuice.net> Mail-Followup-To: Ernst de Haan , freebsd-java@FreeBSD.org References: <20031213145040.GE13737@starjuice.net> <200312150810.22127.ernst.dehaan@nl.wanadoo.com> <20031215093619.GM13737@starjuice.net> <200312151138.55354.ernst.dehaan@nl.wanadoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312151138.55354.ernst.dehaan@nl.wanadoo.com> User-Agent: Mutt/1.5.4i cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:42:30 -0000 On (2003/12/15 11:38), Ernst de Haan wrote: > The only reason for this is that an rc.d script cannot be made suid. Oh, okay. So we only use daemonctl to get Tomcat / JBoss to run as user www? If that's the case, there are numerous ports out there that use su effectively to start services under a specific UID. In which case, I'm thinking the only reason you want daemonctl is so that non-root users can start and stop the services it starts. Is that correct? If so, then I recommend we just use rc.d scripts, providing daemonctl as an optional way to start services as a non-root user. Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 02:49:21 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF03916A4CE for ; Mon, 15 Dec 2003 02:49:21 -0800 (PST) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9344E43D39 for ; Mon, 15 Dec 2003 02:49:20 -0800 (PST) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id EB037671D0; Mon, 15 Dec 2003 11:49:17 +0100 (MET) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Sheldon Hearn Date: Mon, 15 Dec 2003 11:49:22 +0100 User-Agent: KMail/1.5.4 References: <20031213145040.GE13737@starjuice.net> <200312151138.55354.ernst.dehaan@nl.wanadoo.com> <20031215104227.GN13737@starjuice.net> In-Reply-To: <20031215104227.GN13737@starjuice.net> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312151149.22912.ernst.dehaan@nl.wanadoo.com> cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:49:21 -0000 No. If we start using something other than daemonctl, then that's perfectly fine, but then we must keep the functionality we provide at this very moment. Perhaps we could have just a single wrapper C program that will set the UID and/or GID and then executes a script with the specified arguments. I don't have time to go really into this, but I'm really supporting all efforts to improve this feature. Ernst On maandag 15 december 2003 11:42, Sheldon Hearn wrote: > On (2003/12/15 11:38), Ernst de Haan wrote: > > The only reason for this is that an rc.d script cannot be made suid. > > Oh, okay. > > So we only use daemonctl to get Tomcat / JBoss to run as user www? > > If that's the case, there are numerous ports out there that use su > effectively to start services under a specific UID. In which case, I'm > thinking the only reason you want daemonctl is so that non-root users > can start and stop the services it starts. > > Is that correct? If so, then I recommend we just use rc.d scripts, > providing daemonctl as an optional way to start services as a non-root > user. > > Ciao, > Sheldon. > _______________________________________________ > 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 Mon Dec 15 02:51:28 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2003316A4CE for ; Mon, 15 Dec 2003 02:51:28 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E95343D32 for ; Mon, 15 Dec 2003 02:51:25 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.24; FreeBSD) id 1AVqJw-000GbC-6m; Mon, 15 Dec 2003 12:51:24 +0200 Date: Mon, 15 Dec 2003 12:51:24 +0200 From: Sheldon Hearn To: Ernst de Haan Message-ID: <20031215105124.GP13737@starjuice.net> Mail-Followup-To: Ernst de Haan , freebsd-java@FreeBSD.org References: <20031213145040.GE13737@starjuice.net> <200312151138.55354.ernst.dehaan@nl.wanadoo.com> <20031215104227.GN13737@starjuice.net> <200312151149.22912.ernst.dehaan@nl.wanadoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312151149.22912.ernst.dehaan@nl.wanadoo.com> User-Agent: Mutt/1.5.4i cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:51:28 -0000 On (2003/12/15 11:49), Ernst de Haan wrote: > No. If we start using something other than daemonctl, then that's perfectly > fine, but then we must keep the functionality we provide at this very > moment. Perhaps we could have just a single wrapper C program that will set > the UID and/or GID and then executes a script with the specified arguments. Okay. I'm still trying to understand what functionality we're trying to preserve. Are you just trying to ensure that non-root users are able to start Tomcat/Jboss/etc as www (or whatever)? Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 02:55:57 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41E3816A4CE for ; Mon, 15 Dec 2003 02:55:57 -0800 (PST) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 519BA43D1D for ; Mon, 15 Dec 2003 02:55:56 -0800 (PST) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id C36346718F; Mon, 15 Dec 2003 11:55:53 +0100 (MET) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Sheldon Hearn Date: Mon, 15 Dec 2003 11:55:58 +0100 User-Agent: KMail/1.5.4 References: <20031213145040.GE13737@starjuice.net> <200312151149.22912.ernst.dehaan@nl.wanadoo.com> <20031215105124.GP13737@starjuice.net> In-Reply-To: <20031215105124.GP13737@starjuice.net> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312151155.58748.ernst.dehaan@nl.wanadoo.com> cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:55:57 -0000 Sheldon, > Okay. I'm still trying to understand what functionality we're trying to > preserve. > > Are you just trying to ensure that non-root users are able to start > Tomcat/Jboss/etc as www (or whatever)? Indeed that. *And* that the process will run as a certain user. For example there could be the following config: group 'www' contains users 'www' (non-login account) 'ernst' and 'sheldon' Both 'ernst' and 'sheldon' must be able to start any of the application servers and then the application server will run as user 'www'. Ernst From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 02:58:55 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 456FC16A4CF for ; Mon, 15 Dec 2003 02:58:55 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD97943D35 for ; Mon, 15 Dec 2003 02:58:52 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.24; FreeBSD) id 1AVqR9-000GfX-Ic; Mon, 15 Dec 2003 12:58:51 +0200 Date: Mon, 15 Dec 2003 12:58:51 +0200 From: Sheldon Hearn To: Ernst de Haan Message-ID: <20031215105851.GQ13737@starjuice.net> Mail-Followup-To: Ernst de Haan , freebsd-java@FreeBSD.org References: <20031213145040.GE13737@starjuice.net> <200312151149.22912.ernst.dehaan@nl.wanadoo.com> <20031215105124.GP13737@starjuice.net> <200312151155.58748.ernst.dehaan@nl.wanadoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312151155.58748.ernst.dehaan@nl.wanadoo.com> User-Agent: Mutt/1.5.4i cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:58:55 -0000 On (2003/12/15 11:55), Ernst de Haan wrote: > > Are you just trying to ensure that non-root users are able to start > > Tomcat/Jboss/etc as www (or whatever)? > > Indeed that. *And* that the process will run as a certain user. For example > there could be the following config: > > group 'www' contains users 'www' (non-login account) 'ernst' and 'sheldon' > > Both 'ernst' and 'sheldon' must be able to start any of the application > servers and then the application server will run as user 'www'. Okay. Now I'm on the same page as you. My question, then, is why are you imposing this feature requirement on these ports? This feature isn't required by other ports that offer services. As a developer, I want to stop and start Tomcat all the time. However, I'm quite prepared to use su or sudo to do it, as I do with all the other services provided by FreeBSD ports. Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 04:09:46 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ED5816A4CE for ; Mon, 15 Dec 2003 04:09:46 -0800 (PST) Received: from smtp0.euronet.nl (smtp0.euronet.nl [194.134.35.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD1E343D32 for ; Mon, 15 Dec 2003 04:09:44 -0800 (PST) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp0.euronet.nl (Postfix) with ESMTP id 4944224663; Mon, 15 Dec 2003 13:09:42 +0100 (MET) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Sheldon Hearn Date: Mon, 15 Dec 2003 13:09:47 +0100 User-Agent: KMail/1.5.4 References: <20031213145040.GE13737@starjuice.net> <200312151155.58748.ernst.dehaan@nl.wanadoo.com> <20031215105851.GQ13737@starjuice.net> In-Reply-To: <20031215105851.GQ13737@starjuice.net> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312151309.47345.ernst.dehaan@nl.wanadoo.com> cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 12:09:46 -0000 > Okay. Now I'm on the same page as you. > > My question, then, is why are you imposing this feature requirement on > these ports? This feature isn't required by other ports that offer > services. I don't remember the exact history of things. All I do know is that people may rely on this now. And it's an improvement over su(do). Ernst From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 04:14:08 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F013B16A4CE for ; Mon, 15 Dec 2003 04:14:08 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C2BF43D2D for ; Mon, 15 Dec 2003 04:14:06 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.24; FreeBSD) id 1AVrbx-000HB8-CS; Mon, 15 Dec 2003 14:14:05 +0200 Date: Mon, 15 Dec 2003 14:14:05 +0200 From: Sheldon Hearn To: Ernst de Haan Message-ID: <20031215121405.GS13737@starjuice.net> Mail-Followup-To: Ernst de Haan , freebsd-java@FreeBSD.org References: <20031213145040.GE13737@starjuice.net> <200312151155.58748.ernst.dehaan@nl.wanadoo.com> <20031215105851.GQ13737@starjuice.net> <200312151309.47345.ernst.dehaan@nl.wanadoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312151309.47345.ernst.dehaan@nl.wanadoo.com> User-Agent: Mutt/1.5.4i cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 12:14:09 -0000 On (2003/12/15 13:09), Ernst de Haan wrote: > > My question, then, is why are you imposing this feature requirement on > > these ports? This feature isn't required by other ports that offer > > services. > > I don't remember the exact history of things. All I do know is that people > may rely on this now. And it's an improvement over su(do). Well it's certainly not an improvement over sudo; sudo has a rich ACL language for specifying who can and can't do what. Given that you have to start Tomcat _without_ daemonctl if you want debugging support, and given that the primary purpose of daemonctl is to make it easy for developers to stop and start the service without being root, I suggest that we reimplement the existing rc.d script without using daemonctl, and leave daemonctl installed for folks who want it. Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 04:16:08 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E0D316A4CE for ; Mon, 15 Dec 2003 04:16:08 -0800 (PST) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08CE843D3C for ; Mon, 15 Dec 2003 04:16:07 -0800 (PST) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id CB6D0671A4; Mon, 15 Dec 2003 13:16:03 +0100 (MET) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Sheldon Hearn Date: Mon, 15 Dec 2003 13:16:09 +0100 User-Agent: KMail/1.5.4 References: <20031213145040.GE13737@starjuice.net> <200312151309.47345.ernst.dehaan@nl.wanadoo.com> <20031215121405.GS13737@starjuice.net> In-Reply-To: <20031215121405.GS13737@starjuice.net> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312151316.09312.ernst.dehaan@nl.wanadoo.com> cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 12:16:08 -0000 In fact I would like to either improve daemonctl or replace it completely. That way we don't have to maintain 2 systems... Ernst On maandag 15 december 2003 13:14, Sheldon Hearn wrote: > On (2003/12/15 13:09), Ernst de Haan wrote: > > > My question, then, is why are you imposing this feature requirement > > > on these ports? This feature isn't required by other ports that > > > offer services. > > > > I don't remember the exact history of things. All I do know is that > > people may rely on this now. And it's an improvement over su(do). > > Well it's certainly not an improvement over sudo; sudo has a rich ACL > language for specifying who can and can't do what. > > Given that you have to start Tomcat _without_ daemonctl if you want > debugging support, and given that the primary purpose of daemonctl is to > make it easy for developers to stop and start the service without being > root, I suggest that we reimplement the existing rc.d script without > using daemonctl, and leave daemonctl installed for folks who want it. > > Ciao, > Sheldon. > _______________________________________________ > 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 Mon Dec 15 04:36:04 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25E8D16A4CE for ; Mon, 15 Dec 2003 04:36:04 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF70843D1F for ; Mon, 15 Dec 2003 04:36:02 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.24; FreeBSD) id 1AVrxB-000HR4-S6; Mon, 15 Dec 2003 14:36:01 +0200 Date: Mon, 15 Dec 2003 14:36:01 +0200 From: Sheldon Hearn To: Ernst de Haan Message-ID: <20031215123601.GU13737@starjuice.net> Mail-Followup-To: Ernst de Haan , freebsd-java@FreeBSD.org References: <20031213145040.GE13737@starjuice.net> <200312151309.47345.ernst.dehaan@nl.wanadoo.com> <20031215121405.GS13737@starjuice.net> <200312151316.09312.ernst.dehaan@nl.wanadoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312151316.09312.ernst.dehaan@nl.wanadoo.com> User-Agent: Mutt/1.5.4i cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 12:36:04 -0000 On (2003/12/15 13:16), Ernst de Haan wrote: > In fact I would like to either improve daemonctl or replace it completely. > That way we don't have to maintain 2 systems... Well, replacing it with an rc.d script is simple, as long as you're happy to accept that non-root users won't be able to start the service. :-) This doesn't seem like a problem to me, because every other service I've ever had to bounce during development has required me to arrange my own privileged access. Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 04:36:55 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B593916A4CE for ; Mon, 15 Dec 2003 04:36:55 -0800 (PST) Received: from arwen.dawnbreaks.net (eth4771.sa.adsl.internode.on.net [150.101.250.162]) by mx1.FreeBSD.org (Postfix) with SMTP id 51D5043D1D for ; Mon, 15 Dec 2003 04:36:51 -0800 (PST) (envelope-from db@dawnbreaks.net) Received: (qmail 8964 invoked by uid 1001); 15 Dec 2003 12:38:07 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 15 Dec 2003 12:38:07 -0000 Date: Mon, 15 Dec 2003 23:08:07 +1030 (CST) From: David Bullock X-X-Sender: db@arwen.lorien.dawnbreaks.net To: Ernst de Haan In-Reply-To: <200312151149.22912.ernst.dehaan@nl.wanadoo.com> Message-ID: <20031215222744.H83388-100000@arwen.lorien.dawnbreaks.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-java@FreeBSD.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 12:36:55 -0000 On Mon, 15 Dec 2003, Ernst de Haan wrote: > No. If we start using something other than daemonctl, then that's perfectly > fine, but then we must keep the functionality we provide at this very > moment. Perhaps we could have just a single wrapper C program that will set > the UID and/or GID and then executes a script with the specified arguments. > > I don't have time to go really into this, but I'm really supporting all > efforts to improve this feature. Have you looked at Dan Bernstein's daemontools? http://cr.yp.to/daemontools.html /usr/ports/sysutils/daemontools It has at least that setuid 'wrapper' you speak of, and well, it's just elegant. The 'supervise' program is kicked off from /etc/rc.local, and functions like init.d for the deamons it manages. Unlike init.d, if the daemon stops, it restarts it. The generic 'deamonctl' communicates with the 'supervise' process ... actually, it's called 'svc'. svc -u /path/to/management/dir starts the process using a 'run' script svc -d /path/to/management/dir stops with TERM svc -t /path/to/management/dir stops then starts svc -h /path/to/management/dir sends HUP svc -a /path/to/management/dir sends ALRM Utilities svok and svstat give status information. In the 'run' script to start the process, instead of littering the script with environment variable assignments, environment variables are acquired by scanning a directory. Files in the directory are named according to the name of the variable, and the value of the variable is acquired from the file. So to start Jetty, for example, I have /service/ directory /service/jetty/ direcotry /service/jetty/env/ directory /service/jetty/env/JAVA_HOME env var /service/jetty/env/JETTY_HOME env var /service/jetty/env/PORT env var /service/jetty/run script /service/jetty/jetty script (the use of /service is recommended, but not required) The contents of the run script is like: #!/bin/sh exec envdir ./env ./jetty (the 'envdir' command runs ./jetty using environment variables from ./env) ./jetty in turn looks like: #!/bin/sh cd $JETTY_HOME exec setuidgid jettyd $JAVA_HOME/bin/java -jar start.jar etc/jettyplus.xml The setuidgid runs the JVM with UID and GID for jettyd. Deamontools takes care of backgrounding the process. It also has some groovy logging facilities. This certainly works for me for running Jetty. It even has the nice side-effect that if a terminate the JVM when disconnecting from a remote debussing session, it restarts the JVM for me ;-) Of course, the HUP and ALRM are not of much semantic use to a Java program, but TERM works just fine as a kill signal. Anyways, might save some reinvention of the wheel, and it's just plain cool, so I jumped at the chance to talk about it :-) It er, doesn't quite solve any access-control issues for not root users, but if there were to be a generic 'daemonctl' for the numerous Java deamons out there, this codebase is worth mining for ideas, at the very least. cheers, David. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 05:22:13 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3D3616A4CE for ; Mon, 15 Dec 2003 05:22:13 -0800 (PST) Received: from cocoa.syncrontech.com (cocoa-e0.syncrontech.com [62.71.8.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1318543D31 for ; Mon, 15 Dec 2003 05:22:11 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19])hBFDM4EQ098108; Mon, 15 Dec 2003 15:22:06 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Received: from coffee.syncrontech.com (coffee.syncrontech.com [62.71.8.37]) hBFDLwC5046507; Mon, 15 Dec 2003 15:21:59 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) From: Ari Suutari Organization: Syncron Tech Oy To: Sheldon Hearn , Ernst de Haan Date: Mon, 15 Dec 2003 15:21:58 +0200 User-Agent: KMail/1.5.4 References: <20031213145040.GE13737@starjuice.net> <200312151309.47345.ernst.dehaan@nl.wanadoo.com> <20031215121405.GS13737@starjuice.net> In-Reply-To: <20031215121405.GS13737@starjuice.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312151521.58681.ari.suutari@syncrontech.com> X-Scanned-By: MIMEDefang 2.30 (www . roaringpenguin . com / mimedefang) X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) cc: freebsd-java@freebsd.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 13:22:13 -0000 Hi, On Monday 15 December 2003 14:14, Sheldon Hearn wrote: > Given that you have to start Tomcat _without_ daemonctl if you want > debugging support Also if you want to adjust jvm memory parameters (-Xmx etc...) > and given that the primary purpose of daemonctl is to Apache has "apachectl" - maybe idea for tomcat4ctl came from it ? > make it easy for developers to stop and start the service without being > root, I suggest that we reimplement the existing rc.d script without > using daemonctl, and leave daemonctl installed for folks who want it. I remember that somebody had an alternative implementation of daemonctl which used xml config file. Also, I have another alternative implementation which uses a simple text config file for various options (it is same as the original daemonctl except most of the hard-coded parameters have been replaced with call to take them from a config file). I once offered this version on this mailing list but there was not much interest in it. The program is a drop-in replacement for the original one, but someone would have to update the port to use it. Anyway, I think that using just shell script wouldn't be too bad either. I wonder why tomcat folks don't provide anything nicer for startup on unixes - I know that on windows platform they provide a 'apache tomcat service' which runs in background. Ari S. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 05:25:49 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58CCF16A4CE for ; Mon, 15 Dec 2003 05:25:49 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37AA743D36 for ; Mon, 15 Dec 2003 05:25:48 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.24; FreeBSD) id 1AVsj7-000I1B-St; Mon, 15 Dec 2003 15:25:33 +0200 Date: Mon, 15 Dec 2003 15:25:33 +0200 From: Sheldon Hearn To: Ari Suutari Message-ID: <20031215132533.GX13737@starjuice.net> Mail-Followup-To: Ari Suutari , Ernst de Haan , freebsd-java@freebsd.org References: <20031213145040.GE13737@starjuice.net> <200312151309.47345.ernst.dehaan@nl.wanadoo.com> <20031215121405.GS13737@starjuice.net> <200312151521.58681.ari.suutari@syncrontech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312151521.58681.ari.suutari@syncrontech.com> User-Agent: Mutt/1.5.4i cc: Ernst de Haan cc: freebsd-java@freebsd.org Subject: Re: Debugging options for tomcat41ctl X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 13:25:49 -0000 On (2003/12/15 15:21), Ari Suutari wrote: > Apache has "apachectl" - maybe idea for tomcat4ctl came > from it ? Almost certainly. However, apachectl doesn't allow non-priveleged users to start apache as www, and people who start Apache don't have the option to enable JVM debugging and other JVM settings. :-) Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 08:52:58 2003 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EBC216A4CE; Mon, 15 Dec 2003 08:52:58 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0299943D39; Mon, 15 Dec 2003 08:52:57 -0800 (PST) (envelope-from glewis@FreeBSD.org) Received: from freefall.freebsd.org (glewis@localhost [127.0.0.1]) hBFGquFR026586; Mon, 15 Dec 2003 08:52:56 -0800 (PST) (envelope-from glewis@freefall.freebsd.org) Received: (from glewis@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBFGqu3Q026582; Mon, 15 Dec 2003 08:52:56 -0800 (PST) (envelope-from glewis) Date: Mon, 15 Dec 2003 08:52:56 -0800 (PST) From: Greg Lewis Message-Id: <200312151652.hBFGqu3Q026582@freefall.freebsd.org> To: herve.quiroz@esil.univ-mrs.fr, glewis@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: java/60085: New port: java/jaxen X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 16:52:58 -0000 Synopsis: New port: java/jaxen State-Changed-From-To: open->closed State-Changed-By: glewis State-Changed-When: Mon Dec 15 08:48:59 PST 2003 State-Changed-Why: Committed, thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=60085 From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 11:02:39 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E7BA16A4CE for ; Mon, 15 Dec 2003 11:02:39 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BE7943D1D for ; Mon, 15 Dec 2003 11:02:24 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.10/8.12.10) with ESMTP id hBFJ2OFR040445 for ; Mon, 15 Dec 2003 11:02:24 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBFJ2N97040438 for freebsd-java@freebsd.org; Mon, 15 Dec 2003 11:02:23 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 15 Dec 2003 11:02:23 -0800 (PST) Message-Id: <200312151902.hBFJ2N97040438@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 19:02:39 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/08/22] java/41913 java JniHandler and ChannelUn Errors 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/10/25] java/58524 java new port: java/jmf - Java Media Framework o [2003/11/06] java/59021 java Mk/bsd.sites.mk: MASTER_SITE_APACHE_JAKAR 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/10/18] java/44219 java Update port: textproc/cocoon to 2.0.3 o [2002/10/18] java/44251 java Create stylebook port o [2002/11/04] java/44922 java JVM crash o [2003/07/29] java/55032 java SVr4 emulation interferes with install o [2003/09/24] java/57192 java linux-ibm-java1.4 freeze 5 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Dec 15 12:24:54 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A50C816A4CE for ; Mon, 15 Dec 2003 12:24:54 -0800 (PST) Received: from hacking.kicks-ass.org (c-24-1-13-105.client.comcast.net [24.1.13.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7665D43D33 for ; Mon, 15 Dec 2003 12:24:53 -0800 (PST) (envelope-from jeff@kreska.org) Received: from STATIC (gnat.xxi.com [209.176.38.93]) (authenticated bits=0)hBFKOpVx022819 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 15 Dec 2003 14:24:52 -0600 (CST) (envelope-from jeff@kreska.org) From: "Jeff" To: Date: Mon, 15 Dec 2003 14:24:51 -0600 Message-ID: <008601c3c349$7ee631b0$db0aa8c0@xxi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: Subject: RE: Building or running SWT applications with FreeBSD X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 20:24:54 -0000 FYI: Not exactly what you want but its an interesting idea for swing programmers wanting to see what there app would look like with SWT. http://swingwt.sourceforge.net/ Regards, Jeff > -----Original Message----- > From: Marc van Woerkom [mailto:marc.vanwoerkom@fernuni-hagen.de] > Sent: Sunday, December 14, 2003 7:10 PM > To: Herve Quiroz; freebsd-java@FreeBSD.ORG > Subject: Re: Building or running SWT applications with FreeBSD > > On Fri, 12 Dec 2003 18:45:57 +0100, Herve Quiroz > wrote: > > > Thanks to IBM for having Java platform-dependent afterall > > When was Java ever platform-independent? > . > See the long road to a FreeBSD native JDK for how platform-dependent > Java really is. > > Client-side Java (J2SE) still runs best under Windows, even under > Linux and Solaris, you have the one or other quirk. > > > > But more seriously, it would be nice if there could be a swing port of > > SWT. > > How many more platforms would that bring? > > Regards, > Marc > > ------------------------------ From owner-freebsd-java@FreeBSD.ORG Tue Dec 16 08:14:24 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4974516A4CE for ; Tue, 16 Dec 2003 08:14:24 -0800 (PST) Received: from mailhost.ics.forth.gr (mailhost.ics.forth.gr [139.91.157.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0066043D36 for ; Tue, 16 Dec 2003 08:14:21 -0800 (PST) (envelope-from ssfak@ics.forth.gr) Received: from ics.forth.gr (localhost [127.0.0.1]) ESMTP id hBGGE1Pa002404; Tue, 16 Dec 2003 18:14:01 +0200 (EET) Message-ID: <3FDF2F49.4050901@ics.forth.gr> Date: Tue, 16 Dec 2003 18:14:01 +0200 From: "Stelios G. Sfakianakis" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: liukang@bjpu.edu.cn Subject: Testers needed: jakarta-tomcat5.0.16 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 16:14:24 -0000 Kang Liu wrote: > I got some problems when use it with linux-sun-jdk12. > tomcat5 can not start. > I think I should set USE_JAVA=1.3+ > If anyone can run it on jdk12, please give me a message. :-) > Thanks. Hi, It appears[1] that tomcat 5.x implements the Servlet 2.4 spec. which requires[2] the 1.3 J2SE. So it seems that there is no point in using the 1.2 jdk.. Cheers Stelios [1]: http://jakarta.apache.org/tomcat/ [2]: http://www.javaworld.com/javaworld/jw-03-2003/jw-0328-servlet.html -- Stelios G. Sfakianakis | Center of Medical Informatics Voice: +30-2810-391650 | Institute of Computer Science PGP Key ID: 0x5F30AAC2 | FORTH, http://www.forth.gr From owner-freebsd-java@FreeBSD.ORG Tue Dec 16 09:46:15 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E22AD16A4CE for ; Tue, 16 Dec 2003 09:46:15 -0800 (PST) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D0C743D4C for ; Tue, 16 Dec 2003 09:46:13 -0800 (PST) (envelope-from jas@math.jussieu.fr) Received: from riemann.math.jussieu.fr (root@riemann.math.jussieu.fr [134.157.13.3])hBGHkCZT065027 for ; Tue, 16 Dec 2003 18:46:12 +0100 (CET) X-Ids: 168 Received: from galois2.math.jussieu.fr (galois2.math.jussieu.fr [134.157.13.117])hBGHkCFH038491 for ; Tue, 16 Dec 2003 18:46:12 +0100 (CET) Received: from (jas@localhost) by galois2.math.jussieu.fr (8.11.6/jtpda-5.3.2) id hBGHkB525644 for freebsd-java@freebsd.org; Tue, 16 Dec 2003 18:46:11 +0100 Date: Tue, 16 Dec 2003 18:46:11 +0100 From: Albert Shih To: freebsd-java@freebsd.org Message-ID: <20031216184611.L21017@math.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.38 X-Miltered: at shiva.jussieu.fr by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Antivirus: scanned by sophie at shiva.jussieu.fr Subject: Ant problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: shih@math.jussieu.fr List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 17:46:16 -0000 Hi, I've very strange thing with ant. If I use ant install by ports I can't compile lenya (a soft developped by apache team see http://cocoon.apache.org/lenya/). But if I use the same version of ant but install with my little hand, everthing work fine. And install is just tar xvf ant-distrib And this problem is independant of the version of JDK I use. Regards. -- Albert SHIH Universite de Paris 7 (Denis DIDEROT) U.F.R. de Mathematiques. Heure local/Local time: Tue Dec 16 18:42:43 CET 2003 From owner-freebsd-java@FreeBSD.ORG Tue Dec 16 18:59:58 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56E6D16A4CE for ; Tue, 16 Dec 2003 18:59:58 -0800 (PST) Received: from bjpu.edu.cn (egw.bjpu.edu.cn [202.112.78.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBD8A43D46 for ; Tue, 16 Dec 2003 18:59:54 -0800 (PST) (envelope-from liukang@bjpu.edu.cn) Received: (eyou gateway send program); Wed, 17 Dec 2003 11:06:02 +0800 X-EYOU-ORIGINAL-IP: 202.112.78.224 X-EYOU-ENVELOPE-MAILFROM: liukang@bjpu.edu.cn Received: from unknown (HELO liukang) (unknown@202.112.78.224) by 202.112.78.77 with ; Wed, 17 Dec 2003 11:06:02 +0800 From: "Kang Liu" To: "'Stelios G. Sfakianakis'" , Date: Wed, 17 Dec 2003 10:59:36 +0800 Message-ID: <001e01c3c449$ce7b2720$e04e70ca@bjpu.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <271590898.20781@bjpu.edu.cn> Importance: Normal Subject: RE: Testers needed: jakarta-tomcat5.0.16 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2003 02:59:58 -0000 > -----Original Message----- > From: owner-freebsd-java@freebsd.org > [mailto:owner-freebsd-java@freebsd.org] On Behalf Of Stelios > G. Sfakianakis > Sent: Wednesday, December 17, 2003 12:14 AM > To: freebsd-java@freebsd.org > Cc: liukang@bjpu.edu.cn > Subject: Testers needed: jakarta-tomcat5.0.16 > > > > Hi, > It appears[1] that tomcat 5.x implements the Servlet 2.4 spec. which > requires[2] the 1.3 J2SE. So it seems that there is no point in using > the 1.2 jdk.. > > Cheers > Stelios > I see. :-) Thanks. From owner-freebsd-java@FreeBSD.ORG Wed Dec 17 09:56:41 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D199616A4CE for ; Wed, 17 Dec 2003 09:56:41 -0800 (PST) Received: from smtp.tor.radiant.net (smtp.tor.radiant.net [66.163.0.230]) by mx1.FreeBSD.org (Postfix) with SMTP id 84EA543D67 for ; Wed, 17 Dec 2003 09:56:34 -0800 (PST) (envelope-from jfortin@ciara-tech.com) Received: (qmail 21109 invoked from network); 17 Dec 2003 17:38:06 -0000 Received: from unknown (HELO poste05) (66.163.5.85) by smtp.tor.radiant.net with SMTP; 17 Dec 2003 17:38:06 -0000 Message-ID: <006a01c3c4c7$230fcd40$a900000a@poste05> From: To: , Date: Wed, 17 Dec 2003 12:56:45 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: John Fortin X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2003 17:56:41 -0000 Regards Jean Fortin CIARA Technologies Inc. 9300, Autoroute Trans Canadienne St-Laurent Qc H4S-1K5 Tel:514-798-8880/6535 Fax:514-798-8889 Cel: 514-815-1727 E-Mail: jfortin@ciara-tech.com (877)242-7272/6535 E-Mail:5148152727@fido.ca www.ciara-tech.com Service across CANADA & USA :1-888-980-8879 From owner-freebsd-java@FreeBSD.ORG Wed Dec 17 13:56:19 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94B6716A4CE for ; Wed, 17 Dec 2003 13:56:19 -0800 (PST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0828543D1D for ; Wed, 17 Dec 2003 13:56:18 -0800 (PST) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id C836E13623; Thu, 18 Dec 2003 10:56:15 +1300 (NZDT) Date: Thu, 18 Dec 2003 10:56:15 +1300 From: Jonathan Chen To: Albert Shih Message-ID: <20031217215615.GA97632@grimoire.chen.org.nz> References: <20031216184611.L21017@math.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031216184611.L21017@math.jussieu.fr> User-Agent: Mutt/1.4.1i cc: freebsd-java@freebsd.org Subject: Re: Ant problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2003 21:56:19 -0000 On Tue, Dec 16, 2003 at 06:46:11PM +0100, Albert Shih wrote: > Hi, > > I've very strange thing with ant. > > If I use ant install by ports I can't compile lenya (a soft developped by > apache team see http://cocoon.apache.org/lenya/). > > But if I use the same version of ant but install with my little hand, > everthing work fine. And install is just > > tar xvf ant-distrib > > And this problem is independant of the version of JDK I use. The FreeBSD ant port is non-standard. There was a discussion thread that I started some time ago about this, but I don't think anything had been decided on. You can fix this yourself by deleting lines 83-94 on /usr/local/bin/ant. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. From owner-freebsd-java@FreeBSD.ORG Wed Dec 17 20:29:50 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5804716A4CE for ; Wed, 17 Dec 2003 20:29:50 -0800 (PST) Received: from dell4100.icallpc911.com (adsl-67-66-11-161.dsl.rcsntx.swbell.net [67.66.11.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ABB243D2D for ; Wed, 17 Dec 2003 20:29:49 -0800 (PST) (envelope-from charles@dell4100.icallpc911.com) Received: (from charles@localhost) by dell4100.icallpc911.com (8.11.6/8.11.6) id hBI4WUB13083; Wed, 17 Dec 2003 22:32:30 -0600 Date: Wed, 17 Dec 2003 22:32:30 -0600 From: charles@icallpc911.com Message-Id: <200312180432.hBI4WUB13083@dell4100.icallpc911.com> To: freebsd-java@freebsd.org Cc: X-Originating-IP: 192.168.2.38 X-Mailer: Usermin 1.030 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bound1071721950" Subject: ported app linux-ibm-1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 04:29:50 -0000 This is a multi-part message in MIME format. --bound1071721950 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit I spoke with them I think they are ok Try I let me know if you are happy with them http://www.mainsoft.com/ --bound1071721950-- From owner-freebsd-java@FreeBSD.ORG Fri Dec 19 02:49:19 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5154C16A4CE for ; Fri, 19 Dec 2003 02:49:19 -0800 (PST) Received: from mail.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id D764443D45 for ; Fri, 19 Dec 2003 02:49:15 -0800 (PST) (envelope-from sebster@sebster.com) Received: (qmail 12183 invoked from network); 19 Dec 2003 10:49:13 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.80.226) by server.profdata.nl with SMTP; 19 Dec 2003 10:49:13 -0000 From: Sebastiaan van Erk To: freebsd-java@freebsd.org Content-Type: text/plain Organization: Insight Information Technologies Message-Id: <1071830891.66714.3.camel@blauwoor.sebster.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 19 Dec 2003 11:48:11 +0100 Content-Transfer-Encoding: 7bit Subject: bug report jdk1.4.2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 10:49:19 -0000 Hi all, I'm running FreeBSD 4.9-RELEASE with native JDK 1.4.2, and I get the following VM crash (see below). It's consistent, I.E. it crashes EVERY time. Does anybody know a work around? Greetings, Sebastiaan van Erk An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x280C327B Function=_flockfile_debug+0x2B Library=/usr/lib/libc_r.so.4 Current Java thread: at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059) at java.net.InetAddress.getAllByName0(InetAddress.java:1009) at java.net.InetAddress.getAllByName0(InetAddress.java:981) at java.net.InetAddress.getAllByName(InetAddress.java:975) at java.net.InetAddress.getByName(InetAddress.java:889) at sun.net.www.http.HttpClient.(HttpClient.java:296) at sun.net.www.http.HttpClient.(HttpClient.java:267) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:320) at sun.net.www.http.HttpClient.New(HttpClient.java:315) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:510) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:487) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:615) - locked <0x2cd0ce18> (a sun.net.www.protocol.http.HttpURLConnection) at java.net.URL.openStream(URL.java:913) at com.servoy.j2db.develop.cmd.CmdNewVersionCheck$2.run(CmdNewVersionChe ck.java:80) at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:50) at java.lang.Thread.run(Thread.java:534) Dynamic libraries: 0x8048000 /usr/local/jdk1.4.2/bin/java 0x2806b000 /usr/lib/libc_r.so.4 0x28122000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so 0x28668000 /usr/lib/libstdc++.so.3 0x286ad000 /usr/lib/libm.so.2 0x286c8000 /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so 0x286d6000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so 0x286f1000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so 0x28712000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so 0x345c0000 /usr/local/jdk1.4.2/jre/lib/i386/libjdwp.so 0x345f1000 /usr/local/jdk1.4.2/jre/lib/i386/libdt_socket.so 0x34cef000 /usr/local/jdk1.4.2/jre/lib/i386/libawt.so 0x34f5e000 /usr/local/jdk1.4.2/jre/lib/i386/libmlib_image.so 0x34fb0000 /usr/X11R6/lib/libXp.so.6 0x34fb8000 /usr/X11R6/lib/libXt.so.6 0x35002000 /usr/X11R6/lib/libXext.so.6 0x35010000 /usr/X11R6/lib/libXtst.so.6 0x3501e000 /usr/X11R6/lib/libXmu.so.6 0x35033000 /usr/X11R6/lib/libX11.so.6 0x350ef000 /usr/X11R6/lib/libSM.so.6 0x350f8000 /usr/X11R6/lib/libICE.so.6 0x3510e000 /usr/X11R6/lib/libXThrStub.so.6 0x35110000 /usr/local/jdk1.4.2/jre/lib/i386/libfontmanager.so 0x351e2000 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 0x351e5000 /usr/lib/libc.so.4 0x3527e000 /usr/X11R6/lib/libXcursor.so.1 0x35287000 /usr/X11R6/lib/libXrender.so.1 0x3528f000 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 0x353a6000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so 0x35b30000 /usr/local/jdk1.4.2/jre/lib/i386/libdcpr.so 0x2804e000 /usr/libexec/ld-elf.so.1 Heap at VM Abort: Heap def new generation total 576K, used 94K [0x2c540000, 0x2c5e0000, 0x2ca20000) eden space 512K, 10% used [0x2c540000, 0x2c54d738, 0x2c5c0000) from space 64K, 63% used [0x2c5c0000, 0x2c5ca2f8, 0x2c5d0000) to space 64K, 0% used [0x2c5d0000, 0x2c5d0000, 0x2c5e0000) tenured generation total 5136K, used 3472K [0x2ca20000, 0x2cf24000, 0x3054000 0) the space 5136K, 67% used [0x2ca20000, 0x2cd843f0, 0x2cd84400, 0x2cf24000) compacting perm gen total 15104K, used 14943K [0x30540000, 0x31400000, 0x34540 000) the space 15104K, 98% used [0x30540000, 0x313d7c90, 0x313d7e00, 0x31400000) Local Time = Fri Dec 19 11:39:50 2003 Elapsed Time = 18 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2-p5-root_17_dec_2003_16_42 mixed mod e) # From owner-freebsd-java@FreeBSD.ORG Fri Dec 19 03:29:55 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D91516A4CE for ; Fri, 19 Dec 2003 03:29:55 -0800 (PST) Received: from mail.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id DE22343DA1 for ; Fri, 19 Dec 2003 03:28:25 -0800 (PST) (envelope-from sebster@sebster.com) Received: (qmail 14168 invoked from network); 19 Dec 2003 11:28:24 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.80.226) by server.profdata.nl with SMTP; 19 Dec 2003 11:28:24 -0000 From: Sebastiaan van Erk To: Achilleus Mantzios In-Reply-To: References: Content-Type: text/plain Organization: Insight Information Technologies Message-Id: <1071833242.66714.8.camel@blauwoor.sebster.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 19 Dec 2003 12:27:22 +0100 Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: bug report jdk1.4.2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 11:29:55 -0000 Thanks for the fast reply. On Fri, 2003-12-19 at 12:10, Achilleus Mantzios wrote: > Could it be a /etc/hosts issue?? I'm not sure what the exact cause is. I do know that lookup of the localhostname fails because it's not in /etc/host, but that shouldn't be a problem should it? > Also it wouldn't be a bad idea to set > #sysctl net.inet6.ip6.v6only=0 That seems to be default on FreeBSD 4.9. BTW, I recompiled the source code of the java project I'm working on, and now suddenly the problem is gone. (I'm using eclispe from the port). Still, a VM crash shouldn't be possible should it? Greetings, Sebastiaan van Erk > O kyrios Sebastiaan van Erk egrapse stis Dec 19, 2003 : > > > Hi all, > > > > I'm running FreeBSD 4.9-RELEASE with native JDK 1.4.2, and I get the > > following VM crash (see below). It's consistent, I.E. it crashes EVERY > > time. Does anybody know a work around? > > > > Greetings, > > Sebastiaan van Erk > > > > An unexpected exception has been detected in native code outside the VM. > > Unexpected Signal : 11 occurred at PC=0x280C327B > > Function=_flockfile_debug+0x2B > > Library=/usr/lib/libc_r.so.4 > > > > Current Java thread: > > at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) > > at > > java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770) > > at > > java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059) > > at java.net.InetAddress.getAllByName0(InetAddress.java:1009) > > at java.net.InetAddress.getAllByName0(InetAddress.java:981) > > at java.net.InetAddress.getAllByName(InetAddress.java:975) > > at java.net.InetAddress.getByName(InetAddress.java:889) > > at sun.net.www.http.HttpClient.(HttpClient.java:296) > > at sun.net.www.http.HttpClient.(HttpClient.java:267) > > at sun.net.www.http.HttpClient.New(HttpClient.java:339) > > at sun.net.www.http.HttpClient.New(HttpClient.java:320) > > at sun.net.www.http.HttpClient.New(HttpClient.java:315) > > at > > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne > > ction.java:510) > > at > > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection > > .java:487) > > at > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon > > nection.java:615) > > - locked <0x2cd0ce18> (a > > sun.net.www.protocol.http.HttpURLConnection) > > at java.net.URL.openStream(URL.java:913) > > at > > com.servoy.j2db.develop.cmd.CmdNewVersionCheck$2.run(CmdNewVersionChe > > ck.java:80) > > at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:50) > > at java.lang.Thread.run(Thread.java:534) > > > > Dynamic libraries: > > 0x8048000 /usr/local/jdk1.4.2/bin/java > > 0x2806b000 /usr/lib/libc_r.so.4 > > 0x28122000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so > > 0x28668000 /usr/lib/libstdc++.so.3 > > 0x286ad000 /usr/lib/libm.so.2 > > 0x286c8000 > > /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so > > 0x286d6000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so > > 0x286f1000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so > > 0x28712000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so > > 0x345c0000 /usr/local/jdk1.4.2/jre/lib/i386/libjdwp.so > > 0x345f1000 /usr/local/jdk1.4.2/jre/lib/i386/libdt_socket.so > > 0x34cef000 /usr/local/jdk1.4.2/jre/lib/i386/libawt.so > > 0x34f5e000 /usr/local/jdk1.4.2/jre/lib/i386/libmlib_image.so > > 0x34fb0000 /usr/X11R6/lib/libXp.so.6 > > 0x34fb8000 /usr/X11R6/lib/libXt.so.6 > > 0x35002000 /usr/X11R6/lib/libXext.so.6 > > 0x35010000 /usr/X11R6/lib/libXtst.so.6 > > 0x3501e000 /usr/X11R6/lib/libXmu.so.6 > > 0x35033000 /usr/X11R6/lib/libX11.so.6 > > 0x350ef000 /usr/X11R6/lib/libSM.so.6 > > 0x350f8000 /usr/X11R6/lib/libICE.so.6 > > 0x3510e000 /usr/X11R6/lib/libXThrStub.so.6 > > 0x35110000 /usr/local/jdk1.4.2/jre/lib/i386/libfontmanager.so > > 0x351e2000 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 > > 0x351e5000 /usr/lib/libc.so.4 > > 0x3527e000 /usr/X11R6/lib/libXcursor.so.1 > > 0x35287000 /usr/X11R6/lib/libXrender.so.1 > > 0x3528f000 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 > > 0x353a6000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so > > 0x35b30000 /usr/local/jdk1.4.2/jre/lib/i386/libdcpr.so > > 0x2804e000 /usr/libexec/ld-elf.so.1 > > > > Heap at VM Abort: > > Heap > > def new generation total 576K, used 94K [0x2c540000, 0x2c5e0000, > > 0x2ca20000) > > eden space 512K, 10% used [0x2c540000, 0x2c54d738, 0x2c5c0000) > > from space 64K, 63% used [0x2c5c0000, 0x2c5ca2f8, 0x2c5d0000) > > to space 64K, 0% used [0x2c5d0000, 0x2c5d0000, 0x2c5e0000) > > tenured generation total 5136K, used 3472K [0x2ca20000, 0x2cf24000, > > 0x3054000 > > 0) > > the space 5136K, 67% used [0x2ca20000, 0x2cd843f0, 0x2cd84400, > > 0x2cf24000) > > compacting perm gen total 15104K, used 14943K [0x30540000, 0x31400000, > > 0x34540 > > 000) > > the space 15104K, 98% used [0x30540000, 0x313d7c90, 0x313d7e00, > > 0x31400000) > > > > Local Time = Fri Dec 19 11:39:50 2003 > > Elapsed Time = 18 > > # > > # The exception above was detected in native code outside the VM > > # > > # Java VM: Java HotSpot(TM) Client VM (1.4.2-p5-root_17_dec_2003_16_42 > > mixed mod > > e) > > # > > > > > > _______________________________________________ > > 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 Fri Dec 19 06:12:39 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6D2D16A4CE for ; Fri, 19 Dec 2003 06:12:39 -0800 (PST) Received: from turing.morons.org (turing.morons.org [209.237.229.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBCE443D46 for ; Fri, 19 Dec 2003 06:12:38 -0800 (PST) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id CB635A927; Fri, 19 Dec 2003 06:12:38 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id C8E53A920; Fri, 19 Dec 2003 06:12:38 -0800 (PST) Date: Fri, 19 Dec 2003 06:12:38 -0800 (PST) From: Nick Johnson X-X-Sender: spatula@turing.morons.org To: Sebastiaan van Erk In-Reply-To: <1071830891.66714.3.camel@blauwoor.sebster.com> Message-ID: <20031219061001.C30962@turing.morons.org> References: <1071830891.66714.3.camel@blauwoor.sebster.com> X-what-happen: someone set up us the bomb X-Message-Flags: Spatula Precedence: special-delivery MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-java@freebsd.org Subject: Re: bug report jdk1.4.2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 14:12:39 -0000 I think this might be the same thing as my open bug: http://www.freebsd.org/cgi/query-pr.cgi?pr=60083 Can you get a java.core file and do this with it: gdb java_g java.core And when gdb starts up, do a "bt" and see if your stack trace includes something like this: #11 0x280cd782 in getservent () from /usr/lib/libc_r.so.4 #12 0x280ccc3d in getservbyname () from /usr/lib/libc_r.so.4 #13 0x280cb48c in getaddrinfo () from /usr/lib/libc_r.so.4 Nick On Fri, 19 Dec 2003, Sebastiaan van Erk wrote: > Hi all, > > I'm running FreeBSD 4.9-RELEASE with native JDK 1.4.2, and I get the > following VM crash (see below). It's consistent, I.E. it crashes EVERY > time. Does anybody know a work around? > -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.1 http://web.morons.org/ From owner-freebsd-java@FreeBSD.ORG Fri Dec 19 07:23:39 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23FC916A4CE for ; Fri, 19 Dec 2003 07:23:39 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EC9B43D2D for ; Fri, 19 Dec 2003 07:23:35 -0800 (PST) (envelope-from ml@FreeBSD.org.ua) Received: from phantom.cris.net (ml@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id hBJFNWl7025675; Fri, 19 Dec 2003 17:23:32 +0200 (EET) (envelope-from ml@FreeBSD.org.ua) Received: (from ml@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id hBJFNWxP025674; Fri, 19 Dec 2003 17:23:32 +0200 (EET) (envelope-from ml) Date: Fri, 19 Dec 2003 17:23:32 +0200 From: Alexey Zelkin To: Sebastiaan van Erk Message-ID: <20031219152332.GA25641@phantom.cris.net> References: <1071830891.66714.3.camel@blauwoor.sebster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1071830891.66714.3.camel@blauwoor.sebster.com> X-Operating-System: FreeBSD 4.9-STABLE i386 User-Agent: Mutt/1.5.5.1i cc: freebsd-java@freebsd.org Subject: Re: bug report jdk1.4.2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 15:23:39 -0000 hi, It was reported already. Can you please try '-Djava.net.preferIPv4Stack=true' command line switch while executing java ? Error should not appear in this case. If java still fail -- notice me urgently! On Fri, Dec 19, 2003 at 11:48:11AM +0100, Sebastiaan van Erk wrote: > Hi all, > > I'm running FreeBSD 4.9-RELEASE with native JDK 1.4.2, and I get the > following VM crash (see below). It's consistent, I.E. it crashes EVERY > time. Does anybody know a work around? > > Greetings, > Sebastiaan van Erk > > An unexpected exception has been detected in native code outside the VM. > Unexpected Signal : 11 occurred at PC=0x280C327B > Function=_flockfile_debug+0x2B > Library=/usr/lib/libc_r.so.4 > > Current Java thread: > at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) > at > java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770) > at > java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059) > at java.net.InetAddress.getAllByName0(InetAddress.java:1009) > at java.net.InetAddress.getAllByName0(InetAddress.java:981) > at java.net.InetAddress.getAllByName(InetAddress.java:975) > at java.net.InetAddress.getByName(InetAddress.java:889) > at sun.net.www.http.HttpClient.(HttpClient.java:296) > at sun.net.www.http.HttpClient.(HttpClient.java:267) > at sun.net.www.http.HttpClient.New(HttpClient.java:339) > at sun.net.www.http.HttpClient.New(HttpClient.java:320) > at sun.net.www.http.HttpClient.New(HttpClient.java:315) > at > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne > ction.java:510) > at > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection > .java:487) > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon > nection.java:615) > - locked <0x2cd0ce18> (a > sun.net.www.protocol.http.HttpURLConnection) > at java.net.URL.openStream(URL.java:913) > at > com.servoy.j2db.develop.cmd.CmdNewVersionCheck$2.run(CmdNewVersionChe > ck.java:80) > at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:50) > at java.lang.Thread.run(Thread.java:534) > > Dynamic libraries: > 0x8048000 /usr/local/jdk1.4.2/bin/java > 0x2806b000 /usr/lib/libc_r.so.4 > 0x28122000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so > 0x28668000 /usr/lib/libstdc++.so.3 > 0x286ad000 /usr/lib/libm.so.2 > 0x286c8000 > /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so > 0x286d6000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so > 0x286f1000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so > 0x28712000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so > 0x345c0000 /usr/local/jdk1.4.2/jre/lib/i386/libjdwp.so > 0x345f1000 /usr/local/jdk1.4.2/jre/lib/i386/libdt_socket.so > 0x34cef000 /usr/local/jdk1.4.2/jre/lib/i386/libawt.so > 0x34f5e000 /usr/local/jdk1.4.2/jre/lib/i386/libmlib_image.so > 0x34fb0000 /usr/X11R6/lib/libXp.so.6 > 0x34fb8000 /usr/X11R6/lib/libXt.so.6 > 0x35002000 /usr/X11R6/lib/libXext.so.6 > 0x35010000 /usr/X11R6/lib/libXtst.so.6 > 0x3501e000 /usr/X11R6/lib/libXmu.so.6 > 0x35033000 /usr/X11R6/lib/libX11.so.6 > 0x350ef000 /usr/X11R6/lib/libSM.so.6 > 0x350f8000 /usr/X11R6/lib/libICE.so.6 > 0x3510e000 /usr/X11R6/lib/libXThrStub.so.6 > 0x35110000 /usr/local/jdk1.4.2/jre/lib/i386/libfontmanager.so > 0x351e2000 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 > 0x351e5000 /usr/lib/libc.so.4 > 0x3527e000 /usr/X11R6/lib/libXcursor.so.1 > 0x35287000 /usr/X11R6/lib/libXrender.so.1 > 0x3528f000 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 > 0x353a6000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so > 0x35b30000 /usr/local/jdk1.4.2/jre/lib/i386/libdcpr.so > 0x2804e000 /usr/libexec/ld-elf.so.1 > > Heap at VM Abort: > Heap > def new generation total 576K, used 94K [0x2c540000, 0x2c5e0000, > 0x2ca20000) > eden space 512K, 10% used [0x2c540000, 0x2c54d738, 0x2c5c0000) > from space 64K, 63% used [0x2c5c0000, 0x2c5ca2f8, 0x2c5d0000) > to space 64K, 0% used [0x2c5d0000, 0x2c5d0000, 0x2c5e0000) > tenured generation total 5136K, used 3472K [0x2ca20000, 0x2cf24000, > 0x3054000 > 0) > the space 5136K, 67% used [0x2ca20000, 0x2cd843f0, 0x2cd84400, > 0x2cf24000) > compacting perm gen total 15104K, used 14943K [0x30540000, 0x31400000, > 0x34540 > 000) > the space 15104K, 98% used [0x30540000, 0x313d7c90, 0x313d7e00, > 0x31400000) > > Local Time = Fri Dec 19 11:39:50 2003 > Elapsed Time = 18 > # > # The exception above was detected in native code outside the VM > # > # Java VM: Java HotSpot(TM) Client VM (1.4.2-p5-root_17_dec_2003_16_42 > mixed mod > e) > # > > > _______________________________________________ > 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 Fri Dec 19 07:33:30 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB51E16A4CE for ; Fri, 19 Dec 2003 07:33:30 -0800 (PST) Received: from mail.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id 4E87643D46 for ; Fri, 19 Dec 2003 07:33:28 -0800 (PST) (envelope-from sebster@sebster.com) Received: (qmail 26163 invoked from network); 19 Dec 2003 15:33:27 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.80.226) by server.profdata.nl with SMTP; 19 Dec 2003 15:33:27 -0000 From: Sebastiaan van Erk To: Alexey Zelkin In-Reply-To: <20031219152332.GA25641@phantom.cris.net> References: <1071830891.66714.3.camel@blauwoor.sebster.com> <20031219152332.GA25641@phantom.cris.net> Content-Type: text/plain Organization: Insight Information Technologies Message-Id: <1071847944.66714.13.camel@blauwoor.sebster.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 19 Dec 2003 16:32:24 +0100 Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: bug report jdk1.4.2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 15:33:31 -0000 Hi! Unfortunately, after a recompile the problem disappeared and I am now unable to reproduce it. If however I do get the same error again, I will follow your (and Nick Johnson's) tips, and if the error still occurs, notify you. Thanks for the great response! Greetings, Sebastiaan van Erk On Fri, 2003-12-19 at 16:23, Alexey Zelkin wrote: > hi, > > It was reported already. Can you please try '-Djava.net.preferIPv4Stack=true' > command line switch while executing java ? Error should not appear in this > case. > > If java still fail -- notice me urgently! > > On Fri, Dec 19, 2003 at 11:48:11AM +0100, Sebastiaan van Erk wrote: > > Hi all, > > > > I'm running FreeBSD 4.9-RELEASE with native JDK 1.4.2, and I get the > > following VM crash (see below). It's consistent, I.E. it crashes EVERY > > time. Does anybody know a work around? > > > > Greetings, > > Sebastiaan van Erk > > > > An unexpected exception has been detected in native code outside the VM. > > Unexpected Signal : 11 occurred at PC=0x280C327B > > Function=_flockfile_debug+0x2B > > Library=/usr/lib/libc_r.so.4 > > > > Current Java thread: > > at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) > > at > > java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770) > > at > > java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059) > > at java.net.InetAddress.getAllByName0(InetAddress.java:1009) > > at java.net.InetAddress.getAllByName0(InetAddress.java:981) > > at java.net.InetAddress.getAllByName(InetAddress.java:975) > > at java.net.InetAddress.getByName(InetAddress.java:889) > > at sun.net.www.http.HttpClient.(HttpClient.java:296) > > at sun.net.www.http.HttpClient.(HttpClient.java:267) > > at sun.net.www.http.HttpClient.New(HttpClient.java:339) > > at sun.net.www.http.HttpClient.New(HttpClient.java:320) > > at sun.net.www.http.HttpClient.New(HttpClient.java:315) > > at > > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne > > ction.java:510) > > at > > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection > > .java:487) > > at > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon > > nection.java:615) > > - locked <0x2cd0ce18> (a > > sun.net.www.protocol.http.HttpURLConnection) > > at java.net.URL.openStream(URL.java:913) > > at > > com.servoy.j2db.develop.cmd.CmdNewVersionCheck$2.run(CmdNewVersionChe > > ck.java:80) > > at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:50) > > at java.lang.Thread.run(Thread.java:534) > > > > Dynamic libraries: > > 0x8048000 /usr/local/jdk1.4.2/bin/java > > 0x2806b000 /usr/lib/libc_r.so.4 > > 0x28122000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so > > 0x28668000 /usr/lib/libstdc++.so.3 > > 0x286ad000 /usr/lib/libm.so.2 > > 0x286c8000 > > /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so > > 0x286d6000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so > > 0x286f1000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so > > 0x28712000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so > > 0x345c0000 /usr/local/jdk1.4.2/jre/lib/i386/libjdwp.so > > 0x345f1000 /usr/local/jdk1.4.2/jre/lib/i386/libdt_socket.so > > 0x34cef000 /usr/local/jdk1.4.2/jre/lib/i386/libawt.so > > 0x34f5e000 /usr/local/jdk1.4.2/jre/lib/i386/libmlib_image.so > > 0x34fb0000 /usr/X11R6/lib/libXp.so.6 > > 0x34fb8000 /usr/X11R6/lib/libXt.so.6 > > 0x35002000 /usr/X11R6/lib/libXext.so.6 > > 0x35010000 /usr/X11R6/lib/libXtst.so.6 > > 0x3501e000 /usr/X11R6/lib/libXmu.so.6 > > 0x35033000 /usr/X11R6/lib/libX11.so.6 > > 0x350ef000 /usr/X11R6/lib/libSM.so.6 > > 0x350f8000 /usr/X11R6/lib/libICE.so.6 > > 0x3510e000 /usr/X11R6/lib/libXThrStub.so.6 > > 0x35110000 /usr/local/jdk1.4.2/jre/lib/i386/libfontmanager.so > > 0x351e2000 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 > > 0x351e5000 /usr/lib/libc.so.4 > > 0x3527e000 /usr/X11R6/lib/libXcursor.so.1 > > 0x35287000 /usr/X11R6/lib/libXrender.so.1 > > 0x3528f000 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 > > 0x353a6000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so > > 0x35b30000 /usr/local/jdk1.4.2/jre/lib/i386/libdcpr.so > > 0x2804e000 /usr/libexec/ld-elf.so.1 > > > > Heap at VM Abort: > > Heap > > def new generation total 576K, used 94K [0x2c540000, 0x2c5e0000, > > 0x2ca20000) > > eden space 512K, 10% used [0x2c540000, 0x2c54d738, 0x2c5c0000) > > from space 64K, 63% used [0x2c5c0000, 0x2c5ca2f8, 0x2c5d0000) > > to space 64K, 0% used [0x2c5d0000, 0x2c5d0000, 0x2c5e0000) > > tenured generation total 5136K, used 3472K [0x2ca20000, 0x2cf24000, > > 0x3054000 > > 0) > > the space 5136K, 67% used [0x2ca20000, 0x2cd843f0, 0x2cd84400, > > 0x2cf24000) > > compacting perm gen total 15104K, used 14943K [0x30540000, 0x31400000, > > 0x34540 > > 000) > > the space 15104K, 98% used [0x30540000, 0x313d7c90, 0x313d7e00, > > 0x31400000) > > > > Local Time = Fri Dec 19 11:39:50 2003 > > Elapsed Time = 18 > > # > > # The exception above was detected in native code outside the VM > > # > > # Java VM: Java HotSpot(TM) Client VM (1.4.2-p5-root_17_dec_2003_16_42 > > mixed mod > > e) > > # > > > > > > _______________________________________________ > > 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 Fri Dec 19 10:53:37 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8442D16A4CE for ; Fri, 19 Dec 2003 10:53:37 -0800 (PST) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 191BA43D31 for ; Fri, 19 Dec 2003 10:53:34 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: from [198.60.22.204] (helo=mgr4.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1AXPkj-0005vP-02 for freebsd-java@freebsd.org; Fri, 19 Dec 2003 11:53:33 -0700 Received: from glewis.users.xmission.com ([207.135.128.145] helo=misty.eyesbeyond.com) by mgr4.xmission.com with esmtp (Exim 4.22) id 1AXPki-0002Ut-Pz for freebsd-java@freebsd.org; Fri, 19 Dec 2003 11:53:32 -0700 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.10/8.12.10) with ESMTP id hBJIv7Ya000903 for ; Fri, 19 Dec 2003 11:57:08 -0700 (MST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.10/8.12.10/Submit) id hBJIv6Zx000902 for freebsd-java@freebsd.org; Fri, 19 Dec 2003 11:57:06 -0700 (MST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 19 Dec 2003 11:57:06 -0700 From: Greg Lewis To: freebsd-java@freebsd.org Message-ID: <20031219185706.GA883@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.4.1i Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on mgr4.xmission.com X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=8.0 tests=BAYES_00 autolearn=no version=2.61 X-SA-Exim-Mail-From: glewis@eyesbeyond.com X-SA-Exim-Version: 3.1 (built Wed Aug 20 09:38:54 PDT 2003) X-SA-Exim-Scanned: Yes Subject: 1.3.1 patchset 9 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 18:53:37 -0000 Hi all, Patchset 9 for JDK 1.3.1 is up on the web site. From a FreeBSD point of view the main changes are: 1. Improved window manager support. 2. Improved native threads and HotSpot support (green threads is still the default though). 3. Improvements in the Maths library. In addition, this patchset features experimental OpenBSD/i386 and NetBSD/powerpc support for the first time. See THANKS and ChangeLog in the patchset for more information. As usual, the patchset is available at: http://www.eyesbeyond.com/freebsddom/java/jdk13.html Updates for the FreeBSD port/java/jdk13 port and the FreeBSD java web pages will be committed shortly. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Sat Dec 20 11:31:10 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4D2F16A4CE for ; Sat, 20 Dec 2003 11:31:10 -0800 (PST) Received: from mallard.propagation.net (mallard.propagation.net [66.34.7.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFE8D43D54 for ; Sat, 20 Dec 2003 11:30:49 -0800 (PST) (envelope-from evan@eeaston.com) Received: from h1.int.eeaston.com (c-24-245-65-42.mn.client2.attbi.com [24.245.65.42]) by mallard.propagation.net (8.9.3p2/8.8.5) with ESMTP id NAA00110; Sat, 20 Dec 2003 13:13:33 -0600 Received: from eeaston.com (eastonlaptop [192.168.0.90]) by h1.int.eeaston.com (Postfix) with ESMTP id 466AA3999D; Sat, 20 Dec 2003 13:13:17 -0600 (CST) Message-ID: <3FE49F4D.2030309@eeaston.com> Date: Sat, 20 Dec 2003 13:13:17 -0600 From: Evan Easton User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexey Zelkin , freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: jdk1.4.2: plugin & javaws users feedback request X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2003 19:31:11 -0000 On Monday 08 December 2003 14:32, Alexey Zelkin wrote: > Gentelmen, > > If you are using jdk1.4.2p5 and also use plugin and/or javaws, then > I would ask you send me your feedbacks (positive and/or negative) about > their correctnes and functionality. I am not using them heavily, so > not able to test them a lot. > > Thank you in advance! / /Alexey, I just installed jdk 1.4.2p5 and tried to use javaws on 5.1-CURRENT. I ran into two issues with javaws. (1) when I run javaws nothing appears to happen. Top shows javawsbin spinning it's wheels using ~40% CPU, but other than that there's no outward symptoms it's doing anything useful. I tried setting env var JAVAWS_TRACE_NATIVE=1 , but this did not cause javawsbin to show any more info. I was able to get it to run with the following script: #!/bin/sh JAVA_HOME=/usr/local/jdk1.4.2 JAVAWS_HOME=$JAVA_HOME/jre/javaws java -cp $JAVAWS_HOME/javaws.jar:$JAVAWS_HOME/javaws-l10n.jar \ -Djnlpx.jvm=$JAVA_HOME/jre/bin/java -Djnlpx.home=$JAVAWS_HOME \ -Djnlpx.deployment.system.home=$JAVAWS_HOME \ -Djnlpx.deployment.user.home=/home/evan/.javaws \ -Djnlpx.home=$JAVAWS_HOME \ -Djava.security.policy=$JAVAWS_HOME/javaws.policy \ com.sun.javaws.Main "$@" So it seems something's wrong in javawsbin. I don't know how to provide more useful info to you on this. Give me a hint and I'll try. (2) Using the above script, I'm able to run some java webstart apps. However, because java -version reports '1.4.2-p5', Java Web Start doesn't consider the JRE to be a 1.4.2 **FCS** version and will not treat the current VM as valid if a java webstart app wants to run with Java 1.4. Take a look at the jnlp spec. (http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html) . Look for the text following the syntax for the j2se version command element: If a platform version is specified (i.e., no |href| attribute is provided), Java Web Start will not consider an installed non-FCS (i.e., milestone) JRE as a match. E.g., a request of the form would not consider an installed 1.4.1-ea or 1.4.2-beta JRE as a match for the request. Starting with 1.3.0, a JRE from Sun Microsystems, Inc., is by convention a non-FCS (milestone) JRE if there is a dash (|-|) in the version string. So this version of the JDK is unusable for apps that require 1.4 or higher (and possibly ones that require older versions of java too). I tried overriding the version from my script above by adding the following system property overrides, but no luck: | -Djava.version=1.4.2 || -Djava.vm.specification.version=1.4.2| | -Djava.vm.version=1.4.2| | -Djava.specification.version=1.4.2| I haven't tried to rebuild the jdk to report a version of '1.4.2' instead of '1.4.2-p5' but it seems that this needs to be done to make javaws usable. Note that Sun uses a _XX suffix on their patch releases. Perhaps the version reported should be changes to '1.4.2_p5' or to be a little more consisted with Sun, '1.4.2_05'. Evan / / From owner-freebsd-java@FreeBSD.ORG Sat Dec 20 15:31:43 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2365616A4CE; Sat, 20 Dec 2003 15:31:43 -0800 (PST) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CA7443D55; Sat, 20 Dec 2003 15:31:41 -0800 (PST) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [192.168.36.3]) by sakura.ninth-nine.com (8.12.10/8.12.10/NinthNine) with SMTP id hBKNVdjB084857; Sun, 21 Dec 2003 08:31:39 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 21 Dec 2003 08:31:39 +0900 (JST) Message-Id: <200312202331.hBKNVdjB084857@sakura.ninth-nine.com> From: Norikatsu Shigemura To: freebsd-java@FreeBSD.org X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: ports@FreeBSD.org Subject: Would you investigate Java3D port? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2003 23:31:43 -0000 OISHI Masakuni supported Linux (Blackdown) Java3D 1.3.1 beta on FreeBSD native Java (tested on JDK1.4.2) using Linux Plugin Wrapper. # http://bsdhouse.org/yamasa/java/java3d/ # sorry, this provides only Japanese. I committed his patch, and release following new archive. http://people.FreeBSD.org/~nork/distfiles/linuxpluginwrapper-20031221.tar.gz I'll commit this to ports. But we have no Java3D ports. So I made these, but not good:-(. Please investigate these ports? I want 2 ports, one is linux-blackdown-java3d-131 (maybe), others java3d-14(symlink from installed files of linux-blackdown-java3d-131). (or java3d-13 like java3d-14). # hum... # Should java3d-14 depend on linuxpluginwrapper and linux-blackdown-java13? # Sorry, please, please! :D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # linux-blackdown-java3d-13 # linux-blackdown-java3d-13/Makefile # linux-blackdown-java3d-13/distinfo # echo c - linux-blackdown-java3d-13 mkdir -p linux-blackdown-java3d-13 > /dev/null 2>&1 echo x - linux-blackdown-java3d-13/Makefile sed 's/^X//' >linux-blackdown-java3d-13/Makefile << 'END-of-linux-blackdown-java3d-13/Makefile' X# New ports collection makefile for: linux-blackdown-java3d X# Date created: 2003/12/19 X# Whom: nork@FreeBSD.org X# X# $FreeBSD$ X# X XPORTNAME= java3d XPORTVERSION= ${JDK_VERSION}.b XCATEGORIES= java graphics XMASTER_SITES= ftp://ftp.tux.org/pub/java/java3d/${JDK_VERSION}/i386/beta/ \ X ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/java3d/${JDK_VERSION}/i386/beta/ XPKGNAMEPREFIX= linux-blackdown- XDISTNAME= java3d-sdk-${JDK_VERSION}-beta-linux-i386 XEXTRACT_SUFX= .bin X XMAINTAINER= java@FreeBSD.org XCOMMENT= Blackdown Java3D Development Kit ${JDK_VERSION} for Linux X XBUILD_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper XRUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper X XEXTRACT_CMD= ${TAIL} XEXTRACT_BEFORE_ARGS= +360 XEXTRACT_AFTER_ARGS= | ${BZIP2_CMD} -dc | ${TAR} xf - XUSE_BZIP2= yes X XNO_WRKSUBDIR= yes X#PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} PORTVERSION=${PORTVERSION} X XNO_BUILD= yes XUSE_LINUX= yes XJDK_VERSION= 1.3.1 XONLY_FOR_ARCHS= i386 X XNO_CDROM= "License doesn\'t allow distribution" XNO_PACKAGE= "License doesn\'t allow binary distributions" X X#APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}${JDK_VERSION} X X.include X Xdo-install: X @${ECHO} -n ">> Creating destination directory ${APP_HOME}..." X @${MKDIR} ${APP_HOME} X @${ECHO} " [ DONE ]" X X @${ECHO} -n ">> Copying files..." X @${CP} -R ${WRKSRC}/* ${APP_HOME} X @${CHOWN} -h -R ${LIBOWN}:${LIBGRP} ${APP_HOME} X @${ECHO} " [ DONE ]" X X.include END-of-linux-blackdown-java3d-13/Makefile echo x - linux-blackdown-java3d-13/distinfo sed 's/^X//' >linux-blackdown-java3d-13/distinfo << 'END-of-linux-blackdown-java3d-13/distinfo' XMD5 (java3d-sdk-1.3.1-beta-linux-i386.bin) = 9d23489e7a5217f18ba9c7349cd37546 END-of-linux-blackdown-java3d-13/distinfo exit - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From owner-freebsd-java@FreeBSD.ORG Sat Dec 20 23:06:21 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D01BA16A4CE for ; Sat, 20 Dec 2003 23:06:21 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D3A443D39 for ; Sat, 20 Dec 2003 23:06:18 -0800 (PST) (envelope-from phantom@FreeBSD.org.ua) Received: from phantom.cris.net (phantom@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id hBL769l7083674; Sun, 21 Dec 2003 09:06:09 +0200 (EET) (envelope-from phantom@FreeBSD.org.ua) Received: (from phantom@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id hBL767Ft083673; Sun, 21 Dec 2003 09:06:07 +0200 (EET) (envelope-from phantom) Date: Sun, 21 Dec 2003 09:06:07 +0200 From: Alexey Zelkin To: Evan Easton Message-ID: <20031221070607.GA83651@phantom.cris.net> References: <3FE49F4D.2030309@eeaston.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FE49F4D.2030309@eeaston.com> X-Operating-System: FreeBSD 4.9-STABLE i386 User-Agent: Mutt/1.5.5.1i cc: freebsd-java@freebsd.org Subject: Re: jdk1.4.2: plugin & javaws users feedback request X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2003 07:06:22 -0000 Evan, Sorry for not writing this earlier. I have tracked down few bugs in javaws code as well as converted wrappers to /bin/sh. Updated code will be available in -p6 (which is expected to be released next week). Can you please wait few days and try it again ? On Sat, Dec 20, 2003 at 01:13:17PM -0600, Evan Easton wrote: > On Monday 08 December 2003 14:32, Alexey Zelkin wrote: > > Gentelmen, > > > > If you are using jdk1.4.2p5 and also use plugin and/or javaws, then > > I would ask you send me your feedbacks (positive and/or negative) about > > their correctnes and functionality. I am not using them heavily, so > > not able to test them a lot. > > > > Thank you in advance! > / > /Alexey, > I just installed jdk 1.4.2p5 and tried to use javaws on 5.1-CURRENT. I > ran into two issues with javaws. > > (1) when I run javaws nothing appears to happen. Top shows javawsbin > spinning it's wheels using ~40% CPU, but other than that there's no > outward symptoms it's doing anything useful. I tried setting env var > JAVAWS_TRACE_NATIVE=1 , but this did not cause javawsbin to show any > more info. I was able to get it to run with the following script: > > #!/bin/sh > JAVA_HOME=/usr/local/jdk1.4.2 > JAVAWS_HOME=$JAVA_HOME/jre/javaws > java -cp $JAVAWS_HOME/javaws.jar:$JAVAWS_HOME/javaws-l10n.jar \ > -Djnlpx.jvm=$JAVA_HOME/jre/bin/java -Djnlpx.home=$JAVAWS_HOME \ > -Djnlpx.deployment.system.home=$JAVAWS_HOME \ > -Djnlpx.deployment.user.home=/home/evan/.javaws \ > -Djnlpx.home=$JAVAWS_HOME \ > -Djava.security.policy=$JAVAWS_HOME/javaws.policy \ > com.sun.javaws.Main "$@" > > So it seems something's wrong in javawsbin. I don't know how to > provide more useful info to you on this. Give me a hint and I'll try. > > (2) Using the above script, I'm able to run some java webstart apps. > However, because java -version reports '1.4.2-p5', Java Web Start > doesn't consider the JRE to be a 1.4.2 **FCS** version and will not > treat the current VM as valid if a java webstart app wants to run with > Java 1.4. Take a look at the jnlp spec. > (http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html) > . Look for the text following the syntax for the j2se version command > element: > > If a platform version is specified (i.e., no |href| attribute is > provided), Java Web Start will not consider an installed > non-FCS (i.e., milestone) JRE as a match. E.g., a request of > the form > > > > would not consider an installed 1.4.1-ea or 1.4.2-beta > JRE as a match for the request. Starting with 1.3.0, a JRE > from Sun Microsystems, Inc., is by convention a > non-FCS (milestone) JRE if there is a dash (|-|) in the version > string. > > So this version of the JDK is unusable for apps that require 1.4 or > higher (and possibly ones that require older versions of java too). I > tried overriding the version from my script above by adding the > following system property overrides, but no luck: > > | -Djava.version=1.4.2 > || -Djava.vm.specification.version=1.4.2| > | -Djava.vm.version=1.4.2| > | -Djava.specification.version=1.4.2| > > I haven't tried to rebuild the jdk to report a version of '1.4.2' > instead of '1.4.2-p5' but it seems that this needs to be done to make > javaws usable. Note that Sun uses a _XX suffix on their patch > releases. Perhaps the version reported should be changes to '1.4.2_p5' > or to be a little more consisted with Sun, '1.4.2_05'. > Evan > / > /