From owner-freebsd-java Sun Aug 25 1: 9:52 2002 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 81DA537B400 for ; Sun, 25 Aug 2002 01:09:50 -0700 (PDT) Received: from mail.cise.ufl.edu (beach.cise.ufl.edu [128.227.205.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id C693143E3B for ; Sun, 25 Aug 2002 01:09:49 -0700 (PDT) (envelope-from nthomas@cise.ufl.edu) Received: from shine.cise.ufl.edu (shine.cise.ufl.edu [128.227.205.20]) by mail.cise.ufl.edu (Postfix) with ESMTP id BD4746ACB for ; Sun, 25 Aug 2002 04:09:48 -0400 (EDT) Received: (from nthomas@localhost) by shine.cise.ufl.edu (8.9.1a/8.9.1) id EAA05310 for freebsd-java@freebsd.org; Sun, 25 Aug 2002 04:09:48 -0400 (EDT) Date: Sun, 25 Aug 2002 04:09:48 -0400 From: "N. Thomas" To: freebsd-java@freebsd.org Subject: SunOne (nee Forte) on freebsd Message-ID: <20020825080948.GA4989@cise.ufl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org There is a note on the Newsflash page about Forte being ported to FreeBSD last September: http://www.freebsd.org/java/newsflash.html Does anyone know if the latest version of this package -- now called the SunONE Studio is also available? thanks, thomas -- N. Thomas nthomas@cise.ufl.edu Etiamsi occiderit me, in ipso sperabo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Aug 25 19:15:11 2002 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 26DB037B400 for ; Sun, 25 Aug 2002 19:15:09 -0700 (PDT) Received: from modusponens.dnsalias.org (pool-151-203-187-83.wma.east.verizon.net [151.203.187.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53D9043E3B for ; Sun, 25 Aug 2002 19:15:08 -0700 (PDT) (envelope-from jay@eziba.com) Received: from eziba.com (localhost [127.0.0.1]) by modusponens.dnsalias.org (8.12.5/8.12.5) with ESMTP id g7Q2IaJF025263; Sun, 25 Aug 2002 22:18:37 -0400 (EDT) (envelope-from jay@eziba.com) Message-ID: <3D698FFC.3040904@eziba.com> Date: Sun, 25 Aug 2002 22:18:36 -0400 From: Jay Sachs User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020606 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Archie Cobbs Cc: freebsd-java@FreeBSD.ORG Subject: Re: FreeBSD-specific jikes problem References: <200208232330.g7NNUod23140@arch20m.dellroad.org> X-Enigmail-Version: 0.49.5.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Freshly -supped ports tree, and -stable as of Aug 7. Attempt 1: I build the port with no optimization and debugging on, as follows: make CXXFLAGS='-g -pipe' No core dump, just a (jikes) warning about use of '$' in an identifier. So apparently the optimization in the 4.6-stable c++ compiler is a bit flakey. Attempt 2: Turn on optimization, building jikes as follows: make CXXFLAGS='-g -O -pipe' Ok, got core dump. Ran gdb, and the stack was filled with repetitions of #177 0x82071d2 in Semantic::ProcessBinaryExpression (this=0x8d18000, expr=0x8d1e474) at expr.cpp:6640 #178 0x81f30c8 in Semantic::ProcessPLUS (this=0x8d18000, expr=0x8d1e4c0) at semantic.h:1398 883 frames in total. So it looks like the optimizer inserted an infinite loop. It looks like the gcc 2.95.4 import of June 20 could be the culprit. The RELENG_4_6 branches (4.6-RELEASE, 4.6.1, 4.6.2 etc) do NOT have 2.95.4 imported, so if someone could test one of those systems we could pretty much nail down that it's a 2.95.4 optimizer bug. jay > Hi, > > If anyone who knows C++ and is interested in fixing a jikes core dump > problem, please take a look at this bug: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=41961 > > This bug does *not* occur on Linux, so it appears that the bug > may actually be part of FreeBSD rather than jikes. > > I know zero C++ and so can't do much about it.. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Aug 25 21:28:11 2002 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 B44A937B400 for ; Sun, 25 Aug 2002 21:28:09 -0700 (PDT) Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83AD043E6A for ; Sun, 25 Aug 2002 21:28:08 -0700 (PDT) (envelope-from shudo@computer.org) Received: from rpsmtp1.aist.go.jp by mx1.aist.go.jp with ESMTP id g7Q4S2L18049; Mon, 26 Aug 2002 13:28:02 +0900 (JST) env-from (shudo@computer.org) Received: from mail04.aist.go.jp by rpsmtp1.aist.go.jp with ESMTP id g7Q4S1207549; Mon, 26 Aug 2002 13:28:01 +0900 (JST) env-from (shudo@computer.org) Received: from aist.go.jp by mail04.aist.go.jp with ESMTP id g7Q4S0k21821; Mon, 26 Aug 2002 13:28:01 +0900 (JST) env-from (shudo@computer.org) Date: Mon, 26 Aug 2002 13:28:50 +0900 (JST) Message-Id: <20020826.132850.884017782.shudoh@localhost> To: freebsd-java@FreeBSD.ORG, fjoe@iclub.nsu.ru Subject: Re: Setting up a Java development environment From: shudo@computer.org In-Reply-To: <20020816180626.B87919@iclub.nsu.ru> References: <20020816103106.1350F386@sonic.kks.net> <20020816180626.B87919@iclub.nsu.ru> X-Mailer: Mew version 2.2 on XEmacs 21.4.8 (Honest Recruiter) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Max Khon wrote: > btw JBuilder 7 works pretty good under native jdk 1.3.1p6. > Still waiting for HotSpot because all 3rd party JIT compilers I tried > (shujit, tya and openjit) fail to run JBuilder 7. On my FreeBSD box, JBuilder 7 works with OpenJIT or shuJIT. I confirmed that JBuilder 7 could be started up and shut down correctly. I use: FreeBSD 4.6-STABLE early in August JDK 1.3.1 patchlevel 7 OpenJIT 1.1.16 shuJIT 0.7.13 But, OpenJIT seems to work fine but shows an optimization failure: pc:870 org.OpenJIT.CompilerError: constant folding:xor 1 -1 -> %si10 at org.OpenJIT.OptimizeRTL.optimizeRTL(OptimizeRTL.java, Compiled Code) at org.OpenJIT.Compile.compile(Compile.java, Compiled Code) in ice.pilots.html4.nb.a(Lice/pilots/html4/tb;Lice/pilots/html4/rb;ILice/pilots/html4/tb;)V TYA 1.7v3 cannot run JBuilder 7 with the following message: Exception in thread "main" java.lang.LinkageError at com.borland.jbuilder.JBuilder.(Unknown Source) Kazuyuki Shudo shudo@computer.org http://www.shudo.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 1:55:26 2002 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 1E67937B400 for ; Mon, 26 Aug 2002 01:55:24 -0700 (PDT) Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 297C843E3B for ; Mon, 26 Aug 2002 01:55:23 -0700 (PDT) (envelope-from antony.t.curtis@ntlworld.com) Received: from ntlworld.com ([213.104.146.54]) by mta02-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020826085521.GMTT290.mta02-svc.ntlworld.com@ntlworld.com>; Mon, 26 Aug 2002 09:55:21 +0100 Message-ID: <3D69EC30.3060308@ntlworld.com> Date: Mon, 26 Aug 2002 09:52:00 +0100 From: Antony T Curtis User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020818 X-Accept-Language: en-gb, en-us, en MIME-Version: 1.0 To: shudo@computer.org Cc: freebsd-java@FreeBSD.ORG, fjoe@iclub.nsu.ru Subject: Re: Setting up a Java development environment References: <20020816103106.1350F386@sonic.kks.net> <20020816180626.B87919@iclub.nsu.ru> <20020826.132850.884017782.shudoh@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org shudo@computer.org wrote: > Max Khon wrote: > > >>btw JBuilder 7 works pretty good under native jdk 1.3.1p6. >>Still waiting for HotSpot because all 3rd party JIT compilers I tried >>(shujit, tya and openjit) fail to run JBuilder 7. > > > On my FreeBSD box, JBuilder 7 works with OpenJIT or shuJIT. > I confirmed that JBuilder 7 could be started up and shut down correctly. > I use: > > FreeBSD 4.6-STABLE early in August > JDK 1.3.1 patchlevel 7 > OpenJIT 1.1.16 > shuJIT 0.7.13 > > But, OpenJIT seems to work fine but shows an optimization failure: > > pc:870 > org.OpenJIT.CompilerError: constant folding:xor 1 -1 -> %si10 > at org.OpenJIT.OptimizeRTL.optimizeRTL(OptimizeRTL.java, Compiled Code) > at org.OpenJIT.Compile.compile(Compile.java, Compiled Code) > in ice.pilots.html4.nb.a(Lice/pilots/html4/tb;Lice/pilots/html4/rb;ILice/pilots/html4/tb;)V > > TYA 1.7v3 cannot run JBuilder 7 with the following message: > > Exception in thread "main" java.lang.LinkageError > at com.borland.jbuilder.JBuilder.(Unknown Source) TYA can be patched to run JBuilder7 just fine... In fact, I used it to run JBuilder 5 when patchset 3 was "current" I will have to reexamine what 2 lines of code I had to modify.... -- Antony T Curtis BSc Unix Analyst Programmer http://homepage.ntlworld.com/antony.t.curtis/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 2:18:29 2002 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 44EC437B400; Mon, 26 Aug 2002 02:18:27 -0700 (PDT) Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49EA343E6E; Mon, 26 Aug 2002 02:18:26 -0700 (PDT) (envelope-from K.J.Koster@kpn.com) Received: by l04.research.kpn.com with Internet Mail Service (5.5.2653.19) id ; Mon, 26 Aug 2002 11:18:24 +0200 Message-ID: <59063B5B4D98D311BC0D0001FA7E452205FDA93F@l04.research.kpn.com> From: K.J.Koster@kpn.com To: dan_256@yahoo.com, znerd@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: RE: Jboss3ctl update (I think I know the problem) Date: Mon, 26 Aug 2002 11:18:16 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear All, > > Conclusion: > > .java_wrapper (apparently sun's current solution) will not > work when invoked by a suid program. > So far, I have encountered two such programs: tomcat, and > jboss (essentially the same design). > I can confirm that this problem is also present with Orion, both 1.5.4 and 1.6.0. Very annoying. Ernst, perhaps you should revert to the daeminctl shell script instead of the executable. The fact that the log paths are compiled into an executable is a pain in the ass and in the end I still have to start and stop Orion as root. Kees Jan ===================================================== You can't have everything. Where would you put it? [Steven Wright] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 2:21:39 2002 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 2109D37B400 for ; Mon, 26 Aug 2002 02:21:37 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41EBF43E72 for ; Mon, 26 Aug 2002 02:21:36 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7Q9LkYU097441; Mon, 26 Aug 2002 11:21:46 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7Q9LjPa097440; Mon, 26 Aug 2002 11:21:45 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: , dan_256@yahoo.com, freebsd-java@FreeBSD.ORG Subject: Re: Jboss3ctl update (I think I know the problem) Date: Mon, 26 Aug 2002 11:21:45 +0200 User-Agent: KMail/1.4.2 References: <59063B5B4D98D311BC0D0001FA7E452205FDA93F@l04.research.kpn.com> In-Reply-To: <59063B5B4D98D311BC0D0001FA7E452205FDA93F@l04.research.kpn.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208261121.45644.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Ernst, perhaps you should revert to the daeminctl shell script instead of > the executable. The fact that the log paths are compiled into an > executable is a pain in the ass and in the end I still have to start and > stop Orion as root. Yeah, but the reason I switched to a C-based program, is that a shell script cannot be made SUID :-\ Anybody have an alternative solution??? Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 2:25:38 2002 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 6EB4E37B400; Mon, 26 Aug 2002 02:25:36 -0700 (PDT) Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BE8543E3B; Mon, 26 Aug 2002 02:25:35 -0700 (PDT) (envelope-from K.J.Koster@kpn.com) Received: by l04.research.kpn.com with Internet Mail Service (5.5.2653.19) id ; Mon, 26 Aug 2002 11:25:34 +0200 Message-ID: <59063B5B4D98D311BC0D0001FA7E452205FDA940@l04.research.kpn.com> From: K.J.Koster@kpn.com To: znerd@FreeBSD.ORG, dan_256@yahoo.com, freebsd-java@FreeBSD.ORG Subject: RE: Jboss3ctl update (I think I know the problem) Date: Mon, 26 Aug 2002 11:25:32 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear Ernst, > > > Ernst, perhaps you should revert to the daeminctl shell > > script instead of > > the executable. The fact that the log paths are compiled into an > > executable is a pain in the ass and in the end I still have > > to start and stop Orion as root. > > Yeah, but the reason I switched to a C-based program, is that > a shell script cannot be made SUID :-\ > Well, it still does not work SUID. :-/ > > Anybody have an alternative solution??? > Perhaps you could set LD_CONFIG_PATH explicitly. This is a security risk, so you may have to discuss the implications of doing so on -hackers. Also, it may be JDK dependent where that lib direcory resides. Kees Jan ===================================================== You can't have everything. Where would you put it? [Steven Wright] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 10:31: 8 2002 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 EF5EE37B400; Mon, 26 Aug 2002 10:31:04 -0700 (PDT) Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95CC543E3B; Mon, 26 Aug 2002 10:31:04 -0700 (PDT) (envelope-from Ranjith.Mandala@Sun.COM) Received: from sfbaymail2.SFBay.Sun.COM ([129.145.154.45]) by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA24718; Mon, 26 Aug 2002 10:31:04 -0700 (PDT) Received: from cindercone.SFBay.Sun.COM (cindercone.SFBay.Sun.COM [129.145.132.179]) by sfbaymail2.SFBay.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v2.1p1) with ESMTP id KAA09925; Mon, 26 Aug 2002 10:31:03 -0700 (PDT) Received: from cindercone (localhost [127.0.0.1]) by cindercone.SFBay.Sun.COM (8.10.2+Sun/8.10.2) with ESMTP id g7QHV3J04214; Mon, 26 Aug 2002 10:31:03 -0700 (PDT) Date: Mon, 26 Aug 2002 10:31:03 -0700 (PDT) Message-ID: <15449858.1030383063493.JavaMail.ranjithm@cindercone> From: Ranjith Mandala To: freebsd-java@freebsd.org Subject: Re: (Review ID: 163529) Internal Error with HotSpot Cc: java-port@freebsd.org, Ranjith.Mandala@Sun.COM Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: postEmail @(#) PostEmail.java 1.14 00/01/27 10:09:23 X-IM-Review-ID: 163529 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi , This Bug Report was submitted from http://java.sun.com/cgi-bin/bugreport.cgi and is being forwarded to you on behalf of solomons@smart.net.au , daves@saise.com.au. If you would like to respond. Please send an e-mail to the addresses listed at the end of this report. Regards, Ranjith ----------------- Original Bug Report------------------- category : hotspot release : hopper-rc subcategory : other type : bug synopsis : Internal Error with HotSpot description : FULL PRODUCT VERSION : Java version 1.1 FULL OPERATING SYSTEM VERSION : FreeBSD 4.6.2 rulling Linux Emulation and trying to load Oracle 9.0i. ADDITIONAL OPERATING SYSTEMS : A DESCRIPTION OF THE PROBLEM : HotSpot Virtual Machine Error, Internal Error Error ID:F533F4C494E55580E43505002b9 Problematic Thread: prio=671491696 tid=0x8098638 nid=0x168e0 runnable STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1../runInstaller from the Oracle Disk1 ver 9.0i 2. 3. EXPECTED VERSUS ACTUAL BEHAVIOR : To Install Oracle! ERROR MESSAGES/STACK TRACES THAT OCCUR : HotSpot Virtual Machine Error, Internal Error Error ID:F533F4C494E55580E43505002b9 Problematic Thread: prio=671491696 tid=0x8098638 nid=0x168e0 runnable REPRODUCIBILITY : This bug can be reproduced always. workaround : suggested_val : cust_name : Solomon Sokolovsky cust_email : solomons@smart.net.au , daves@saise.com.au jdcid : keyword : webbug company : SmarterDSL hardware : x86 OSversion : Linux bugtraqID : 0 dateCreated : 2002-08-23 01:40:27.1 dateEvaluated : 2002-08-26 11:27:30.729 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 11:27:23 2002 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 1479637B400 for ; Mon, 26 Aug 2002 11:27:20 -0700 (PDT) Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DF0043E6A for ; Mon, 26 Aug 2002 11:27:19 -0700 (PDT) (envelope-from dfrazier@magpage.com) Received: from magpage.com (poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.6/8.11.3) with ESMTP id g7QIRGl09897 for ; Mon, 26 Aug 2002 14:27:16 -0400 (EDT) Message-ID: <3D6A7303.3080108@magpage.com> Date: Mon, 26 Aug 2002 14:27:15 -0400 From: Daniel Frazier User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020815 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: jdk13 won't compile... Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-RRT-Status: UNKNOWN Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greetz all, I'm trying to get /usr/ports/java/jdk13 to compile but it's dying with the following... >>>Recursively making sound all @ Mon Aug 26 13:39:38 EDT 2002 ... gmake[2]: Entering directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/ma ke/javax/sound' gmake ../../../build/bsd-i386/lib/i386/libjsound.so copy-files VARIANT =OPT gmake[3]: Entering directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/ma ke/javax/sound' rm -f ../../../build/bsd-i386/tmp/sun/javax.sound/jsound/.classes.list if [ -s ../../../build/bsd-i386/tmp/sun/javax.sound/jsound/.classes.li st ] ; \ then ../../../build/bsd-i386/bin/javac -J-Xms16m -J-Xmx256m -J-Djava.c ompiler=NONE -classpath ../../../build/bsd-i386/classes -bootclasspath "" -sourcepath "../../../build/bsd-i386/gensrc:../../../src/solaris/c lasses:../../../src/share/classes" -d ../../../build/bsd-i386/classes \ ; \ fi gmake[3]: *** No rule to make target `../../../build/bsd-i386/classes/ META-INF/services/javax.sound.sampled.spi.FormatConversionProvider', n eeded by `copy-files'. Stop. gmake[3]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/mak e/javax/sound' gmake[2]: *** [optimized] Error 2 gmake[2]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/mak e/javax/sound' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/mak e/javax' gmake: *** [all] Error 1 *** Error code 2 Stop in /usr/ports/java/jdk13. afaik I've got all it's prerequesites up to date. I even tried a "portupgrade -NRf -x XFree86 jdk" in an attempt to force all its dependancies to be rebuilt just in case it helped. The following were all rebuilt, but didn't help: devel/nspr (nspr-4.2) print/freetype2 (freetype2-2.1.2) devel/pkgconfig (pkgconfig-0.12.0) java/javavmwrapper (javavmwrapper-1.4) x11-fonts/urwfonts (urwfonts-1.0) converters/libiconv (libiconv-1.8_1) devel/gettext (gettext-0.11.5) devel/glib12 (glib-1.2.10_7) x11-toolkits/gtk12 (gtk-1.2.10_7) some other pertinant info: FreeBSD poomba.magpage.com 4.6-STABLE FreeBSD 4.6-STABLE #6: Thu Jul 11 12:43:23 EDT 2002 root@poomba.magpage.com:/usr/obj/usr/src/sys/NEW4 i386 linux_base-7.1 linux-sun-jdk-1.3.1.04_1 any ideas? -- ---------------------------------------------------------------------- Daniel Frazier Tel: 302-239-5900 Ext. 231 Systems Administrator Fax: 302-239-3909 MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 15: 9:47 2002 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 EEFD537B400 for ; Mon, 26 Aug 2002 15:09:44 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13A2943E7B for ; Mon, 26 Aug 2002 15:09:44 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds17-45.dial.hccnet.nl [62.251.45.17] with SMTP id AAA07190 (8.8.8/1.13); Tue, 27 Aug 2002 00:09:32 +0200 (MET DST) Message-Id: <200208262209.AAA07190@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: absinthe@pobox.com, Calvin Varney Subject: Re: Port/package guidelines (WAS: Please review: new Java Project docs) Date: Tue, 27 Aug 2002 00:09:29 +0200 X-Mailer: KMail [version 1.3.2] Cc: freebsd-java@FreeBSD.ORG References: <200208170958.14422.absinthe@pobox.com> <86it25uka2.fsf@ubana.varney2.org> <200208220443.18447.absinthe@pobox.com> In-Reply-To: <200208220443.18447.absinthe@pobox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > As a prelude to continuing this conversation, I believe we probably should > start figuring out how to use Ant in all the Java ports to resolve > dependencies, build jars, do versioning and so on. I would like Ernst to > comment on this, since he does the majority of the Java-related ports > (including Ant). > > It's definitely a more sane way of building and packaging Java > (particularly generating javadocs from code that has it) ... but I also > think it would be an improved way of doing version checking and upgrades. > Take a lot of the work out of the Makefile and into the build.xml's. Dylan, you are right. We should move to Ant. This has been proposed and discussed before, but never actually taken to the next level, i.e. a working example. Currently a very small number of ports seems to use Ant: databases/postgresql-jdbc/Makefile java/jdom/Makefile java/jump/Makefile Maintainer for the first one is girgen@partitur.se, while I'm the maintainer for the other two. These ports, however, don't even serve as a good example, because they only use the buildfile that comes with the library being installed. Initial suggestion: o An Ant-based port sets USE_ANT=YES which is interpreted by bsd.java.mk. Now that's a lot, isn't it? ;-) Questions that arise immediately are: o Should the port come with a build.xml file or should it set some properties that will allow us to _generate_ a build.xml file for it? o If the port comes with a build.xml file, then should it have some default targets? o How do we install any JAR files, source code, Javadoc API documentation, etc in a standard manner? /me hopes this will ignite the discussion and shine some light on this subject which remains a bit vague and distorted in his head Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 16:12: 7 2002 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 0357D37B401 for ; Mon, 26 Aug 2002 16:12:05 -0700 (PDT) Received: from web13406.mail.yahoo.com (web13406.mail.yahoo.com [216.136.175.64]) by mx1.FreeBSD.org (Postfix) with SMTP id 425CB43E65 for ; Mon, 26 Aug 2002 16:12:04 -0700 (PDT) (envelope-from dan_256@yahoo.com) Message-ID: <20020826231204.23827.qmail@web13406.mail.yahoo.com> Received: from [12.254.130.74] by web13406.mail.yahoo.com via HTTP; Mon, 26 Aug 2002 16:12:04 PDT Date: Mon, 26 Aug 2002 16:12:04 -0700 (PDT) From: Dan Hulme Reply-To: dan_256@yahoo.com Subject: RE: Jboss3ctl update (I think I know the problem) To: K.J.Koster@kpn.com, znerd@FreeBSD.ORG, freebsd-java@FreeBSD.ORG In-Reply-To: <59063B5B4D98D311BC0D0001FA7E452205FDA940@l04.research.kpn.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-477509571-1030403524=:23825" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --0-477509571-1030403524=:23825 Content-Type: text/plain; charset=us-ascii He's right, you can't SUID a script. But this is precisely the problem because the .java_wrapper script itself can never set the environment variables. So, even if you could SUID the script, it would still have the same problem that the "real user" is not the "effective user." The only real solution is to make java not require the .java_wrapper script, because only then can you run the binary as another (non-root) user. As long as the .java_wrapper script sets up an environment for java each time it is run, no SUID program will work, because that ENV will be ignored. SUID does not work in either case. It does SUID with the C program, but that doesn't help because the ENV will die in that case. Either way is broken. Static Java anyone? -Dan K.J.Koster@kpn.com wrote:Dear Ernst, > > > Ernst, perhaps you should revert to the daeminctl shell > > script instead of > > the executable. The fact that the log paths are compiled into an > > executable is a pain in the ass and in the end I still have > > to start and stop Orion as root. > > Yeah, but the reason I switched to a C-based program, is that > a shell script cannot be made SUID :-\ > Well, it still does not work SUID. :-/ > > Anybody have an alternative solution??? > Perhaps you could set LD_CONFIG_PATH explicitly. This is a security risk, so you may have to discuss the implications of doing so on -hackers. Also, it may be JDK dependent where that lib direcory resides. Kees Jan ===================================================== You can't have everything. Where would you put it? [Steven Wright] --------------------------------- Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes --0-477509571-1030403524=:23825 Content-Type: text/html; charset=us-ascii

He's right, you can't SUID a script.  But this is precisely the problem because the .java_wrapper script itself can never set the environment variables.  So, even if you could SUID the script, it would still have the same problem that the "real user" is not the "effective user."  The only real solution is to make java not require the .java_wrapper script, because only then can you run the binary as another (non-root) user.

As long as the .java_wrapper script sets up an environment for java each time it is run, no SUID program will work, because that ENV will be ignored.  SUID does not work in either case.  It does SUID with the C program, but that doesn't help because the ENV will die in that case.  Either way is broken.  Static Java anyone?

-Dan

 K.J.Koster@kpn.com wrote:

Dear Ernst,

>
> > Ernst, perhaps you should revert to the daeminctl shell
> > script instead of
> > the executable. The fact that the log paths are compiled into an
> > executable is a pain in the ass and in the end I still have
> > to start and stop Orion as root.
>
> Yeah, but the reason I switched to a C-based program, is that
> a shell script cannot be made SUID :-\
>
Well, it still does not work SUID. :-/

>
> Anybody have an alternative solution???
>
Perhaps you could set LD_CONFIG_PATH explicitly. This is a security risk, so
you may have to discuss the implications of doing so on -hackers. Also, it
may be JDK dependent where that lib direcory resides.

Kees Jan

=====================================================
You can't have everything. Where would you put it?
[Steven Wright]



Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes --0-477509571-1030403524=:23825-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 17:45:10 2002 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 C4F8137B401 for ; Mon, 26 Aug 2002 17:45:05 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B7B843E4A for ; Mon, 26 Aug 2002 17:45:05 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id RAA38267 for ; Mon, 26 Aug 2002 17:30:41 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g7R0TeN36903 for freebsd-java@freebsd.org; Mon, 26 Aug 2002 17:29:40 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200208270029.g7R0TeN36903@arch20m.dellroad.org> Subject: Jikes problems To: freebsd-java@freebsd.org Date: Mon, 26 Aug 2002 17:29:40 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Jikes 1.16 has several bugs. It core dumps, sometimes generates invalid classfiles, and other bad stuff. Some of this I've seen and other things only heard about. As maintainer of the port, I'm wondering what we should do about it... Option #0: Do nothing and live with it. Option #1: Revert jikes port back to 1.15 Option #2: Add a new port "jikes-stable" that builds version 1.15 Option #3: Try to prod the jikes development team to fix the bugs so jikes is more stable and then put out a new release. I'm thinking Option #2 might be best.. what do other people think? Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 18: 7:32 2002 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 2EB8037B400 for ; Mon, 26 Aug 2002 18:07:31 -0700 (PDT) Received: from orestes.cs.brandeis.edu (orestes.cs.brandeis.edu [129.64.3.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 788E643E4A for ; Mon, 26 Aug 2002 18:07:30 -0700 (PDT) (envelope-from meshko@orestes.cs.brandeis.edu) Received: from localhost (meshko@localhost) by orestes.cs.brandeis.edu (8.11.6/8.11.6) with ESMTP id g7R17bn05438; Mon, 26 Aug 2002 21:07:37 -0400 Date: Mon, 26 Aug 2002 21:07:37 -0400 (EDT) From: Mikhail Kruk To: Archie Cobbs Cc: freebsd-java@FreeBSD.ORG Subject: Re: Jikes problems In-Reply-To: <200208270029.g7R0TeN36903@arch20m.dellroad.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I think the combination of #2 and #3 is optimal. That is all the problems on FreeBSD should always be reported to developers. One suggestion though: if 1.16 is that bad, maybe it's better to rename 1.16 to jikes-dev and keep jikes at 1.15? > Jikes 1.16 has several bugs. It core dumps, sometimes generates invalid > classfiles, and other bad stuff. Some of this I've seen and other things > only heard about. > > As maintainer of the port, I'm wondering what we should do about it... > > Option #0: Do nothing and live with it. > Option #1: Revert jikes port back to 1.15 > Option #2: Add a new port "jikes-stable" that builds version 1.15 > Option #3: Try to prod the jikes development team to fix the bugs > so jikes is more stable and then put out a new release. > > I'm thinking Option #2 might be best.. what do other people think? > > Thanks, > -Archie > > __________________________________________________________________________ > Archie Cobbs * Packet Design * http://www.packetdesign.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 18:30: 8 2002 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 67A5F37B400 for ; Mon, 26 Aug 2002 18:30:03 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id E12B843E42 for ; Mon, 26 Aug 2002 18:30:02 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id SAA38540; Mon, 26 Aug 2002 18:25:45 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g7R1Oj037117; Mon, 26 Aug 2002 18:24:45 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200208270124.g7R1Oj037117@arch20m.dellroad.org> Subject: Re: Jikes problems In-Reply-To: "from Mikhail Kruk at Aug 26, 2002 09:07:37 pm" To: Mikhail Kruk Date: Mon, 26 Aug 2002 18:24:45 -0700 (PDT) Cc: freebsd-java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Mikhail Kruk writes: > I think the combination of #2 and #3 is optimal. That is all the > problems on FreeBSD should always be reported to developers. I filed a bug on the jikes web site and it said the bug would be registered after I responded to a confirmation email, but I never got the confirmation email. > One suggestion though: if 1.16 is that bad, maybe it's better to rename > 1.16 to jikes-dev and keep jikes at 1.15? That might make more sense.. so the 'default' jikes is the stable version instead of the more flakey version. Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Aug 26 19:37:52 2002 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 6C17D37B400 for ; Mon, 26 Aug 2002 19:37:51 -0700 (PDT) Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F0D743E3B for ; Mon, 26 Aug 2002 19:37:50 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 2.05 #7) id 17jWEg-000D2q-00 for freebsd-java@freebsd.org; Tue, 27 Aug 2002 03:37:42 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) by dogma.freebsd-uk.eu.org (8.12.3/8.11.1) with ESMTP id g7R2bg3H069059 for ; Tue, 27 Aug 2002 03:37:42 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.3/8.12.3/Submit) id g7R2bguX069058 for freebsd-java@freebsd.org; Tue, 27 Aug 2002 03:37:42 +0100 (BST) Date: Tue, 27 Aug 2002 03:37:41 +0100 From: Jonathon McKitrick To: freebsd-java@freebsd.org Subject: Wrong size windows for Swing app (problem) Message-ID: <20020827023741.GB69027@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Scanner: exiscan *17jWEg-000D2q-00*XZPHC7eZE7o* (Manchester Computing, University of Manchester) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This could be something simple. Almost every Swing app I run on my windowmanager, FluxBox, based on BlackBox, the window comes up either far too small or almost minimized. Any idea what this could be? Is this a Swing problem or more likely a WM problem? jm -- Java on a laptop: the JIT hits the fan. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 0: 1:15 2002 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 45D2737B400 for ; Tue, 27 Aug 2002 00:01:13 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 793E143E3B for ; Tue, 27 Aug 2002 00:01:12 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7R71EYU040039; Tue, 27 Aug 2002 09:01:14 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7R71Efv040038; Tue, 27 Aug 2002 09:01:14 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG Subject: Re: Jboss3ctl update (I think I know the problem) Date: Tue, 27 Aug 2002 09:01:14 +0200 User-Agent: KMail/1.4.3 References: <20020826231204.23827.qmail@web13406.mail.yahoo.com> In-Reply-To: <20020826231204.23827.qmail@web13406.mail.yahoo.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208270901.14099.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > He's right, you can't SUID a script. But this is precisely the problem > because the .java_wrapper script itself can never set the environment > variables. So, even if you could SUID the script, it would still have > the same problem that the "real user" is not the "effective user." The > only real solution is to make java not require the .java_wrapper script, > because only then can you run the binary as another (non-root) user. As > long as the .java_wrapper script sets up an environment for java each > time it is run, no SUID program will work, because that ENV will be > ignored. SUID does not work in either case. It does SUID with the C > program, but that doesn't help because the ENV will die in that case. > Either way is broken. Static Java anyone? -Dan Ah! Now that's IMO a clear explanation! Now just provide the static Java binary and off we go! ;-) Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 0: 3:41 2002 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 A7E4837B400 for ; Tue, 27 Aug 2002 00:03:40 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id C463443E72 for ; Tue, 27 Aug 2002 00:03:39 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7R73mYU040054; Tue, 27 Aug 2002 09:03:48 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7R73lKa040053; Tue, 27 Aug 2002 09:03:47 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Mikhail Kruk , Archie Cobbs Subject: Re: Jikes problems Date: Tue, 27 Aug 2002 09:03:47 +0200 User-Agent: KMail/1.4.3 Cc: freebsd-java@FreeBSD.ORG References: In-Reply-To: X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208270903.47539.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > One suggestion though: if 1.16 is that bad, maybe it's better to rename > 1.16 to jikes-dev and keep jikes at 1.15? +1 (but use 'jikes-devel' for consistency) Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 0: 6:27 2002 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 2FB3B37B400 for ; Tue, 27 Aug 2002 00:06:26 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 656A943E42 for ; Tue, 27 Aug 2002 00:06:25 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7R75LYU040072; Tue, 27 Aug 2002 09:05:21 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7R75Ko1040071; Tue, 27 Aug 2002 09:05:20 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Jonathon McKitrick , freebsd-java@freebsd.org Subject: Re: Wrong size windows for Swing app (problem) Date: Tue, 27 Aug 2002 09:05:20 +0200 User-Agent: KMail/1.4.3 References: <20020827023741.GB69027@dogma.freebsd-uk.eu.org> In-Reply-To: <20020827023741.GB69027@dogma.freebsd-uk.eu.org> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208270905.20830.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 04:37, Jonathon McKitrick wrote: > This could be something simple. Almost every Swing app I run on my > windowmanager, FluxBox, based on BlackBox, the window comes up either far > too small or almost minimized. Any idea what this could be? > > Is this a Swing problem or more likely a WM problem? Try using twm instead. I noticed a lot of Swing-related frame problems, but I only had them with KDE, not with twm. Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 0:51:20 2002 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 EC08D37B400 for ; Tue, 27 Aug 2002 00:51:18 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id C236B43E42 for ; Tue, 27 Aug 2002 00:51:12 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7R7YnYU040584 for ; Tue, 27 Aug 2002 09:34:49 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7R7YnJN040583 for java@FreeBSD.org; Tue, 27 Aug 2002 09:34:49 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" From: Ernst de Haan To: java@FreeBSD.org Subject: Using Ant (continued) Date: Tue, 27 Aug 2002 09:34:49 +0200 User-Agent: KMail/1.4.3 X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208270934.49151.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Another thought: When we install, for example, Xalan, then it should be made available to Ant. So if all JARs are installed into a single directory, or if at least symlinks to all JARs are placed there, then Ant can use whatever is available to the system. Would be nice :-) Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 1: 6:55 2002 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 5A87337B400 for ; Tue, 27 Aug 2002 01:06:54 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9778143E72 for ; Tue, 27 Aug 2002 01:06:40 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7R86ZYU043932 for ; Tue, 27 Aug 2002 10:06:35 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7R86ZRE043931 for java@FreeBSD.org; Tue, 27 Aug 2002 10:06:35 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" From: Ernst de Haan To: java@FreeBSD.org Subject: JDK 1.4.1 rc1 Date: Tue, 27 Aug 2002 10:06:35 +0200 User-Agent: KMail/1.4.3 X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271006.35360.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org All, As you all probably know, the Sun JDK 1.4.0.01 in ports is not very stable. Would it be a good idea to upgrade to 1.4.1 rc1 or should we just wait until the final arrives? I'm not gonna test 1.4.1 anyway, because I don't need 1.4, I'll stick with 1.3. Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 1:43:51 2002 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 5AE9737B400; Tue, 27 Aug 2002 01:43:49 -0700 (PDT) Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 387D243E77; Tue, 27 Aug 2002 01:43:38 -0700 (PDT) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id LAA68686; Tue, 27 Aug 2002 11:43:32 +0300 (EEST) Received: (from ml@localhost) by phantom.cris.net (8.12.2/8.12.2) id g7R8mV0v099221; Tue, 27 Aug 2002 11:48:31 +0300 (EEST) (envelope-from ml) Date: Tue, 27 Aug 2002 11:48:31 +0300 From: Alexey Zelkin To: Ernst de Haan Cc: java@FreeBSD.ORG Subject: Re: JDK 1.4.1 rc1 Message-ID: <20020827114831.A99065@phantom.cris.net> References: <200208271006.35360.znerd@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200208271006.35360.znerd@FreeBSD.org>; from znerd@FreeBSD.ORG on Tue, Aug 27, 2002 at 10:06:35AM +0200 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, I will give a chance for 1.4.1rc1 as soon as my development hardware changes settled up. Actually instability of linux's jdk 1.4.0 under emulation forced me to start native 1.4 port, so maybe I'll have no more reason to continue :-) On Tue, Aug 27, 2002 at 10:06:35AM +0200, Ernst de Haan wrote: > All, > > As you all probably know, the Sun JDK 1.4.0.01 in ports is not very stable. > Would it be a good idea to upgrade to 1.4.1 rc1 or should we just wait > until the final arrives? I'm not gonna test 1.4.1 anyway, because I don't > need 1.4, I'll stick with 1.3. > > Ernst > > -- > Ernst de Haan > EuroNet Internet B.V. > > "Come to me all who are weary and burdened > and I will give you rest" -- Jesus Christ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 1:47:24 2002 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 D110C37B400; Tue, 27 Aug 2002 01:47:22 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C5A943E3B; Tue, 27 Aug 2002 01:47:21 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g7R8lFeA064678; Tue, 27 Aug 2002 11:47:15 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari Organization: Syncron Tech Oy To: Ernst de Haan , dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG Subject: Re: Jboss3ctl update (I think I know the problem) Date: Tue, 27 Aug 2002 11:48:15 +0300 User-Agent: KMail/1.4.2 References: <20020826231204.23827.qmail@web13406.mail.yahoo.com> <200208270901.14099.znerd@FreeBSD.org> In-Reply-To: <200208270901.14099.znerd@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200208271148.15135.ari.suutari@syncrontech.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 10:01, Ernst de Haan wrote: > > He's right, you can't SUID a script. But this is precisely the probl= em > > because the .java_wrapper script itself can never set the environment > > variables. So, even if you could SUID the script, it would still hav= e > > the same problem that the "real user" is not the "effective user." T= he > > only real solution is to make java not require the .java_wrapper scri= pt, > > because only then can you run the binary as another (non-root) user. = As > > long as the .java_wrapper script sets up an environment for java each > > time it is run, no SUID program will work, because that ENV will be > > ignored. SUID does not work in either case. It does SUID with the C > > program, but that doesn't help because the ENV will die in that case. > > Either way is broken. Static Java anyone? -Dan > > Ah! Now that's IMO a clear explanation! Now just provide the static Jav= a > binary and off we go! ;-) =09How about just saying at the beginning of daemonctl.c =09setuid(geteuid()); =09I tested this with a small program and after this =09at least 'java -version' works even when the program =09is setuid. =09=09=09Ari S. =09 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 2:11:56 2002 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 23E8037B400 for ; Tue, 27 Aug 2002 02:11:55 -0700 (PDT) Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id C242843E6E for ; Tue, 27 Aug 2002 02:11:54 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jcNg-0002CK-00; Tue, 27 Aug 2002 02:11:24 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Jonathon McKitrick , freebsd-java@freebsd.org Subject: Re: Wrong size windows for Swing app (problem) Date: Tue, 27 Aug 2002 05:11:42 -0400 User-Agent: KMail/1.4.2 References: <20020827023741.GB69027@dogma.freebsd-uk.eu.org> In-Reply-To: <20020827023741.GB69027@dogma.freebsd-uk.eu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208270511.42776.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Monday 26 August 2002 10:37pm, Jonathon McKitrick wrote: > This could be something simple. Almost every Swing app I run on my > windowmanager, FluxBox, based on BlackBox, the window comes up either far > too small or almost minimized. Any idea what this could be? > > Is this a Swing problem or more likely a WM problem? It's a WM problem. I run FluxBox too, I occasionally have the same issues. You will also note that it's almost impossible to resize Java windows sometimes. I suspect that it has to do with the window border size. Here's my workaround for the latter issue -- use tabs. Size up another app window the size you want your Java app window ... drag the tab for your Java app over to that (use your 3rd mouse button) ... and it will inherit the size of the app you drag it to. Cheers, -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 3: 1:18 2002 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 29E1237B401; Tue, 27 Aug 2002 03:01:16 -0700 (PDT) Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2906A43E75; Tue, 27 Aug 2002 03:01:14 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 17jd9o-0000BN-00; Tue, 27 Aug 2002 03:01:08 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Ernst de Haan , Calvin Varney Subject: Re: Port/package guidelines (Ant) Date: Tue, 27 Aug 2002 06:01:27 -0400 User-Agent: KMail/1.4.2 Cc: freebsd-java@FreeBSD.ORG References: <200208170958.14422.absinthe@pobox.com> <200208220443.18447.absinthe@pobox.com> <200208262209.AAA07190@smtp.hccnet.nl> In-Reply-To: <200208262209.AAA07190@smtp.hccnet.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208270601.27637.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Monday 26 August 2002 06:09pm, Ernst de Haan wrote: > o An Ant-based port sets USE_ANT=YES which is interpreted by > bsd.java.mk. Agree. > o Should the port come with a build.xml file or should it set some > properties that will allow us to _generate_ a build.xml file for > it? Short-term, probably just ship it with a static build.xml. Then I'd say once we get sophisticated enough with Ant, we can build an XML out of bsd.java.mk based on variables set in the Makefile. Unless you think it's trivial enough to do the latter now. > o If the port comes with a build.xml file, then should it have some > default targets? "doc-install" target for those who want the JavaDocs built and installed. Other than that I can't think of any others (it may be too early in the day yet). One thing not mentioned about Ant (often) is that it works great with CVS. I was thinking that we could make "-devel" ports pull straight from CVS when available, instead of being locked in to a particular version. > o How do we install any JAR files, source code, Javadoc API documentation, > etc in a standard manner? Destinations for everything has been defined based on our earlier discussions _except_ for source code. I am assuming any source would be ${PREFIX}/src/${PORTNAME}/${PORTVERSION}. The real question is whether we want to have Ant run dependency checking instead of the pkg system. I think we do, my opinion is to turn over as much of the functionality to Ant as possible. The more it does the more effective it becomes. Cheers, -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 3: 1:40 2002 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 79C8D37B406; Tue, 27 Aug 2002 03:01:38 -0700 (PDT) Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB01443E88; Tue, 27 Aug 2002 03:01:22 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 17jdA1-0000Id-00; Tue, 27 Aug 2002 03:01:22 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Ernst de Haan , java@FreeBSD.org Subject: Re: Using Ant (continued) Date: Tue, 27 Aug 2002 06:01:41 -0400 User-Agent: KMail/1.4.2 References: <200208270934.49151.znerd@FreeBSD.org> In-Reply-To: <200208270934.49151.znerd@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208270601.41134.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 03:34am, Ernst de Haan wrote: > Another thought: > > When we install, for example, Xalan, then it should be made available to > Ant. So if all JARs are installed into a single directory, or if at least > symlinks to all JARs are placed there, then Ant can use whatever is > available to the system. Would be nice :-) Not a big fan of symlinks myself, but I otherwise agree. :) -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 3: 1:45 2002 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 2587A37B406 for ; Tue, 27 Aug 2002 03:01:42 -0700 (PDT) Received: from orca.seaple.icc.ne.jp (orca.seaple.icc.ne.jp [210.170.8.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 323AE43EAA for ; Tue, 27 Aug 2002 03:01:39 -0700 (PDT) (envelope-from westbay@seaple.icc.ne.jp) Received: from firstbase.westbay.fa.jp (cr1-199-037.seaple.icc.ne.jp [202.215.199.37]) by orca.seaple.icc.ne.jp (8.9.3/3.7W-000828) id SAA00690 for ; Tue, 27 Aug 2002 18:58:43 +0900 (JST) Content-Type: text/plain; charset="iso-8859-1" From: Michael Westbay To: freebsd-java@FreeBSD.ORG Subject: Re: Wrong size windows for Swing app (problem) Date: Tue, 27 Aug 2002 19:00:24 +0900 User-Agent: KMail/1.4.2 References: <20020827023741.GB69027@dogma.freebsd-uk.eu.org> In-Reply-To: <20020827023741.GB69027@dogma.freebsd-uk.eu.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200208271900.25059.westbay@seaple.icc.ne.jp> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org All, I've had this problem before. With Open Source projects I've been able t= o fix=20 these by problems by making sure that pack() is called before=20 setResizable(false) when contructing the main (or dialog) window. I sent the above advice to TogetherSoft for a number of their dialog boxe= s in=20 Together/J 5.5, and they were fairly prompt in fixing them. I believe that the problem with KDE and the native VM is that the=20 setResizable(false) actually works *correctly*, not allowing pack() to re= size=20 the window. A lot of sample code I've seen is in the order: frame.setResizable(false); frame.pack(); That doesn't make sense. pack() resizes the pane to be optimal, but the = frame=20 was already told to not allow resizing. T h e c o r r e c t o r d e r i s : frame.pack(); frame.setResizable(false); My advice is to write the maker of the software and ask what order=20 setResizable(false) and pack() are called. Most likely they're backwords= =20 without the original author even realizing the importance of order. But = it's=20 a very simple fix, and more logical coding. I feel it's a bug with the product, not the VM nor WM. --=20 Michael Westbay Work: Beacon-IT http://www.beacon-it.co.jp/ Home: http://www.seaple.icc.ne.jp/~westbay Commentary: http://www.japanesebaseball.com/forum/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 3:15:10 2002 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 DBC8E37B400 for ; Tue, 27 Aug 2002 03:15:08 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ED3F43E75 for ; Tue, 27 Aug 2002 03:15:08 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7RAFHYU045077; Tue, 27 Aug 2002 12:15:17 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7RAFGrB045076; Tue, 27 Aug 2002 12:15:16 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: absinthe@pobox.com, java@FreeBSD.org Subject: Re: Using Ant (continued) Date: Tue, 27 Aug 2002 12:15:16 +0200 User-Agent: KMail/1.4.3 References: <200208270934.49151.znerd@FreeBSD.org> <200208270601.41134.absinthe@pobox.com> In-Reply-To: <200208270601.41134.absinthe@pobox.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271215.16678.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 12:01, Dylan Carlson wrote: > On Tuesday 27 August 2002 03:34am, Ernst de Haan wrote: > > Another thought: > > > > When we install, for example, Xalan, then it should be made available > > to Ant. So if all JARs are installed into a single directory, or if at > > least symlinks to all JARs are placed there, then Ant can use whatever > > is available to the system. Would be nice :-) > > Not a big fan of symlinks myself, but I otherwise agree. :) So perhaps we should copy the file? Usually I prefer symlinking over copying of files, but I know symlinks tend to cause problems on NFS partitions and so. Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 3:17:29 2002 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 7CA1B37B400 for ; Tue, 27 Aug 2002 03:17:26 -0700 (PDT) Received: from orca.seaple.icc.ne.jp (orca.seaple.icc.ne.jp [210.170.8.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBAFE43E65 for ; Tue, 27 Aug 2002 03:17:25 -0700 (PDT) (envelope-from westbay@seaple.icc.ne.jp) Received: from firstbase.westbay.fa.jp (cr1-199-037.seaple.icc.ne.jp [202.215.199.37]) by orca.seaple.icc.ne.jp (8.9.3/3.7W-000828) id TAA02555 for ; Tue, 27 Aug 2002 19:14:30 +0900 (JST) Content-Type: text/plain; charset="iso-8859-1" From: Michael Westbay To: freebsd-java@FreeBSD.ORG Subject: Re: Port/package guidelines (Ant) Date: Tue, 27 Aug 2002 19:16:12 +0900 User-Agent: KMail/1.4.2 References: <200208170958.14422.absinthe@pobox.com> <200208262209.AAA07190@smtp.hccnet.nl> <200208270601.27637.absinthe@pobox.com> In-Reply-To: <200208270601.27637.absinthe@pobox.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200208271916.12677.westbay@seaple.icc.ne.jp> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Carlson-san wrote: > The real question is whether we want to have Ant run dependency checkin= g > instead of the pkg system. I think we do, my opinion is to turn over = as > much of the functionality to Ant as possible. The more it does the mor= e > effective it becomes. It's still in early development, but in Jakarta commons (although NOT a=20 Jakarta Commons project) is a very promising tool called JJar: http://jakarta.apache.org/jjar/ Taken from the above page: JJAR is an acronym for Jakarta JAR Archive Repository, an attempt at making a CPAN-like service/infrastructure for the Java development community.=20 This is like a mini ports dependency system in and of itself. In fact, I= =20 think that some of the FreeBSD community with a great deal of knowledge o= n=20 how the ports dependencies work would be a good fit in this project. It is a bit flakey right now, but looks like exactly what we will eventua= lly=20 want for jar dependencies. Naturally, it runs in Ant. --=20 Michael Westbay Work: Beacon-IT http://www.beacon-it.co.jp/ Home: http://www.seaple.icc.ne.jp/~westbay Commentary: http://www.japanesebaseball.com/forum/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 3:20:14 2002 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 04D9837B400 for ; Tue, 27 Aug 2002 03:20:09 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1503943E65 for ; Tue, 27 Aug 2002 03:20:08 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7RAKJYU045139; Tue, 27 Aug 2002 12:20:19 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7RAKIjg045138; Tue, 27 Aug 2002 12:20:18 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: absinthe@pobox.com, Calvin Varney Subject: Re: Port/package guidelines (Ant) Date: Tue, 27 Aug 2002 12:20:18 +0200 User-Agent: KMail/1.4.3 Cc: freebsd-java@FreeBSD.ORG References: <200208170958.14422.absinthe@pobox.com> <200208262209.AAA07190@smtp.hccnet.nl> <200208270601.27637.absinthe@pobox.com> In-Reply-To: <200208270601.27637.absinthe@pobox.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271220.18256.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Short-term, probably just ship it with a static build.xml. Then I'd say > once we get sophisticated enough with Ant, we can build an XML out of > bsd.java.mk based on variables set in the Makefile. Unless you think > it's trivial enough to do the latter now. It's trivial, *if* we knoiw exactly what we want. I intend to generate the build.xml file using XSLT and I'm an XSLT Wizard(TM) by now :) > "doc-install" target for those who want the JavaDocs built and installed. > Other than that I can't think of any others (it may be too early in the > day yet). Then we still need to pass the installation directory for the docs, don't we? Or how would we determine this in the build file? > One thing not mentioned about Ant (often) is that it works great with > CVS. I was thinking that we could make "-devel" ports pull straight from > CVS when available, instead of being locked in to a particular version. Yeah, good point! We could even have -cvs ports in addition to the existing -devel ports :-) > > o How do we install any JAR files, source code, Javadoc API > > documentation, etc in a standard manner? > > Destinations for everything has been defined based on our earlier > discussions _except_ for source code. I am assuming any source would be > ${PREFIX}/src/${PORTNAME}/${PORTVERSION}. Should the sources go below ${PREFIX}/src ? Need to check hier(7)... > The real question is whether we want to have Ant run dependency checking > instead of the pkg system. I think we do, my opinion is to turn over as > much of the functionality to Ant as possible. The more it does the more > effective it becomes. Hmm, you're probably right. But then we need to pass a lot of variables to the Ant build system. Perhaps either using -Dpropertyname=value or by generating a .properties file... Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 8:54:31 2002 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 2C3B337B400; Tue, 27 Aug 2002 08:54:28 -0700 (PDT) Received: from hyde.ssec.wisc.edu (hyde.ssec.wisc.edu [128.104.109.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4967943E72; Tue, 27 Aug 2002 08:54:27 -0700 (PDT) (envelope-from dglo@hyde.ssec.wisc.edu) Received: from hyde.ssec.wisc.edu (localhost [127.0.0.1]) by hyde.ssec.wisc.edu (8.10.2+Sun/8.10.2) with ESMTP id g7RFrtn26287; Tue, 27 Aug 2002 10:53:55 -0500 (CDT) Message-Id: <200208271553.g7RFrtn26287@hyde.ssec.wisc.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Ernst de Haan Cc: absinthe@pobox.com, Calvin Varney , freebsd-java@FreeBSD.ORG Subject: Re: Port/package guidelines (WAS: Please review: new Java Project docs) In-reply-to: Your message of "Tue, 27 Aug 2002 00:09:29 +0200." <200208262209.AAA07190@smtp.hccnet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 27 Aug 2002 10:53:55 -0500 From: Dave Glowacki Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ernst de Haan wrote: > Currently a very small number of ports seems to use Ant: > > databases/postgresql-jdbc/Makefile > java/jdom/Makefile > java/jump/Makefile Also databases/mysql-jdbc-mm and java/jakarta-oro, though the latter doesn't have a BUILD_DEPENDS line for ant. I've just submitted PR ports/42086 to add the BUILD_DEPENDS line to jakarta-oro, but since the last fix I submitted for this port (ports/39112, a trivial 1 character change to fix a directory name) has been sitting in the queue for 2.5 months, I'm not optimistic about this one getting committed before the end of the year. > Initial suggestion: > > o An Ant-based port sets USE_ANT=YES which is interpreted by > bsd.java.mk. I'm assuming that this would automatically set up the BUILD_DEPENDS and ANT variables? > o Should the port come with a build.xml file or should it set some > properties that will allow us to _generate_ a build.xml file for > it? So far I've only used build.xml files which were provided with ports. Would a generated build.xml file override the supplied build.xml file (which would seem to throw away a lot of work already done by the original author) or would it only be generated if no build.xml file existed? I suppose a third option would be to have the generated build.xml file call the original build.xml file, but in that case it would make more sense to have the port's Makefile call it and cut out the middleman. > o If the port comes with a build.xml file, then should it have some > default targets? Yes, in fact I'd say that port build.xml files should always support targets like 'all', 'clean', 'install', something like 'install-docs', etc. or there's not much point in having them, since every Makefile would have to supply the glue to mesh with the standard port targets. If there are standard targets, then bsd.java.mk could automatically supply the glue. > o How do we install any JAR files, source code, Javadoc API documentation, > etc in a standard manner? My ports tend to use the supplied build.xml file to build the jar file, then have the port's Makefile install the jar file(s) and javadoc itself, so they know exactly what's been installed in order to generate a decent packing list. It'd be nice if the ports-friendly build.xml could keep track of what was installed, so it could generate all or part of the packing list. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 9:15:24 2002 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 BDE4937B401; Tue, 27 Aug 2002 09:15:20 -0700 (PDT) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7169143E42; Tue, 27 Aug 2002 09:15:20 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jizq-0004cZ-00; Tue, 27 Aug 2002 09:15:14 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Ernst de Haan , java@FreeBSD.org Subject: Re: Using Ant (continued) Date: Tue, 27 Aug 2002 12:15:35 -0400 User-Agent: KMail/1.4.2 References: <200208270934.49151.znerd@FreeBSD.org> <200208270601.41134.absinthe@pobox.com> <200208271215.16678.znerd@FreeBSD.org> In-Reply-To: <200208271215.16678.znerd@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271215.35187.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 06:15am, Ernst de Haan wrote: > > Not a big fan of symlinks myself, but I otherwise agree. :) > > So perhaps we should copy the file? Usually I prefer symlinking over > copying of files, but I know symlinks tend to cause problems on NFS > partitions and so. The problem with symlinks is when someone removes the source file, the symlink stays. Not that this is a major problem, I just think it's messy. All JAR's built out of ports should be in ${PREFIX}/lib/java. There isn't any need to put them in different locations. Only non-JAR classfiles will be in subdirs by ${PORTNAME}. That makes it predictable, no need to symlink. Even if a dependency is installed elsewhere, we can hack the "build.xml" one-off to look for wherever that exception is... and try to persuade the maintainer to follow the java port spec. Or if we want to get pedantic about it, we can do a 'find' in ${PREFIX} to locate all the JAR and class files and format it into a properties file that Ant reads and executes on. :) -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 9:19: 6 2002 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 7829637B400 for ; Tue, 27 Aug 2002 09:19:04 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56EC643E4A for ; Tue, 27 Aug 2002 09:19:03 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7RGJDYU027747; Tue, 27 Aug 2002 18:19:13 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7RGJCn2027746; Tue, 27 Aug 2002 18:19:12 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: absinthe@pobox.com, java@FreeBSD.org Subject: Re: Using Ant (continued) Date: Tue, 27 Aug 2002 18:19:12 +0200 User-Agent: KMail/1.4.3 References: <200208270934.49151.znerd@FreeBSD.org> <200208271215.16678.znerd@FreeBSD.org> <200208271215.35187.absinthe@pobox.com> In-Reply-To: <200208271215.35187.absinthe@pobox.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271819.12356.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > All JAR's built out of ports should be in ${PREFIX}/lib/java. There Should they? I think they should at _least_ go below ${PREFIX}/share/java/ according to hier(7)... Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 9:25:31 2002 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 1EC6137B401; Tue, 27 Aug 2002 09:25:27 -0700 (PDT) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE6C743E6A; Tue, 27 Aug 2002 09:25:25 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jj9b-00065D-00; Tue, 27 Aug 2002 09:25:19 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Ernst de Haan , Calvin Varney Subject: Re: Port/package guidelines (Ant) Date: Tue, 27 Aug 2002 12:25:40 -0400 User-Agent: KMail/1.4.2 Cc: freebsd-java@FreeBSD.ORG References: <200208170958.14422.absinthe@pobox.com> <200208270601.27637.absinthe@pobox.com> <200208271220.18256.znerd@FreeBSD.org> In-Reply-To: <200208271220.18256.znerd@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271225.40211.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 06:20am, Ernst de Haan wrote: > It's trivial, *if* we knoiw exactly what we want. I intend to generate the > build.xml file using XSLT and I'm an XSLT Wizard(TM) by now :) I'd say "hooray" as long as it's as simple as setting a few vars in Makefile which get passed into the build.xml. What those vars should be, I haven't given any thought to. > > "doc-install" target for those who want the JavaDocs built and installed. > > Other than that I can't think of any others (it may be too early in the > > day yet). > > Then we still need to pass the installation directory for the docs, don't > we? Or how would we determine this in the build file? Nope. Docs should be put into ${DOCSDIR} per our previous conversation. If the user really wants them in a different location they can override that in the Makefile or simply copy/move them out after install. I see the only exception being JDK/SDK API docs, which I think should go into the directory where the JDK/SDK resides (e.g., $JAVA_HOME/doc/...) but that's probably just my opinion. > > Yeah, good point! We could even have -cvs ports in addition to the existing > -devel ports :-) We should absolutely look to doing that. If someone is using a -devel port they are specifically looking for bleeding edge code, and CVS is as good as it gets. > > Should the sources go below ${PREFIX}/src ? Need to check hier(7)... > hier(7) unfortunately doesn't address /usr/local at all, which is why it's a little clusterfscked. If I had to think about it though, ${PREFIX}/src seems logical to me. > > Hmm, you're probably right. But then we need to pass a lot of variables to > the Ant build system. Perhaps either using -Dpropertyname=value or by > generating a .properties file... > Cleaner to do a .properties file, that way if something goes wrong during the build and has to do with bad properties, we can have people copy the file into the PR. Otherwise the source of the problem might get lost in the scroll during the build. -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 9:29:59 2002 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 526BD37B400; Tue, 27 Aug 2002 09:29:57 -0700 (PDT) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C9AC43E7B; Tue, 27 Aug 2002 09:29:57 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jjDz-0000qO-00; Tue, 27 Aug 2002 09:29:51 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Ernst de Haan , java@FreeBSD.org Subject: Re: Using Ant (continued) Date: Tue, 27 Aug 2002 12:30:12 -0400 User-Agent: KMail/1.4.2 References: <200208270934.49151.znerd@FreeBSD.org> <200208271215.35187.absinthe@pobox.com> <200208271819.12356.znerd@FreeBSD.org> In-Reply-To: <200208271819.12356.znerd@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271230.12369.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 12:19pm, Ernst de Haan wrote: > > Should they? I think they should at _least_ go below ${PREFIX}/share/java/ > according to hier(7)... > Calvin and I discussed this in the previous thread about the ports spec. All the others (Perl, Python, PHP) use ${PREFIX}/lib/%lang%/ for their third-party libraries... and we also agreed that the Java libs should follow this tradition as well, since it seems to be the accepted practice among non-C languages. So for us that would be ${PREFIX}/lib/java/ or /usr/local/lib/java for most people. Sound reasonable? -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 9:44:59 2002 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 6F0E837B400 for ; Tue, 27 Aug 2002 09:44:57 -0700 (PDT) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D7BB43E65 for ; Tue, 27 Aug 2002 09:44:57 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jjSW-0003vm-00; Tue, 27 Aug 2002 09:44:52 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Michael Westbay , freebsd-java@FreeBSD.ORG Subject: Re: Port/package guidelines (Ant) Date: Tue, 27 Aug 2002 12:45:12 -0400 User-Agent: KMail/1.4.2 References: <200208170958.14422.absinthe@pobox.com> <200208270601.27637.absinthe@pobox.com> <200208271916.12677.westbay@seaple.icc.ne.jp> In-Reply-To: <200208271916.12677.westbay@seaple.icc.ne.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271245.12872.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 06:16am, Michael Westbay wrote: > > JJAR is an acronym for Jakarta JAR Archive Repository, an attempt > at making a CPAN-like service/infrastructure for the Java development > community. > > This is like a mini ports dependency system in and of itself. In fact, I > think that some of the FreeBSD community with a great deal of knowledge on > how the ports dependencies work would be a good fit in this project. > > It is a bit flakey right now, but looks like exactly what we will > eventually want for jar dependencies. This does look cool. I was thinking, prior to your post, how we might index the available JARs and classes on a given system, which this doesn't do -- but this makes the dependency-resolving aspect of a build a no-brainer. Also, it's using Ant's fetch ("Get") mechanism instead of the ports way of downloading ... offhand I don't know if it does MD5's or not... The only significant problem, however, is CLASSPATH. Most people don't have their root CLASSPATH set correctly, nor should we ever expect they would. And if what I'm reading is correct, if the CLASSPATH is not set right, it might not see what JARs are on the system, and try to resolve a dependency for something which already has been installed. We could set CLASSPATH by way of the bsd.java.mk-if all ports were installing things in the proper locations- by doing a 'find' for JARs in ${PREFIX}/java/lib. Using my best Yoda impression: Good idea, this is. -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 9:57: 7 2002 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 2AC1A37B400; Tue, 27 Aug 2002 09:57:00 -0700 (PDT) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC61E43E4A; Tue, 27 Aug 2002 09:56:59 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jjeD-0007BB-00; Tue, 27 Aug 2002 09:56:57 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Dave Glowacki , Ernst de Haan Subject: Re: Port/package guidelines (WAS: Please review: new Java Project docs) Date: Tue, 27 Aug 2002 12:57:14 -0400 User-Agent: KMail/1.4.2 Cc: Calvin Varney , freebsd-java@FreeBSD.ORG References: <200208271553.g7RFrtn26287@hyde.ssec.wisc.edu> In-Reply-To: <200208271553.g7RFrtn26287@hyde.ssec.wisc.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271257.14970.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 11:53am, Dave Glowacki wrote: > > I've just submitted PR ports/42086 to add the BUILD_DEPENDS line > to jakarta-oro, but since the last fix I submitted for this port > (ports/39112, a trivial 1 character change to fix a directory name) > has been sitting in the queue for 2.5 months, I'm not optimistic > about this one getting committed before the end of the year. > I hear ya. Seems like the ports tree is getting very backed up these days. > > Initial suggestion: > > > > o An Ant-based port sets USE_ANT=YES which is interpreted by > > bsd.java.mk. > > I'm assuming that this would automatically set up the > BUILD_DEPENDS and ANT variables? Dependencies would resolve in the build.xml (whether it's generated or static, we should probably have the option for doing both). The Makefile would resolve Ant if it's not already installed. > > So far I've only used build.xml files which were provided with ports. > Would a generated build.xml file override the supplied build.xml file > (which would seem to throw away a lot of work already done by the > original author) or would it only be generated if no build.xml file > existed? I suppose a third option would be to have the generated > build.xml file call the original build.xml file, but in that case > it would make more sense to have the port's Makefile call it and > cut out the middleman. > I would assume that a build.xml would only be generated if one wasn't there. By "original build.xml" I assume you mean one that is part of the port's downloaded, unpacked archive. I don't think we'd ever use those, unless it was strictly for compiling... otherwise it'll be missing everything else (the usual targets and correct destinations). > > It'd be nice if the ports-friendly build.xml could keep track of > what was installed, so it could generate all or part of the packing > list. This is a necessity for the 'deinstall' target. -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 10: 4:22 2002 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 2606637B400; Tue, 27 Aug 2002 10:04:17 -0700 (PDT) Received: from hyde.ssec.wisc.edu (hyde.ssec.wisc.edu [128.104.109.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E2E943E6A; Tue, 27 Aug 2002 10:04:16 -0700 (PDT) (envelope-from dglo@hyde.ssec.wisc.edu) Received: from hyde.ssec.wisc.edu (localhost [127.0.0.1]) by hyde.ssec.wisc.edu (8.10.2+Sun/8.10.2) with ESMTP id g7RH48n27054; Tue, 27 Aug 2002 12:04:08 -0500 (CDT) Message-Id: <200208271704.g7RH48n27054@hyde.ssec.wisc.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: absinthe@pobox.com Cc: Ernst de Haan , java@FreeBSD.ORG Subject: Re: Using Ant (continued) In-reply-to: Your message of "Tue, 27 Aug 2002 12:30:12 EDT." <200208271230.12369.absinthe@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 27 Aug 2002 12:04:07 -0500 From: Dave Glowacki Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dylan Carlson wrote: > On Tuesday 27 August 2002 12:19pm, Ernst de Haan wrote: > > > > > Should they? I think they should at _least_ go below ${PREFIX}/share/java/ > > according to hier(7)... > > > > Calvin and I discussed this in the previous thread about the ports spec. All > the others (Perl, Python, PHP) use ${PREFIX}/lib/%lang%/ for their > third-party libraries... and we also agreed that the Java libs should follow > this tradition as well, since it seems to be the accepted practice among > non-C languages. > > So for us that would be ${PREFIX}/lib/java/ or /usr/local/lib/java for most > people. > > Sound reasonable? Nope. Sharable libraries should go under share/, and since Jar files are almost always sharable, they should follow this convention. If anything, Perl/Python/PHP should install their library files under share/, unless there's some reason they're not sharable. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 12: 0:13 2002 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 EFD7237B400; Tue, 27 Aug 2002 12:00:07 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 249DB43E91; Tue, 27 Aug 2002 12:00:06 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id LAA44098; Tue, 27 Aug 2002 11:56:39 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g7RItbj39997; Tue, 27 Aug 2002 11:55:37 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200208271855.g7RItbj39997@arch20m.dellroad.org> Subject: Re: Using Ant (continued) In-Reply-To: <200208271704.g7RH48n27054@hyde.ssec.wisc.edu> "from Dave Glowacki at Aug 27, 2002 12:04:07 pm" To: Dave Glowacki Date: Tue, 27 Aug 2002 11:55:37 -0700 (PDT) Cc: absinthe@pobox.com, Ernst de Haan , java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dave Glowacki writes: > Nope. Sharable libraries should go under share/, and since Jar > files are almost always sharable, they should follow this convention. Just to confuse things... What about a JAR file that includes, or comes with, a native library? For example, OSGi (www.osgi.org) specifies how multiple native libraries for different architectures can be included in a JAR file (or at least it used to). -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 12:21:12 2002 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 8B24B37B400; Tue, 27 Aug 2002 12:21:10 -0700 (PDT) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44D1343E65; Tue, 27 Aug 2002 12:21:10 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jlth-0002mS-00; Tue, 27 Aug 2002 12:21:05 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Dave Glowacki Subject: Re: Using Ant (continued) Date: Tue, 27 Aug 2002 15:21:26 -0400 User-Agent: KMail/1.4.2 Cc: Ernst de Haan , java@FreeBSD.ORG References: <200208271704.g7RH48n27054@hyde.ssec.wisc.edu> In-Reply-To: <200208271704.g7RH48n27054@hyde.ssec.wisc.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271521.26715.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 01:04pm, Dave Glowacki wrote: > Nope. Sharable libraries should go under share/, and since Jar > files are almost always sharable, they should follow this convention. > I guess I don't understand this logic. I think you're taking the word "share" beyond it's original scope of what people meant by "architecture-independent". JARs and classes are _libraries_, hence go under /lib. The same with Perl modules and Python. True-they may be architecture-independent, but /share is not meant for application libraries, it's used for man pages, info pages, config files, templates, dictionaries, timezone stuff, et al. Libraries belong in /lib. Perl and Python and PHP libraries, which are also architecture-neutral, are also done under lib, in their respective directories; I see no reason why we should change this behavior to confuse the situation with Java. -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 12:22:20 2002 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 516BE37B400; Tue, 27 Aug 2002 12:22:18 -0700 (PDT) Received: from hyde.ssec.wisc.edu (hyde.ssec.wisc.edu [128.104.109.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E9BF43E4A; Tue, 27 Aug 2002 12:22:17 -0700 (PDT) (envelope-from dglo@hyde.ssec.wisc.edu) Received: from hyde.ssec.wisc.edu (localhost [127.0.0.1]) by hyde.ssec.wisc.edu (8.10.2+Sun/8.10.2) with ESMTP id g7RJM3n28737; Tue, 27 Aug 2002 14:22:03 -0500 (CDT) Message-Id: <200208271922.g7RJM3n28737@hyde.ssec.wisc.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Archie Cobbs Cc: absinthe@pobox.com, Ernst de Haan , java@FreeBSD.ORG Subject: Re: Using Ant (continued) In-reply-to: Your message of "Tue, 27 Aug 2002 11:55:37 PDT." <200208271855.g7RItbj39997@arch20m.dellroad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 27 Aug 2002 14:22:03 -0500 From: Dave Glowacki Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Archie Cobbs wrote: > Dave Glowacki writes: > > Nope. Sharable libraries should go under share/, and since Jar > > files are almost always sharable, they should follow this convention. > > Just to confuse things... > > What about a JAR file that includes, or comes with, a native library? > > For example, OSGi (www.osgi.org) specifies how multiple native libraries > for different architectures can be included in a JAR file (or at least > it used to). That's why I said "almost always" :-) Architecture-specific jar files should, of course, be installed somewhere like lib/java, but they'll be a tiny minority so we shouldn't warp everything else to accommodate them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 12:49:58 2002 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 58AE337B400 for ; Tue, 27 Aug 2002 12:49:56 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EF5343E4A for ; Tue, 27 Aug 2002 12:46:00 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id MAA44375; Tue, 27 Aug 2002 12:32:38 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g7RJVZ640166; Tue, 27 Aug 2002 12:31:35 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200208271931.g7RJVZ640166@arch20m.dellroad.org> Subject: Re: Using Ant (continued) In-Reply-To: <200208271922.g7RJM3n28737@hyde.ssec.wisc.edu> "from Dave Glowacki at Aug 27, 2002 02:22:03 pm" To: Dave Glowacki Date: Tue, 27 Aug 2002 12:31:35 -0700 (PDT) Cc: Archie Cobbs , absinthe@pobox.com, Ernst de Haan , java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dave Glowacki writes: > > > Nope. Sharable libraries should go under share/, and since Jar > > > files are almost always sharable, they should follow this convention. > > > > What about a JAR file that includes, or comes with, a native library? > > That's why I said "almost always" :-) > > Architecture-specific jar files should, of course, be installed > somewhere like lib/java, but they'll be a tiny minority so we > shouldn't warp everything else to accommodate them. And, if a JAR file includes multiple native libraries for different architectures, then it *is* architecture neutral.. :-) -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 13: 3:10 2002 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 D4BEF37B40A; Tue, 27 Aug 2002 13:03:04 -0700 (PDT) Received: from hyde.ssec.wisc.edu (hyde.ssec.wisc.edu [128.104.109.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7EB543F37; Tue, 27 Aug 2002 13:01:51 -0700 (PDT) (envelope-from dglo@hyde.ssec.wisc.edu) Received: from hyde.ssec.wisc.edu (localhost [127.0.0.1]) by hyde.ssec.wisc.edu (8.10.2+Sun/8.10.2) with ESMTP id g7RJsfn28969; Tue, 27 Aug 2002 14:54:42 -0500 (CDT) Message-Id: <200208271954.g7RJsfn28969@hyde.ssec.wisc.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: absinthe@pobox.com Cc: Ernst de Haan , java@FreeBSD.ORG Subject: Re: Using Ant (continued) In-reply-to: Your message of "Tue, 27 Aug 2002 15:21:26 EDT." <200208271521.26715.absinthe@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 27 Aug 2002 14:54:41 -0500 From: Dave Glowacki Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dylan Carlson wrote: > On Tuesday 27 August 2002 01:04pm, Dave Glowacki wrote: > > > Nope. Sharable libraries should go under share/, and since Jar > > files are almost always sharable, they should follow this convention. > > > > I guess I don't understand this logic. > > I think you're taking the word "share" beyond it's original scope of what > people meant by "architecture-independent". > > JARs and classes are _libraries_, hence go under /lib. The same with Perl > modules and Python. True-they may be architecture-independent, but /share > is not meant for application libraries, it's used for man pages, info pages, > config files, templates, dictionaries, timezone stuff, et al. share/ has always been meant for *anything* which can be shared between multiple machines. It hasn't included much code only because there hasn't been much sharable code until recently. About the only sharable code in the old days was in the form of shell scripts and troff or make macros; not surprisingly, the "libraries" for the latter two can be found in /usr/share/tmac/ and /usr/share/mk/ > Libraries belong in /lib. Perl and Python and PHP libraries, which are also > architecture-neutral, are also done under lib, in their respective > directories; As another counterexample, bison and the GNU auto* tools (libtool, automake, autoconf, etc) install their libraries under ${PREFIX}/share. > I see no reason why we should change this behavior to confuse > the situation with Java. Most of the current Java ports install their jar files in ${PREFIX}/share/java/classes, so keeping them there isn't a change ... moving them elsewhere would be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 13:16: 3 2002 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 97EBA37B400; Tue, 27 Aug 2002 13:16:01 -0700 (PDT) Received: from mgr1.xmission.com (mgr1.xmission.com [198.60.22.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE72243E3B; Tue, 27 Aug 2002 13:15:57 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr1.xmission.com with spam-scanned (Exim 3.35 #1) id 17jmkn-0008KF-00; Tue, 27 Aug 2002 14:15:57 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr1.xmission.com with esmtp (Exim 3.35 #1) id 17jmkm-0008Jv-00; Tue, 27 Aug 2002 14:15:57 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g7RKFpD57208; Wed, 28 Aug 2002 05:45:51 +0930 (CST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Wed, 28 Aug 2002 05:45:51 +0930 From: Greg Lewis To: Alexey Zelkin Cc: Ernst de Haan , java@FreeBSD.ORG Subject: Re: JDK 1.4.1 rc1 Message-ID: <20020828054551.A57160@misty.eyesbeyond.com> References: <200208271006.35360.znerd@FreeBSD.org> <20020827114831.A99065@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020827114831.A99065@phantom.cris.net>; from phantom@FreeBSD.ORG on Tue, Aug 27, 2002 at 11:48:31AM +0300 X-Spam-Status: No, hits=-4.1 required=8.0 tests=IN_REP_TO,X_AUTH_WARNING version=2.31 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Aug 27, 2002 at 11:48:31AM +0300, Alexey Zelkin wrote: > I will give a chance for 1.4.1rc1 as soon as my development hardware > changes settled up. Actually instability of linux's jdk 1.4.0 under emulation > forced me to start native 1.4 port, so maybe I'll have no more reason to > continue :-) I hope not :-). Actually, I doubt 1.4.1 will fix the HotSpot instability as imo that lies in the Linuxulator. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 13:27:34 2002 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 ED42C37B400 for ; Tue, 27 Aug 2002 13:27:32 -0700 (PDT) Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01D6443E65 for ; Tue, 27 Aug 2002 13:27:32 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by serenity.mcc.ac.uk with esmtp (Exim 2.05 #6) id 17jmvy-000Bsl-00 for freebsd-java@freebsd.org; Tue, 27 Aug 2002 21:27:30 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) by dogma.freebsd-uk.eu.org (8.12.3/8.11.1) with ESMTP id g7RKRT3H075145 for ; Tue, 27 Aug 2002 21:27:29 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.3/8.12.3/Submit) id g7RKRTAo075144 for freebsd-java@freebsd.org; Tue, 27 Aug 2002 21:27:29 +0100 (BST) Date: Tue, 27 Aug 2002 21:27:29 +0100 From: Jonathon McKitrick To: freebsd-java@freebsd.org Subject: Any advanced applet examples? Message-ID: <20020827202729.GB75109@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I recently discovered the www.fifaworldcup.com website, with its amazing realtime Java applet for broadcasting updates and stats for the matches. Does anyone know of any examples (preferably with source) of other applets with this kind of sophistication and functionality? It uses networking, custom graphics, sophisiticated UI, and so on. And on top of that, it's pretty responsive as well. jm -- Java on a laptop: the JIT hits the fan. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 13:46:10 2002 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 3599C37B400; Tue, 27 Aug 2002 13:46:09 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 973AE43E6A; Tue, 27 Aug 2002 13:46:08 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id NAA44762; Tue, 27 Aug 2002 13:38:53 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g7RKbog40442; Tue, 27 Aug 2002 13:37:50 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200208272037.g7RKbog40442@arch20m.dellroad.org> Subject: Re: Jikes problems In-Reply-To: <200208270903.47539.znerd@FreeBSD.org> "from Ernst de Haan at Aug 27, 2002 09:03:47 am" To: Ernst de Haan Date: Tue, 27 Aug 2002 13:37:50 -0700 (PDT) Cc: meshko@mail.cs.brandeis.edu, freebsd-java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ernst de Haan writes: > > One suggestion though: if 1.16 is that bad, maybe it's better to rename > > 1.16 to jikes-dev and keep jikes at 1.15? > > +1 (but use 'jikes-devel' for consistency) FYI, I've added a new port 'java/jikes-devel' which builds version 1.16 and moved the original 'jikes' port back to version 1.15. Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 14: 9:45 2002 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 5DFD037B400; Tue, 27 Aug 2002 14:09:42 -0700 (PDT) Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1415143E6A; Tue, 27 Aug 2002 14:09:42 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jnag-0006av-00; Tue, 27 Aug 2002 14:09:34 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Dave Glowacki Subject: Re: Using Ant (continued) Date: Tue, 27 Aug 2002 17:09:56 -0400 User-Agent: KMail/1.4.2 Cc: Ernst de Haan , java@FreeBSD.ORG References: <200208271954.g7RJsfn28969@hyde.ssec.wisc.edu> In-Reply-To: <200208271954.g7RJsfn28969@hyde.ssec.wisc.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208271709.56356.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 27 August 2002 03:54pm, Dave Glowacki wrote: > About the only sharable code in the old days was in the form of > shell scripts and troff or make macros; not surprisingly, the > "libraries" for the latter two can be found in /usr/share/tmac/ > and /usr/share/mk/ > As another counterexample, bison and the GNU auto* tools > (libtool, automake, autoconf, etc) install their libraries > under ${PREFIX}/share. > ... those are macros, not binaries, not libraries. There's a difference. Those are plaintext files describing how bison, automake, autoconf, (et al.) should run after they've been executed, they are not runtimes written in the application binary's native language. Would you call your Makefile a library? No, that's because it's not a library. m4 files are not libraries. They are basically lists. Though in some cases they may be required to make the application run. That's a perfect case use of "share". Java classes are not, IMO. > > Most of the current Java ports install their jar files in > ${PREFIX}/share/java/classes, so keeping them there isn't > a change ... moving them elsewhere would be. True; that does not however mean that it should be this way. Classfiles and JARs are Java's equivalents of libraries; it's counter-intuitive to go looking for them in /share, when the rest of the world- that is, the world's significant languages put their libraries in /lib. Python, Ruby, Tcl, Tk, PHP, and Perl ... they all use /lib regardless of the multiplatform nature of their code. It's where people go looking for libraries. lib=libraries. Using /lib/lang is the generally accepted practice for any language. Consistency with the heirarchy, as it is used elsewhere, is more important than arguing over semantics of "share", in my opinion. Or, for that matter, protecting the location where some ports are currently installed. -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 14:28:17 2002 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 6C75637B400; Tue, 27 Aug 2002 14:28:15 -0700 (PDT) Received: from hyde.ssec.wisc.edu (hyde.ssec.wisc.edu [128.104.109.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D31043E65; Tue, 27 Aug 2002 14:28:13 -0700 (PDT) (envelope-from dglo@hyde.ssec.wisc.edu) Received: from hyde.ssec.wisc.edu (localhost [127.0.0.1]) by hyde.ssec.wisc.edu (8.10.2+Sun/8.10.2) with ESMTP id g7RLS5n00453; Tue, 27 Aug 2002 16:28:05 -0500 (CDT) Message-Id: <200208272128.g7RLS5n00453@hyde.ssec.wisc.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: absinthe@pobox.com Cc: Ernst de Haan , java@FreeBSD.ORG Subject: Re: Using Ant (continued) In-reply-to: Your message of "Tue, 27 Aug 2002 17:09:56 EDT." <200208271709.56356.absinthe@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 27 Aug 2002 16:28:05 -0500 From: Dave Glowacki Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dylan Carlson wrote: > On Tuesday 27 August 2002 03:54pm, Dave Glowacki wrote: > > About the only sharable code in the old days was in the form of > > shell scripts and troff or make macros; not surprisingly, the > > "libraries" for the latter two can be found in /usr/share/tmac/ > > and /usr/share/mk/ > > As another counterexample, bison and the GNU auto* tools > > (libtool, automake, autoconf, etc) install their libraries > > under ${PREFIX}/share. > > > > ... those are macros, not binaries, not libraries. You're now getting into semantics. > Consistency with the heirarchy, as it is used elsewhere, is more important > than arguing over semantics of "share", in my opinion. Or, for that matter, > protecting the location where some ports are currently installed. And you're also implying that I'm only in this discussion to "protect the location" currently being used. I think I've given some good reasons why jar files should stay somewhere under the share/ hierarchy, and I don't think anything more can be accomplished by the two of us arguing, so why don't we let the rest of the mailing list weigh in with their opinions? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 15:56:52 2002 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 7CD2C37B400; Tue, 27 Aug 2002 15:56:50 -0700 (PDT) Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D0FB43E42; Tue, 27 Aug 2002 15:56:50 -0700 (PDT) (envelope-from jj@alicia.nttmcl.com) Received: (from jj@localhost) by alicia.nttmcl.com (8.10.1/8.10.1) id g7RMuex21350; Tue, 27 Aug 2002 15:56:40 -0700 (PDT) Date: Tue, 27 Aug 2002 15:56:40 -0700 From: Shannon -jj Behrens To: Dave Glowacki , absinthe@pobox.com, Ernst de Haan , java@FreeBSD.ORG Subject: Re: Using Ant (continued) Message-ID: <20020827155640.A12964@alicia.nttmcl.com> References: <200208271709.56356.absinthe@pobox.com> <200208272128.g7RLS5n00453@hyde.ssec.wisc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200208272128.g7RLS5n00453@hyde.ssec.wisc.edu>; from dglo@hyde.ssec.wisc.edu on Tue, Aug 27, 2002 at 04:28:05PM -0500 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > I think I've given some good reasons why jar files should stay > somewhere under the share/ hierarchy, and I don't think anything > more can be accomplished by the two of us arguing, so why don't > we let the rest of the mailing list weigh in with their opinions? Considering all the other languages, it seems to me that putting the jar files anywhere other than lib/java would violate POLA. Best Regards, -jj -- As we enjoy great Advantages from the Inventions of others we should be glad of an Opportunity to serve others by any Invention of ours, and this we should do freely and generously. -- Benjamin Franklin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 17:11:47 2002 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 8A32837B407; Tue, 27 Aug 2002 17:11:44 -0700 (PDT) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 437EE43E84; Tue, 27 Aug 2002 17:11:36 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr2.xmission.com with spam-scanned (Exim 3.35 #1) id 17jqQp-00071K-00; Tue, 27 Aug 2002 18:11:35 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 17jqQo-000711-00; Tue, 27 Aug 2002 18:11:34 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g7S0BS658032; Wed, 28 Aug 2002 09:41:28 +0930 (CST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Wed, 28 Aug 2002 09:41:28 +0930 From: Greg Lewis To: Ernst de Haan Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG Subject: Re: Jboss3ctl update (I think I know the problem) Message-ID: <20020828094127.A58001@misty.eyesbeyond.com> References: <20020826231204.23827.qmail@web13406.mail.yahoo.com> <200208270901.14099.znerd@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200208270901.14099.znerd@FreeBSD.org>; from znerd@FreeBSD.ORG on Tue, Aug 27, 2002 at 09:01:14AM +0200 X-Spam-Status: No, hits=-3.0 required=8.0 tests=IN_REP_TO,X_AUTH_WARNING,DOUBLE_CAPSWORD version=2.31 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Aug 27, 2002 at 09:01:14AM +0200, Ernst de Haan wrote: > > He's right, you can't SUID a script. But this is precisely the problem > > because the .java_wrapper script itself can never set the environment > > variables. So, even if you could SUID the script, it would still have > > the same problem that the "real user" is not the "effective user." The > > only real solution is to make java not require the .java_wrapper script, > > because only then can you run the binary as another (non-root) user. As > > long as the .java_wrapper script sets up an environment for java each > > time it is run, no SUID program will work, because that ENV will be > > ignored. SUID does not work in either case. It does SUID with the C > > program, but that doesn't help because the ENV will die in that case. > > Either way is broken. Static Java anyone? -Dan > > Ah! Now that's IMO a clear explanation! Now just provide the static Java > binary and off we go! ;-) Since it has only one threading subsystem, 1.4 uses a natively executable java rather than a shell script wrapper. Its not static in the usual sense of the word, but I think Dan was using that term in respect to a native executable rather than an interpreted script. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 17:30: 8 2002 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 ED23637B405; Tue, 27 Aug 2002 17:30:03 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DEE343E42; Tue, 27 Aug 2002 17:30:03 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id RAA45970; Tue, 27 Aug 2002 17:22:06 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g7S0L3d41202; Tue, 27 Aug 2002 17:21:03 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200208280021.g7S0L3d41202@arch20m.dellroad.org> Subject: Re: Using Ant (continued) In-Reply-To: <20020827155640.A12964@alicia.nttmcl.com> "from Shannon -jj Behrens at Aug 27, 2002 03:56:40 pm" To: Shannon -jj Behrens Date: Tue, 27 Aug 2002 17:21:03 -0700 (PDT) Cc: Dave Glowacki , absinthe@pobox.com, Ernst de Haan , java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Shannon -jj Behrens writes: > > I think I've given some good reasons why jar files should stay > > somewhere under the share/ hierarchy, and I don't think anything > > more can be accomplished by the two of us arguing, so why don't > > we let the rest of the mailing list weigh in with their opinions? > > Considering all the other languages, it seems to me that putting the jar files > anywhere other than lib/java would violate POLA. As somebody pointed out, 'share' was originally invented for the purpose of containing files that can be shared across multiple machines with different architectures. If you have a big network with a heterogeneous mix of hardware and a huge NFS server, you want to separate out the 'share'-able stuff from the non-shareable stuff and set up your NFS mounted partitions based on that. Now that's just a historical perspective.. what we do today is up to our choosing. Eg., if we want to preserve the historical meaning then 'share' would be the place... but if we want to put stuff where people are going to most likely expect and/or want it (POLA), then *maybe* 'lib' is the right place.. this is the arguing point. I don't have a strong opinion, and to me there is no 'clear answer', unless you're asking the question: "How did 'share' originate"? -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 18:39:24 2002 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 CB62F37B400 for ; Tue, 27 Aug 2002 18:39:22 -0700 (PDT) Received: from web13402.mail.yahoo.com (web13402.mail.yahoo.com [216.136.175.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 5A83343E6E for ; Tue, 27 Aug 2002 18:39:22 -0700 (PDT) (envelope-from dan_256@yahoo.com) Message-ID: <20020828013922.50148.qmail@web13402.mail.yahoo.com> Received: from [12.254.130.74] by web13402.mail.yahoo.com via HTTP; Tue, 27 Aug 2002 18:39:22 PDT Date: Tue, 27 Aug 2002 18:39:22 -0700 (PDT) From: Dan Hulme Reply-To: dan_256@yahoo.com Subject: Re: Jboss3ctl update (I think I know the problem) To: Greg Lewis , Ernst de Haan Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG In-Reply-To: <20020828094127.A58001@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Basically, that's it. The .java_wrapper script is not exactly the problem, but the ENV. As I stated in my original post (http://www.geocrawler.com/archives/3/162/2002/6/0/9029840/), the problem is two-fold. In my understanding, the entire ENV will be ignored any time you are SUIDing. Even if I am wrong about that, the LD_LIBRARY_PATH, which the .java_wrapper usually sets to link in some libs for java will be ignored according to "man ldconfig" when SUIDing. Now, I haven't played with 1.4, but my suspicion is that it will work no better. If, however, it doesn't need to set up extra ENV variables, it might just work. When I say "static," I'm referring to the ability to run the program w/o linking in the extra shared libs like ld-elf.so.1. Unless these are in the "safe paths," or are statically linked in, it seems that java will depend on the LD_LIBRARY_PATH, which is guaranteed not to work during SUID. Someone can let me know if this works, or I'll try it out later. By the way, an alternate way of accomplishing this (that I used) w/o SUID is a little strange. Basically you allow an SSH which only can run one command (e.g., command='jboss3ctl restart' in the authorized_keys) for a user 'jboss' or something. Then all you need to do is "ssh jboss@localhost" and it will run the command as that user (not SUID). My reasons for doing this were actually for my specific purposes, but it made it very easy to restart the daemon remotely. It can be used locally, or remotely if you like. It's not a very clean solution for all cases, however. > Since it has only one threading subsystem, 1.4 uses a natively executable > java rather than a shell script wrapper. Its not static in the usual sense > of the word, but I think Dan was using that term in respect to a native > executable rather than an interpreted script. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 20:30:49 2002 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 0B62E37B400 for ; Tue, 27 Aug 2002 20:30:48 -0700 (PDT) Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CD5B43E9C for ; Tue, 27 Aug 2002 20:30:47 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by serenity.mcc.ac.uk with esmtp (Exim 2.05 #6) id 17jtXZ-000J6k-00; Wed, 28 Aug 2002 04:30:45 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) by dogma.freebsd-uk.eu.org (8.12.3/8.11.1) with ESMTP id g7S3Uj3H077771; Wed, 28 Aug 2002 04:30:45 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.3/8.12.3/Submit) id g7S3UisX077770; Wed, 28 Aug 2002 04:30:44 +0100 (BST) Date: Wed, 28 Aug 2002 04:30:44 +0100 From: Jonathon McKitrick To: Dylan Carlson Cc: freebsd-java@freebsd.org Subject: Re: Wrong size windows for Swing app (problem) Message-ID: <20020828033044.GD77338@dogma.freebsd-uk.eu.org> References: <20020827023741.GB69027@dogma.freebsd-uk.eu.org> <200208270511.42776.absinthe@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208270511.42776.absinthe@pobox.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Aug 27, 2002 at 05:11:42AM -0400, Dylan Carlson wrote: | On Monday 26 August 2002 10:37pm, Jonathon McKitrick wrote: | > This could be something simple. Almost every Swing app I run on my | > windowmanager, FluxBox, based on BlackBox, the window comes up either far | > too small or almost minimized. Any idea what this could be? | > | > Is this a Swing problem or more likely a WM problem? | | It's a WM problem. I run FluxBox too, I occasionally have the same issues. Thanks guys. I'm not about to change my WM anytime soon, so I'll have to try the workaround for now. jm -- My other computer is your Windows box. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 23: 4: 6 2002 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 F060837B400; Tue, 27 Aug 2002 23:04:03 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id E88B943E4A; Tue, 27 Aug 2002 23:04:01 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g7S63beA017963; Wed, 28 Aug 2002 09:03:37 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari Organization: Syncron Tech Oy To: dan_256@yahoo.com, Greg Lewis , Ernst de Haan Subject: Re: Jboss3ctl update (I think I know the problem) Date: Wed, 28 Aug 2002 09:04:31 +0300 User-Agent: KMail/1.4.2 Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG References: <20020828013922.50148.qmail@web13402.mail.yahoo.com> In-Reply-To: <20020828013922.50148.qmail@web13402.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200208280904.31561.ari.suutari@syncrontech.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, On Wednesday 28 August 2002 04:39, Dan Hulme wrote: > Basically, that's it. The .java_wrapper script is not exactly the prob= lem, > but the ENV. As I stated in my original post > (http://www.geocrawler.com/archives/3/162/2002/6/0/9029840/), the probl= em > is two-fold. In my understanding, the entire ENV will be ignored any t= ime > you are SUIDing. Even if I am wrong about that, the LD_LIBRARY_PATH, w= hich > the .java_wrapper usually sets to link in some libs for java will be > ignored according to "man ldconfig" when SUIDing. =09Only LD_LIBRARY_PATH, LD_DEBUG and LD_PRELOAD is ignored.=20 =09From rtld.c: trust =3D geteuid() =3D=3D getuid() && getegid() =3D=3D getgid(); ld_bind_now =3D getenv("LD_BIND_NOW"); if (trust) { ld_debug =3D getenv("LD_DEBUG"); ld_library_path =3D getenv("LD_LIBRARY_PATH"); ld_preload =3D getenv("LD_PRELOAD"); } =09 =09So, really just calling setuid(geteuid()) makes things work. =09No special kludgery is necessary. =09=09Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 27 23:25:15 2002 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 A800437B400 for ; Tue, 27 Aug 2002 23:25:13 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id D41B643E3B for ; Tue, 27 Aug 2002 23:25:12 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7S6P2YU087214; Wed, 28 Aug 2002 08:25:02 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7S6P0n0087213; Wed, 28 Aug 2002 08:25:00 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Ari Suutari , dan_256@yahoo.com, Greg Lewis Subject: Re: Jboss3ctl update (I think I know the problem) Date: Wed, 28 Aug 2002 08:25:00 +0200 User-Agent: KMail/1.4.3 Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG References: <20020828013922.50148.qmail@web13402.mail.yahoo.com> <200208280904.31561.ari.suutari@syncrontech.com> In-Reply-To: <200208280904.31561.ari.suutari@syncrontech.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208280825.00833.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > So, really just calling setuid(geteuid()) makes things work. > No special kludgery is necessary. Could you mail me a patch? Then I will integrate it in daemonctl.c ASAP. I'm close to a *very* tight deadline (Wednesday next week), so my time is limited, for which I apologize :-( Wish I could spend more time on these discussions and improvements... Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 2:12:19 2002 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 6839F37B401 for ; Wed, 28 Aug 2002 02:11:59 -0700 (PDT) Received: from web13403.mail.yahoo.com (web13403.mail.yahoo.com [216.136.175.61]) by mx1.FreeBSD.org (Postfix) with SMTP id 85A6843E65 for ; Wed, 28 Aug 2002 02:11:58 -0700 (PDT) (envelope-from dan_256@yahoo.com) Message-ID: <20020828091158.46733.qmail@web13403.mail.yahoo.com> Received: from [12.254.130.74] by web13403.mail.yahoo.com via HTTP; Wed, 28 Aug 2002 02:11:58 PDT Date: Wed, 28 Aug 2002 02:11:58 -0700 (PDT) From: Dan Hulme Reply-To: dan_256@yahoo.com Subject: Re: Jboss3ctl update (I think I know the problem) To: Ari Suutari , Greg Lewis , Ernst de Haan Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG In-Reply-To: <200208280904.31561.ari.suutari@syncrontech.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1926540025-1030525918=:46715" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --0-1926540025-1030525918=:46715 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Ari is right. This will work. Ernst, the patch is really simple. Just put the "setuid(geteuid())" in main before the strcmp. One other little bug in the daemonctl.c (from tomcat) is on line 325 where it has "%%PORTREVISION%%" rather than "%%PORTVERSION%%" which will keep it from being replaced, and will print out something funny when you get the error "[program] is already running." I included these changes in a daemonctl.c taken from $portsdir/www/jakarta-tomcat4/files/. Ari, tell me if I got it wrong. -Dan --- Ari Suutari wrote: > > So, really just calling setuid(geteuid()) makes things work. > No special kludgery is necessary. > > Ari S. > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com --0-1926540025-1030525918=:46715 Content-Type: text/plain; name="daemonctl.c" Content-Description: daemonctl.c Content-Disposition: inline; filename="daemonctl.c" /* * -*- mode: Fundamental; tab-width: 4; -*- * ex:ts=4 * * Daemon control program. * * $FreeBSD: ports/www/jakarta-tomcat4/files/daemonctl.c,v 1.6 2002/05/08 22:00:04 znerd Exp $ */ #include #include #include #include #include #include #include #include #include #include #include #include #include /* The maximum size of the PID file, in bytes */ #define MAX_FILE_SIZE 32 /* The interval in seconds between the checks to make sure the process died after a kill */ #define STOP_TIME_INTERVAL 1 #define ERR_ILLEGAL_ARGUMENT 1 #define ERR_PID_FILE_NOT_FOUND 2 #define ERR_PID_FILE_TOO_LARGE 3 #define ERR_PID_FILE_CONTAINS_ILLEGAL_CHAR 4 #define ERR_KILL_FAILED 5 #define ERR_ALREADY_RUNNING 6 #define ERR_NOT_RUNNING 7 #define ERR_CHDIR_TO_APP_HOME 8 #define ERR_ACCESS_JAR_FILE 17 #define ERR_STDOUT_LOGFILE_OPEN 9 #define ERR_STDERR_LOGFILE_OPEN 10 #define ERR_FORK_FAILED 11 #define ERR_STAT_JAVA_HOME 12 #define ERR_JAVA_HOME_NOT_DIR 13 #define ERR_STAT_JAVA_CMD 14 #define ERR_JAVA_CMD_NOT_FILE 15 #define ERR_JAVA_CMD_NOT_EXECUTABLE 16 #define private static private void printUsage(void); private int openPIDFile(void); private int readPID(int); private void writePID(int file, int pid); private void start(void); private void stop(void); private void restart(void); /** * Main function. This function is called when this program is executed. * * @param argc * the number of arguments plus one, so always greater than 0. * * @param argv * the arguments in an array of character pointers, where the last argument * element is followed by a NULL element. */ int main(int argc, char *argv[]) { /* Declare variables, like all other good ANSI C programs do :) */ char *argument; /* Parse the arguments */ if (argc < 2) { printUsage(); return 0; } argument = argv[1]; setuid(geteuid()); if (strcmp("start", argument) == 0) { start(); } else if (strcmp("stop", argument) == 0) { stop(); } else if (strcmp("restart", argument) == 0) { restart(); } else { fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Illegal argument \"%s\".\n", argument); printUsage(); exit(ERR_ILLEGAL_ARGUMENT); } return 0; } /** * Prints usage information to stdout. */ void printUsage(void) { printf("Usage: %%CONTROL_SCRIPT_NAME%% [ start | stop | restart ]\n"); } /** * Attempts to open the PID file. If that file is successfully opened, then * the file handle (an int) will be returned. * * @return * the file handle. */ int openPIDFile(void) { int file; /* Attempt to open the PID file */ file = open("%%PID_FILE%%", O_RDWR); if (file < 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to open %%PID_FILE%% for reading and writing: "); perror(NULL); exit(ERR_PID_FILE_NOT_FOUND); } return file; } /** * Reads a PID from the specified file. The file is identified by a file * handle. * * @param file * the file handle. * * @return * the PID, or -1 if the file was empty. */ int readPID(int file) { char *buffer; int hadNewline = 0; unsigned int count; unsigned int i; int pid; /* Read the PID file contents */ buffer = (char *) malloc((MAX_FILE_SIZE + 1) * sizeof(char)); count = read(file, buffer, MAX_FILE_SIZE + 1); if (count > MAX_FILE_SIZE) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: The file %%PID_FILE%% contains more than %d bytes.\n", MAX_FILE_SIZE); exit(ERR_PID_FILE_TOO_LARGE); } /* Convert the bytes to a number */ pid = 0; for (i=0; i= '0' && c <= '9') { char digit = c - '0'; pid *= 10; pid += digit; } else if (i == (count - 1) && c == '\n') { /* XXX: Ignore a newline at the end of the file */ hadNewline = 1; } else { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: The file %%PID_FILE%% contains an illegal character (%d) at position %d.\n", c, i); exit(ERR_PID_FILE_CONTAINS_ILLEGAL_CHAR); } } printf(" [ DONE ]\n"); if (count == 0 || (count == 1 && hadNewline == 1)) { return -1; } return pid; } /** * Writes a process ID to the specified file. The file is identified by a file * handle. * * @param file * the file handle, always greater than 0. * * @param pid * the PID to store, always greater than 0. */ void writePID(int file, int pid) { char *buffer; int nbytes; /* Check preconditions */ assert(file > 0); assert(pid > 0); printf(">> Writing PID file..."); lseek(file, (off_t) 0, SEEK_SET); ftruncate(file, (off_t) 0); nbytes = asprintf(&buffer, "%d\n", pid); write(file, buffer, nbytes); printf(" [ DONE ]\n"); } /** * Checks if the specified process is running. * * @param pid * the process id, greater than 0. * * @return * 0 if the specified process is not running, a different value otherwise. */ int existsProcess(int pid) { int result; /* Check preconditions */ assert(pid > 0); /* See if the process exists */ result = kill(pid, 0); /* If the result is 0, then the process exists */ if (result == 0) { return 1; } else { return 0; } } /** * Kills the process identified by the specified ID. * * @param pid * the process id, greater than 0. */ void killProcess(int pid) { int result; unsigned int waited; unsigned int forced; unsigned int interval = STOP_TIME_INTERVAL; unsigned int timeout = %%STOP_TIMEOUT%%; /* Check preconditions */ assert(pid > 0); printf(">> Terminating process %d...", pid); result = kill(pid, SIGTERM); if (result < 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to kill process %d: ", pid); perror(NULL); exit(ERR_KILL_FAILED); } /* Wait until the process is actually killed */ result = existsProcess(pid); for (waited=0; result == 1 && waited < timeout; waited += interval) { printf("."); fflush(NULL); sleep(interval); result = existsProcess(pid); } /* If the process still exists, then have no mercy and kill it */ forced = 0; if (result == 1) { /* Force the process to die */ result = kill(pid, SIGKILL); if (result == 0) { forced = 1; printf(" [ DONE ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Process %d did not terminate within %%STOP_TIMEOUT%% sec. Killed.\n", pid); } else if (result != ESRCH) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to kill process %d: ", pid); perror(NULL); exit(ERR_KILL_FAILED); } } if (forced == 0) { printf(" [ DONE ]\n"); } } /** * Starts the daemon. */ void start(void) { int file; int pid; int result; int stdoutLogFile; int stderrLogFile; struct stat sb; /* Open and read the PID file */ printf(">> Reading PID file (%%PID_FILE%%)..."); file = openPIDFile(); pid = readPID(file); printf(">> Starting %%APP_TITLE%% %%PORTVERSION%%..."); if (pid != -1) { /* Check if the process actually exists */ result = existsProcess(pid); if (result == 1) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: %%APP_TITLE%% %%PORTVERSION%% is already running, PID is %d.\n", pid); exit(ERR_ALREADY_RUNNING); } } /* Check if the JDK home directory is actually a directory */ result = stat("%%JAVA_HOME%%", &sb); if (result != 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to stat %%JAVA_HOME%%: "); perror(NULL); exit(ERR_STAT_JAVA_HOME); } if (!S_ISDIR(sb.st_mode)) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Java home directory %%JAVA_HOME%% is not a directory.\n"); exit(ERR_JAVA_HOME_NOT_DIR); } /* Check if the Java command is actually an executable regular file */ result = stat("%%JAVA_HOME%%/%%JAVA_CMD%%", &sb); if (result != 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to stat %%JAVA_HOME%%/%%JAVA_CMD%%: "); perror(NULL); exit(ERR_STAT_JAVA_CMD); } if (!S_ISREG(sb.st_mode)) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Java command %%JAVA_HOME%%/%%JAVA_CMD%% is not a regular file.\n"); exit(ERR_JAVA_CMD_NOT_FILE); } result = access("%%JAVA_HOME%%/%%JAVA_CMD%%", X_OK); if (result != 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Java command %%JAVA_HOME%%/%%JAVA_CMD%% is not executable: "); perror(NULL); exit(ERR_JAVA_CMD_NOT_EXECUTABLE); } /* Change directory */ result = chdir("%%APP_HOME%%"); if (result < 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to access directory %%APP_HOME%%: "); perror(NULL); exit(ERR_CHDIR_TO_APP_HOME); } /* See if the JAR file exists */ result = access("%%APP_HOME%%/%%JAR_FILE%%", R_OK); if (result < 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to access JAR file %%APP_HOME%%/%%JAR_FILE%%: "); perror(NULL); exit(ERR_ACCESS_JAR_FILE); } /* Open the stdout log file */ stdoutLogFile = open("%%STDOUT_LOG%%", O_WRONLY); if (stdoutLogFile < 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to open %%STDOUT_LOG%% for writing: "); perror(NULL); exit(ERR_STDOUT_LOGFILE_OPEN); } lseek(stdoutLogFile, (off_t) 0, SEEK_END); /* Open the stderr log file */ stderrLogFile = open("%%STDERR_LOG%%", O_WRONLY); if (stderrLogFile < 0) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to open %%STDERR_LOG%% for writing: "); perror(NULL); exit(ERR_STDERR_LOGFILE_OPEN); } lseek(stderrLogFile, (off_t) 0, SEEK_END); /* Split this process in two */ pid = fork(); if (pid == -1) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to fork: "); perror(NULL); exit(ERR_FORK_FAILED); } if (pid == 0) { /* Redirect stdout to log file */ dup2(stdoutLogFile, STDOUT_FILENO); /* Redirect stderr to log file */ dup2(stderrLogFile, STDERR_FILENO); /* TODO: Support redirection of both stdout and stderr to the same file using pipe(2) */ /* Execute the command */ execl("%%JAVA_HOME%%/%%JAVA_CMD%%", "%%JAVA_HOME%%/%%JAVA_CMD%%", "-jar", %%JAVA_ARGS%% "%%JAR_FILE%%", %%JAR_ARGS%% NULL); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to start %%APP_TITLE%% %%PORTVERSION%% since '%%JAVA_HOME%%/%%JAVA_CMD%% -jar %%JAR_FILE%%' in %%APP_HOME%%: "); perror(NULL); } else { printf(" [ DONE ]\n"); writePID(file, pid); } } /** * Stops the daemon. */ void stop(void) { int file; int pid; /* Open and read the PID file */ printf(">> Reading PID file (%%PID_FILE%%)..."); file = openPIDFile(); pid = readPID(file); printf(">> Checking if %%APP_TITLE%% %%PORTVERSION%% is running..."); /* If there is a PID, see if the process still exists */ if (pid != -1) { int result = kill(pid, 0); if (result != 0 && errno == ESRCH) { ftruncate(file, (off_t) 0); pid = -1; } } /* If there is no running process, produce an error */ if (pid == -1) { printf(" [ FAILED ]\n"); fprintf(stderr, "%%CONTROL_SCRIPT_NAME%%: %%APP_TITLE%% %%PORTVERSION%% is currently not running.\n"); exit(ERR_NOT_RUNNING); } printf(" [ DONE ]\n"); /* Terminate the process */ killProcess(pid); /* Clear the PID file */ ftruncate(file, (off_t) 0); } /** * Restarts the process. If it not currently running, then it will fail. */ void restart(void) { stop(); start(); } --0-1926540025-1030525918=:46715-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 2:19:44 2002 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 8CA2337B400 for ; Wed, 28 Aug 2002 02:19:41 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7A2943E6E for ; Wed, 28 Aug 2002 02:19:40 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7S9JpYU089193 for ; Wed, 28 Aug 2002 11:19:51 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7S9Jon1089192 for java@FreeBSD.org; Wed, 28 Aug 2002 11:19:50 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" From: Ernst de Haan To: java@FreeBSD.org Subject: jakarta-tomcat4-devel Date: Wed, 28 Aug 2002 11:19:50 +0200 User-Agent: KMail/1.4.3 X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208281119.50625.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Should we have a jakarta-tomcat4-devel port for 4.1.9 and friends? Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 2:26: 5 2002 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 33AAC37B400; Wed, 28 Aug 2002 02:26:03 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D93E43E65; Wed, 28 Aug 2002 02:26:01 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g7S9PoeA026988; Wed, 28 Aug 2002 12:25:50 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari Organization: Syncron Tech Oy To: Ernst de Haan , dan_256@yahoo.com, Greg Lewis Subject: Re: Jboss3ctl update (I think I know the problem) Date: Wed, 28 Aug 2002 12:26:43 +0300 User-Agent: KMail/1.4.2 Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG References: <20020828013922.50148.qmail@web13402.mail.yahoo.com> <200208280904.31561.ari.suutari@syncrontech.com> <200208280825.00833.znerd@FreeBSD.org> In-Reply-To: <200208280825.00833.znerd@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200208281226.43560.ari.suutari@syncrontech.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, On Wednesday 28 August 2002 09:25, Ernst de Haan wrote: > > =09So, really just calling setuid(geteuid()) makes things work. > > =09No special kludgery is necessary. > > Could you mail me a patch? Then I will integrate it in daemonctl.c ASAP= =2E =09Here it is. --------------------------- *** d.orig Wed Aug 28 11:26:09 2002 --- daemonctl.c Wed Aug 28 12:23:58 2002 *************** *** 78,83 **** --- 78,85 ---- return 0; } + setuid(geteuid()); + argument =3D argv[1]; if (strcmp("start", argument) =3D=3D 0) { start(); ------------------- > I'm close to a *very* tight deadline (Wednesday next week), so my time = is > limited, for which I apologize :-( Wish I could spend more time on thes= e > discussions and improvements... =09No problem. The situation here is not so much different.... =09=09Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 2:31:17 2002 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 77AAD37B400 for ; Wed, 28 Aug 2002 02:31:14 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C39B43E65 for ; Wed, 28 Aug 2002 02:31:13 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7S9VDYU089332; Wed, 28 Aug 2002 11:31:13 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7S9V1l1089327; Wed, 28 Aug 2002 11:31:01 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Ari Suutari , dan_256@yahoo.com, Greg Lewis Subject: Re: Jboss3ctl update (I think I know the problem) Date: Wed, 28 Aug 2002 11:31:01 +0200 User-Agent: KMail/1.4.3 Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG References: <20020828013922.50148.qmail@web13402.mail.yahoo.com> <200208280825.00833.znerd@FreeBSD.org> <200208281226.43560.ari.suutari@syncrontech.com> In-Reply-To: <200208281226.43560.ari.suutari@syncrontech.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208281131.01713.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Just committed both patches (PORTREVISION and setuid) Ernst On Wednesday 28 August 2002 11:26, Ari Suutari wrote: > Hi, > > On Wednesday 28 August 2002 09:25, Ernst de Haan wrote: > > > So, really just calling setuid(geteuid()) makes things work. > > > No special kludgery is necessary. > > > > Could you mail me a patch? Then I will integrate it in daemonctl.c > > ASAP. > > Here it is. > --------------------------- > *** d.orig Wed Aug 28 11:26:09 2002 > --- daemonctl.c Wed Aug 28 12:23:58 2002 > *************** > *** 78,83 **** > --- 78,85 ---- > return 0; > } > > + setuid(geteuid()); > + > argument = argv[1]; > if (strcmp("start", argument) == 0) { > start(); > > ------------------- > > > I'm close to a *very* tight deadline (Wednesday next week), so my time > > is limited, for which I apologize :-( Wish I could spend more time on > > these discussions and improvements... > > No problem. The situation here is not so much different.... > > Ari S. > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 2:42:28 2002 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 C23DC37B400; Wed, 28 Aug 2002 02:42:10 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75A5443E4A; Wed, 28 Aug 2002 02:42:09 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g7S9fweA027715; Wed, 28 Aug 2002 12:41:59 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) From: Ari Suutari Organization: Syncron Tech Oy To: dan_256@yahoo.com, Greg Lewis , Ernst de Haan Subject: Re: Jboss3ctl update (I think I know the problem) Date: Wed, 28 Aug 2002 12:42:52 +0300 User-Agent: KMail/1.4.2 Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG References: <20020828091158.46733.qmail@web13403.mail.yahoo.com> In-Reply-To: <20020828091158.46733.qmail@web13403.mail.yahoo.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_GBSJCVQZOH4PP5NTH4AB" Message-Id: <200208281242.52123.ari.suutari@syncrontech.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --------------Boundary-00=_GBSJCVQZOH4PP5NTH4AB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, On Wednesday 28 August 2002 12:11, Dan Hulme wrote: > Ari is right. This will work. Ernst, the patch is really simple. Jus= t > put the "setuid(geteuid())" in main before the strcmp. One other littl= e > bug in the daemonctl.c (from tomcat) is on line 325 where it has > "%%PORTREVISION%%" rather than "%%PORTVERSION%%" which will keep it fro= m > being replaced, and will print out something funny when you get the err= or > "[program] is already running." > > I included these changes in a daemonctl.c taken from > $portsdir/www/jakarta-tomcat4/files/. Ari, tell me if I got it wrong. =09Your code is similar to mine. Btw, I have also modified version =09of daemonctl.c which doesn't rely on replacing of strings =09during installation time. Instead, it has a separate configuration =09file for settings, ie. one has tomcat4ctl and tomcat4ctl.conf. =09I'll include the modified version also in case somebody is interested =09it. I have been using it myself, because I needed a way to =09pass other parameters to java command (like: java -Dsomething=3Dvalue = =2E...) =09The program checks under which name it has been installed=20 =09looks up the configuration file in /usr/local/etc based on that. =09(ie. tomcat4ctl read tomcat4ctl.conf and jboss3ctl reads jboss3ctl.con= f, =09they can all be the same binary, however). =09=09Ari S. --------------Boundary-00=_GBSJCVQZOH4PP5NTH4AB Content-Type: text/x-csrc; charset="iso-8859-1"; name="daemonctl.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="daemonctl.c" LyoKICogLSotIG1vZGU6IEZ1bmRhbWVudGFsOyB0YWItd2lkdGg6IDQ7IC0qLQogKiBleDp0cz00 CiAqCiAqIERhZW1vbiBjb250cm9sIHByb2dyYW0uCiAqCiAqICRGcmVlQlNEOiBwb3J0cy93d3cv amFrYXJ0YS10b21jYXQ0L2ZpbGVzL2RhZW1vbmN0bC5jLHYgMS42IDIwMDIvMDUvMDggMjI6MDA6 MDQgem5lcmQgRXhwICQKICovCgojaW5jbHVkZSA8YXNzZXJ0Lmg+CiNpbmNsdWRlIDxmY250bC5o PgojaW5jbHVkZSA8c2lnbmFsLmg+CiNpbmNsdWRlIDxzdGRhcmcuaD4KI2luY2x1ZGUgPHN0ZGlv Lmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgojaW5jbHVkZSA8c3lz bG9nLmg+CiNpbmNsdWRlIDx1bmlzdGQuaD4KI2luY2x1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gkJbm9kZSA9IG1h bGxvYyhzaXplb2YoQ29uZk5vZGUpKTsKCQlpZiAobm9kZSA9PSBOVUxMKSB7CgoJCQlmcHJpbnRm IChzdGRlcnIsICJPdXQgb2YgbWVtb3J5LlxuIik7CgkJCWV4aXQgKEVSUl9NQUxMT0MpOwoJCX0K CgkJKnB0ciA9ICdcMCc7CgkJbm9kZS0+bmFtZSAgPSBzdHJkdXAgKGJ1Zik7CgkJbm9kZS0+dmFs dWUgPSBzdHJkdXAocHRyICsgMSk7CgkJbm9kZS0+bmV4dCAgPSBjb25mTGlzdDsKCQljb25mTGlz dCAgICA9IG5vZGU7Cgl9CgoJZmNsb3NlIChjb25mRmlsZSk7Cn0KCmNoYXIqIGdldENvbmZTdHIo Y2hhciogbmFtZSkKewoJQ29uZk5vZGUqCW5vZGU7CgoJbm9kZSA9IGNvbmZMaXN0OwoJd2hpbGUg KG5vZGUgIT0gTlVMTCkgewoKCQlpZiAoIXN0cmNtcChub2RlLT5uYW1lLCBuYW1lKSkKCQkJcmV0 dXJuIG5vZGUtPnZhbHVlOwoKCQlub2RlID0gbm9kZS0+bmV4dDsKCX0KCglmcHJpbnRmIChzdGRl cnIsICJDb25maWd1cmF0aW9uIHZhbHVlIG1pc3NpbmcgZm9yICVzXG4iLCBuYW1lKTsKCWV4aXQg KEVSUl9DT05GSUdfTUlTU0lORyk7CglyZXR1cm4gTlVMTDsKfQoKaW50IGdldENvbmZJbnQoY2hh ciogbmFtZSkKewoJcmV0dXJuIGF0b2koZ2V0Q29uZlN0cihuYW1lKSk7CgkKfQo= --------------Boundary-00=_GBSJCVQZOH4PP5NTH4AB Content-Type: text/plain; charset="iso-8859-1"; name="tomcat4ctl.conf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tomcat4ctl.conf" QVBQX0hPTUU9L3Vzci9sb2NhbC9qYWthcnRhLXRvbWNhdDQuMC4zCkpBVkFfSE9NRT0vdXNyL2xv Y2FsL2pkazEuMy4xClNURE9VVF9MT0c9L3Vzci9sb2NhbC9qYWthcnRhLXRvbWNhdDQuMC4zL2xv Z3Mvc3Rkb3V0LmxvZwpTVERFUlJfTE9HPS91c3IvbG9jYWwvamFrYXJ0YS10b21jYXQ0LjAuMy9s b2dzL3N0ZGVyci5sb2cKU1RPUF9USU1FT1VUPTUKUElEX0ZJTEU9L3Zhci9ydW4vdG9tY2F0NC5w aWQKUE9SVFZFUlNJT049NC4wLjMKQVBQX1RJVExFPUpha2FydGEgVG9tY2F0CkpBVkFfQ01EPWJp bi9qYXZhCkpBUl9GSUxFPWJpbi9ib290c3RyYXAuamFyCkpBVkFfQVJHUz0tRGNhdGFsaW5hLmhv bWU9L3Vzci9sb2NhbC9qYWthcnRhLXRvbWNhdDQuMC4zCkpBUl9BUkdTPXN0YXJ0Cg== --------------Boundary-00=_GBSJCVQZOH4PP5NTH4AB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 2:46:19 2002 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 6E98537B400 for ; Wed, 28 Aug 2002 02:46:17 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 825B743E6A for ; Wed, 28 Aug 2002 02:46:16 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7S9kKYU089505; Wed, 28 Aug 2002 11:46:20 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7S9kJ4Q089504; Wed, 28 Aug 2002 11:46:19 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Ari Suutari , dan_256@yahoo.com, Greg Lewis Subject: Re: Jboss3ctl update (I think I know the problem) Date: Wed, 28 Aug 2002 11:46:19 +0200 User-Agent: KMail/1.4.3 Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG References: <20020828091158.46733.qmail@web13403.mail.yahoo.com> <200208281242.52123.ari.suutari@syncrontech.com> In-Reply-To: <200208281242.52123.ari.suutari@syncrontech.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208281146.19130.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Ari, > Your code is similar to mine. Btw, I have also modified version > of daemonctl.c which doesn't rely on replacing of strings > during installation time. Instead, it has a separate configuration > file for settings, ie. one has tomcat4ctl and tomcat4ctl.conf. I know you've submitted this code before. If you and at least one other person on freebsd-java could test this code and then send a patch, then I will commit it. Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 6:58: 7 2002 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 A65E837B400; Wed, 28 Aug 2002 06:58:04 -0700 (PDT) Received: from mgr5.xmission.com (mgr5.xmission.com [198.60.22.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9680D43E75; Wed, 28 Aug 2002 06:58:03 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr5.xmission.com with spam-scanned (Exim 3.35 #1) id 17k3Kc-0003xC-00; Wed, 28 Aug 2002 07:58:02 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr5.xmission.com with esmtp (Exim 3.35 #1) id 17k3Ka-0003wy-00; Wed, 28 Aug 2002 07:58:01 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g7SDUI859344; Wed, 28 Aug 2002 23:00:18 +0930 (CST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Wed, 28 Aug 2002 22:58:58 +0930 From: Greg Lewis To: Dylan Carlson Cc: Ernst de Haan , Calvin Varney , freebsd-java@FreeBSD.ORG Subject: Re: Port/package guidelines (Ant) Message-ID: <20020828225858.A59324@misty.eyesbeyond.com> References: <200208170958.14422.absinthe@pobox.com> <200208270601.27637.absinthe@pobox.com> <200208271220.18256.znerd@FreeBSD.org> <200208271225.40211.absinthe@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200208271225.40211.absinthe@pobox.com>; from absinthe@pobox.com on Tue, Aug 27, 2002 at 12:25:40PM -0400 X-Spam-Status: No, hits=-4.1 required=8.0 tests=IN_REP_TO,X_AUTH_WARNING version=2.31 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Aug 27, 2002 at 12:25:40PM -0400, Dylan Carlson wrote: > On Tuesday 27 August 2002 06:20am, Ernst de Haan wrote: > > Yeah, good point! We could even have -cvs ports in addition to the existing > > -devel ports :-) > > We should absolutely look to doing that. If someone is using a -devel port > they are specifically looking for bleeding edge code, and CVS is as good as > it gets. The only problem is that this completely violates one of the main port security measures, checksumming of the downloaded source code. In addition you'll also lose tracking of port changes and upgrading with a tool like portupgrade. Basically, noone is going to either update checksums for every single source file each time a commit happens or bump PORTREVISION. Even if they were to do that it would raise a huge outcry since it would bloat the ports repository a lot. Think of the packing list updates too. Basically a port which downloads source from CVS is essentially not a port in the current sense of the word since it doesn't fit within the current ports architecture and tools. IMO, of course. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 7:26:11 2002 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 6082737B400 for ; Wed, 28 Aug 2002 07:26:09 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E92F43E42 for ; Wed, 28 Aug 2002 07:26:08 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7SEQ9YU092140; Wed, 28 Aug 2002 16:26:09 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7SEQ8x8092139; Wed, 28 Aug 2002 16:26:08 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Greg Lewis , Dylan Carlson Subject: Re: Port/package guidelines (Ant) Date: Wed, 28 Aug 2002 16:26:08 +0200 User-Agent: KMail/1.4.3 Cc: Calvin Varney , freebsd-java@FreeBSD.ORG References: <200208170958.14422.absinthe@pobox.com> <200208271225.40211.absinthe@pobox.com> <20020828225858.A59324@misty.eyesbeyond.com> In-Reply-To: <20020828225858.A59324@misty.eyesbeyond.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208281626.08129.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greg, You're absolutely right. I didn't think it over carefully and now that I do I must admit it may be Unwise(TM) to have -cvs ports... Ernst On Wednesday 28 August 2002 15:28, Greg Lewis wrote: > On Tue, Aug 27, 2002 at 12:25:40PM -0400, Dylan Carlson wrote: > > On Tuesday 27 August 2002 06:20am, Ernst de Haan wrote: > > > Yeah, good point! We could even have -cvs ports in addition to the > > > existing -devel ports :-) > > > > We should absolutely look to doing that. If someone is using a -devel > > port they are specifically looking for bleeding edge code, and CVS is > > as good as it gets. > > The only problem is that this completely violates one of the main port > security measures, checksumming of the downloaded source code. In > addition you'll also lose tracking of port changes and upgrading with a > tool like portupgrade. > > Basically, noone is going to either update checksums for every single > source file each time a commit happens or bump PORTREVISION. Even if > they were to do that it would raise a huge outcry since it would bloat > the ports repository a lot. Think of the packing list updates too. > Basically a port which downloads source from CVS is essentially not a > port in the current sense of the word since it doesn't fit within the > current ports architecture and tools. > > IMO, of course. -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 23:19:53 2002 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 5C10F37B400 for ; Wed, 28 Aug 2002 23:19:52 -0700 (PDT) Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id B83D043E42 for ; Wed, 28 Aug 2002 23:19:51 -0700 (PDT) (envelope-from aurynkid@libero.it) Received: from libero.it (151.25.179.118) by smtp2.libero.it (6.5.028) id 3D6B8C49000A2315 for freebsd-java@FreeBSD.ORG; Thu, 29 Aug 2002 08:19:49 +0200 Message-ID: <3D6DBD3A.3020702@libero.it> Date: Thu, 29 Aug 2002 08:20:42 +0200 From: Giulio Ferro User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@FreeBSD.ORG Subject: Problem with fonts Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I've found that every time I instantiate a "Font" object a plethora of errors come out saying that fonts could not be found. This is strange, because I set up fonts in Xftconfig sile in the right X directory and they are used without problems by other applications (kde). Has anyone a workaround? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 28 23:50:43 2002 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 BB30037B400 for ; Wed, 28 Aug 2002 23:50:41 -0700 (PDT) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7382943E72 for ; Wed, 28 Aug 2002 23:50:41 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17kJ8Z-0000iY-00; Wed, 28 Aug 2002 23:50:39 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: Giulio Ferro , freebsd-java@FreeBSD.ORG Subject: Re: Problem with fonts Date: Thu, 29 Aug 2002 02:50:45 -0400 User-Agent: KMail/1.4.2 References: <3D6DBD3A.3020702@libero.it> In-Reply-To: <3D6DBD3A.3020702@libero.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208290250.45914.absinthe@pobox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thursday 29 August 2002 02:20am, Giulio Ferro wrote: > I've found that every time I instantiate a "Font" object a plethora of > errors come out saying that fonts could not be found. This is strange, > because I set up fonts in Xftconfig sile in the right X directory and > they are used without problems by other applications (kde). > Has anyone a workaround? Hi Giulio, Make sure you have /ports/x11-fonts/urwfonts installed, and added into your XF86Config FontPath. That may help. Cheers, -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 29 1: 6: 4 2002 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 5A51337B401; Thu, 29 Aug 2002 01:06:03 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 644A143E3B; Thu, 29 Aug 2002 01:06:01 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g7T85ieA085027; Thu, 29 Aug 2002 11:05:44 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari Organization: Syncron Tech Oy To: Ernst de Haan , dan_256@yahoo.com, Greg Lewis Subject: Re: Jboss3ctl update (I think I know the problem) Date: Thu, 29 Aug 2002 11:06:31 +0300 User-Agent: KMail/1.4.2 Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG References: <20020828091158.46733.qmail@web13403.mail.yahoo.com> <200208281242.52123.ari.suutari@syncrontech.com> <200208281146.19130.znerd@FreeBSD.org> In-Reply-To: <200208281146.19130.znerd@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200208291106.31294.ari.suutari@syncrontech.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, On Wednesday 28 August 2002 12:46, Ernst de Haan wrote: > Hi Ari, > > > =09Your code is similar to mine. Btw, I have also modified version > > =09of daemonctl.c which doesn't rely on replacing of strings > > =09during installation time. Instead, it has a separate configuration > > =09file for settings, ie. one has tomcat4ctl and tomcat4ctl.conf. > > I know you've submitted this code before. If you and at least one other > person on freebsd-java could test this code and then send a patch, then= I > will commit it. =09I have the modified version (ie. the one with config file) installed =09on 2 customer sites now. Works ok for tomcat4, I haven't tried the =09program with other ports. But definitively someone else should =09test it too just to be sure that nothing is broken. =09=09Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 29 11:58:36 2002 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 5B0A737B400; Thu, 29 Aug 2002 11:58:34 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 727F343E65; Thu, 29 Aug 2002 11:58:32 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds73-45.dial.hccnet.nl [62.251.45.73] with SMTP id UAA13744 (8.8.8/1.13); Thu, 29 Aug 2002 20:58:30 +0200 (MET DST) Message-Id: <200208291858.UAA13744@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: portmgr@FreeBSD.org, cvs@FreeBSD.org Subject: Repocopy request: www/jakarta-tomcat4 -> www/jakarta-tomcat4-devel Date: Thu, 29 Aug 2002 20:58:28 +0200 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: java@FreeBSD.org Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hiereby I request that the following repocopy is performed: from: ports/www/jakarta-tomcat4 to: ports/www/jakarta-tomcat4-devel The latter port will install a release from the development branch of Tomcat 4. See the 'Tomcat 4.x' section on the following page: * http://jakarta.apache.org/tomcat/ Kind regards, Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 29 13:13: 8 2002 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 C57C737B400 for ; Thu, 29 Aug 2002 13:13:02 -0700 (PDT) Received: from ns3.ideathcare.com (mail.allneo.com [216.185.96.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 33F6843E3B for ; Thu, 29 Aug 2002 13:13:02 -0700 (PDT) (envelope-from jps@funeralexchange.com) Received: (qmail 96279 invoked by uid 85); 29 Aug 2002 20:25:58 -0000 Received: from jps@funeralexchange.com by ns3.ideathcare.com with qmail-scanner-1.03 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.176685 secs); 29 Aug 2002 20:25:58 -0000 Received: from unknown (HELO pimpin) (216.138.114.143) by mail.allneo.com with SMTP; 29 Aug 2002 20:25:58 -0000 Reply-To: From: "Jeremy Suo-Anttila" To: Subject: (OT?) Resin 2.1.4 src build errors & problems running as non root user. Date: Thu, 29 Aug 2002 15:18:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200208291858.UAA13744@smtp.hccnet.nl> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org We are in the process of evaluating resin 2.14 as a replacement for our tomcat server setup we are using right now. So far everything has been going very well except for a couple small problems. For one I can _not_ get either the bin/resin or bin/httpd.sh to run as any other user then root. I have tried creating completely separate java_homes for each user and giving the resin uid/gid full reign over those dirs and I still have the resin core on me without very much information. below is a snippet of the startup script I am using. "tc_start.sh" 8 lines, 194 characters #!/bin/sh USER=resin GROUP=resin HOME=/usr/local/resin JAVA_HOME=/usr/local/linux-jdk1.4 export USER GROUP HOME JAVA_HOME su -f -m resin -c "exec /usr/local/resin/bin/httpd.sh start -verbose" root@ping]/usr/local/resin% sh tc_start.sh JAVA_HOME: /usr/local/linux-jdk1.4 RESIN_HOME: /usr/local/resin SERVER_ROOT: /usr/local/resin CLASSPATH: /usr/local/jdk1.4/lib/mysql.jar /usr/local/resin/lib/jdbc-mysql.jar /usr/local/resin/lib/jdbc2_0-stdext.jar /usr/local/resin/lib/jta-spec1_0_1.jar /usr/local/resin/lib/jndi.jar /usr/local/resin/lib/dom.jar /usr/local/resin/lib/sax.jar /usr/local/resin/lib/jaxp.jar /usr/local/resin/lib/jmx.jar /usr/local/resin/lib/webutil.jar /usr/local/resin/lib/resin.jar /usr/local/resin/lib/JRTF1.1.jar /usr/local/resin/lib/mysql_comp.jar /usr/local/resin/lib/mysql.jar /usr/local/resin/lib/msbase.jar /usr/local/resin/lib/mssqlserver.jar /usr/local/resin/lib/msutil.jar /usr/local/resin/lib/mail.jar /usr/local/resin/lib/ccc_ssl.jar /usr/local/resin/lib/activation.jar /usr/local/resin/lib/mysql_uncomp.jar /usr/local/resin/lib/com.jar /usr/local/resin/lib/tools.jar /usr/local/linux-jdk1.4/lib/tools.jar /usr/local/linux-jdk1.4/jre/lib/rt.jar /usr/local/resin/lib/jsdk23.jar LD_LIBRARY_PATH: libexec java: /usr/local/linux-jdk1.4/bin/java java args: -Dresin.home=/usr/local/resin class: com.caucho.server.http.HttpServer resin args: -stdout /usr/local/resin/log/stdout.log -stderr /usr/local/resin/log/stderr.log command-line: sr/local/linux-jdk1.4/bin/java -Dresin.home=/usr/local/resin com.caucho.server.http.HttpServer -stdout /usr/local/resin/log/stdout.log -stderr /usr/local/resin/log/stderr.log [root@ping]/usr/local/resin% Resin httpd start at Thu Aug 29 13:13:10 CDT 2002 Abort trap (core dumped) # System specs [root@ping]/usr/local/resin% uname -a FreeBSD ping.allneo.com 4.6-STABLE FreeBSD 4.6-STABLE #4: Wed Aug 28 15:27:24 CDT 2002 root@ping.ideathcare.com:/usr/obj/usr/src/sys/PING i386 # Java specs [root@ping]/usr/local/resin% java -version java version "1.4.0_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03) Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode) Is there any known problems with using resin on a FreeBSD 4.X server with the linux-jdk1.4.0.1? Tomcat will start and run fine as a non root user on the exact same box but whenever i try to do it with resin i get the errors above. I have also tried using the bin/resin but it gives me the same results. # bin/resin [root@ping]/usr/local/resin/bin% ./resin -conf ../conf/resin.conf Resin 2.1.4 -- Fri Aug 2 10:22:31 PDT 2002 http listening to *:8080 Running as resin(uid=1004) # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Server VM (1.4.0_01-b03 mixed mode) # # Error ID: 4F533F4C494E55580E43505002AB # Abort [root@ping]/usr/local/resin/bin% Also when I am trying to compile the bin/resin from source I keep getting the same error message listed below. # [root@ping]/home/pimpin/resin-2.1.4% make all (cd src/c/plugin; make) for dir in common resin; do (cd $dir; make); done gcc -o resin resin.o ../common/common.o std.o memory.o ssl.o /usr/lib/libssl.a /usr/lib/libcrypto.a -ldl /usr/libexec/elf/ld: cannot find -ldl *** Error code 1 Stop in /home/pimpin/resin-2.1.4/src/c/plugin/resin. *** Error code 1 Stop in /home/pimpin/resin-2.1.4/src/c/plugin. *** Error code 1 Stop in /home/pimpin/resin-2.1.4. [root@ping]/home/pimpin/resin-2.1.4% Any ideas on how i can resolve this? I would love to use the resin server as full replacement of our existing tomcat setup but I cant until I get these issues figured out. So any help would be greatly appreciated. Thanks Jeremy Suo-Anttila noc@allneo.com ALLNEO Network Operations To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 29 13:23:38 2002 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 45A2237B400 for ; Thu, 29 Aug 2002 13:23:32 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 743D443E3B for ; Thu, 29 Aug 2002 13:23:31 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds53-45.dial.hccnet.nl [62.251.45.53] with SMTP id WAA27945 (8.8.8/1.13); Thu, 29 Aug 2002 22:23:27 +0200 (MET DST) Message-Id: <200208292023.WAA27945@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: , Subject: Re: (OT?) Resin 2.1.4 src build errors & problems running as non root user. Date: Thu, 29 Aug 2002 22:23:25 +0200 X-Mailer: KMail [version 1.3.2] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Jeremy, The problem you have is that the Sun JDK 1.4 for Linux is unstable on FreeBSD. Try the native JDK 1.3.1 by Greg Lewis & Bill Huey and friends. Ernst On Thursday 29 August 2002 22:18, Jeremy Suo-Anttila wrote: > We are in the process of evaluating resin 2.14 as a replacement for our > tomcat server setup we are using right now. So far everything has been > going very well except for a couple small problems. For one I can _not_ get > either the bin/resin or bin/httpd.sh to run as any other user then root. I > have tried creating completely separate java_homes for each user and giving > the resin uid/gid full reign over those dirs and I still have the resin > core on me without very much information. below is a snippet of the startup > script I am using. > > "tc_start.sh" 8 lines, 194 characters > > #!/bin/sh > USER=resin > GROUP=resin > HOME=/usr/local/resin > JAVA_HOME=/usr/local/linux-jdk1.4 > export USER GROUP HOME JAVA_HOME > > su -f -m resin -c "exec /usr/local/resin/bin/httpd.sh start -verbose" > > root@ping]/usr/local/resin% sh tc_start.sh > JAVA_HOME: /usr/local/linux-jdk1.4 > RESIN_HOME: /usr/local/resin > SERVER_ROOT: /usr/local/resin > CLASSPATH: > /usr/local/jdk1.4/lib/mysql.jar > /usr/local/resin/lib/jdbc-mysql.jar > /usr/local/resin/lib/jdbc2_0-stdext.jar > /usr/local/resin/lib/jta-spec1_0_1.jar > /usr/local/resin/lib/jndi.jar > /usr/local/resin/lib/dom.jar > /usr/local/resin/lib/sax.jar > /usr/local/resin/lib/jaxp.jar > /usr/local/resin/lib/jmx.jar > /usr/local/resin/lib/webutil.jar > /usr/local/resin/lib/resin.jar > /usr/local/resin/lib/JRTF1.1.jar > /usr/local/resin/lib/mysql_comp.jar > /usr/local/resin/lib/mysql.jar > /usr/local/resin/lib/msbase.jar > /usr/local/resin/lib/mssqlserver.jar > /usr/local/resin/lib/msutil.jar > /usr/local/resin/lib/mail.jar > /usr/local/resin/lib/ccc_ssl.jar > /usr/local/resin/lib/activation.jar > /usr/local/resin/lib/mysql_uncomp.jar > /usr/local/resin/lib/com.jar > /usr/local/resin/lib/tools.jar > /usr/local/linux-jdk1.4/lib/tools.jar > /usr/local/linux-jdk1.4/jre/lib/rt.jar > /usr/local/resin/lib/jsdk23.jar > LD_LIBRARY_PATH: > libexec > java: /usr/local/linux-jdk1.4/bin/java > java args: -Dresin.home=/usr/local/resin > class: com.caucho.server.http.HttpServer > resin args: -stdout /usr/local/resin/log/stdout.log -stderr > /usr/local/resin/log/stderr.log > > command-line: > sr/local/linux-jdk1.4/bin/java -Dresin.home=/usr/local/resin > com.caucho.server.http.HttpServer -stdout > /usr/local/resin/log/stdout.log -stderr /usr/local/resin/log/stderr.log > [root@ping]/usr/local/resin% Resin httpd start at Thu Aug 29 13:13:10 CDT > 2002 > Abort trap (core dumped) > > # System specs > [root@ping]/usr/local/resin% uname -a > FreeBSD ping.allneo.com 4.6-STABLE FreeBSD 4.6-STABLE #4: Wed Aug 28 > 15:27:24 CDT 2002 root@ping.ideathcare.com:/usr/obj/usr/src/sys/PING > i386 > > # Java specs > [root@ping]/usr/local/resin% java -version > java version "1.4.0_01" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03) > Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode) > > Is there any known problems with using resin on a FreeBSD 4.X server with > the linux-jdk1.4.0.1? Tomcat will start and run fine as a non root user on > the exact same box but whenever i try to do it with resin i get the errors > above. I have also tried using the bin/resin but it gives me the same > results. > > # bin/resin > [root@ping]/usr/local/resin/bin% ./resin -conf ../conf/resin.conf > Resin 2.1.4 -- Fri Aug 2 10:22:31 PDT 2002 > http listening to *:8080 > Running as resin(uid=1004) > # > # HotSpot Virtual Machine Error, Internal Error > # Please report this error at > # http://java.sun.com/cgi-bin/bugreport.cgi > # > # Java VM: Java HotSpot(TM) Server VM (1.4.0_01-b03 mixed mode) > # > # Error ID: 4F533F4C494E55580E43505002AB > # > Abort > [root@ping]/usr/local/resin/bin% > > > Also when I am trying to compile the bin/resin from source I keep getting > the same error message listed below. > > # > [root@ping]/home/pimpin/resin-2.1.4% make all > (cd src/c/plugin; make) > for dir in common resin; do (cd $dir; make); done > gcc -o resin resin.o ../common/common.o std.o memory.o ssl.o > /usr/lib/libssl.a /usr/lib/libcrypto.a -ldl > /usr/libexec/elf/ld: cannot find -ldl > *** Error code 1 > > Stop in /home/pimpin/resin-2.1.4/src/c/plugin/resin. > *** Error code 1 > > Stop in /home/pimpin/resin-2.1.4/src/c/plugin. > *** Error code 1 > > Stop in /home/pimpin/resin-2.1.4. > [root@ping]/home/pimpin/resin-2.1.4% > > Any ideas on how i can resolve this? I would love to use the resin server > as full replacement of our existing tomcat setup but I cant until I get > these issues figured out. So any help would be greatly appreciated. > > Thanks > > Jeremy Suo-Anttila > noc@allneo.com > ALLNEO Network Operations > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 29 14:41:22 2002 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 54E8737B401; Thu, 29 Aug 2002 14:41:21 -0700 (PDT) Received: from nest.irfu.se (nest.irfu.se [130.238.30.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B39F43E4A; Thu, 29 Aug 2002 14:41:19 -0700 (PDT) (envelope-from yuri@irfu.se) Received: from nest.irfu.se (localhost [127.0.0.1]) by nest.irfu.se (8.12.5/8.12.5) with ESMTP id g7TLD4e8031765; Thu, 29 Aug 2002 23:13:04 +0200 (CEST) (envelope-from yuri@irfu.se) Received: from localhost (yuri@localhost) by nest.irfu.se (8.12.5/8.12.5/Submit) with ESMTP id g7TL1CLF031723; Thu, 29 Aug 2002 23:02:06 +0200 (CEST) X-Authentication-Warning: nest.irfu.se: yuri owned process doing -bs Date: Thu, 29 Aug 2002 23:01:12 +0200 (CEST) From: Yuri Khotyaintsev To: Ernst de Haan Cc: jps@funeralexchange.com, Subject: Re: (OT?) Resin 2.1.4 src build errors & problems running as non root user. In-Reply-To: <200208292023.WAA27945@smtp.hccnet.nl> Message-ID: <20020829225759.L31692-100000@nest.irfu.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 29 Aug 2002, Ernst de Haan wrote: > Jeremy, > > The problem you have is that the Sun JDK 1.4 for Linux is unstable on > FreeBSD. Try the native JDK 1.3.1 by Greg Lewis & Bill Huey and friends. > > Ernst > Ernst, Instead of repeating this every time on the list, wouldn't it be better to include a warning into port's Makefile ? Yuri To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 29 14:53:17 2002 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 81B6637B400 for ; Thu, 29 Aug 2002 14:53:16 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id B280D43E6A for ; Thu, 29 Aug 2002 14:53:13 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds90-60.dial.hccnet.nl [62.251.60.90] with SMTP id XAA00107 (8.8.8/1.13); Thu, 29 Aug 2002 23:51:45 +0200 (MET DST) Message-Id: <200208292151.XAA00107@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: Yuri Khotyaintsev Subject: Re: (OT?) Resin 2.1.4 src build errors & problems running as non root user. Date: Thu, 29 Aug 2002 23:51:43 +0200 X-Mailer: KMail [version 1.3.2] Cc: jps@funeralexchange.com, References: <20020829225759.L31692-100000@nest.irfu.se> In-Reply-To: <20020829225759.L31692-100000@nest.irfu.se> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Ernst, > > Instead of repeating this every time on the list, wouldn't it be better to > include a warning into port's Makefile ? > > Yuri Yuri, you are absolutely right. I'm making this change right now... Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 29 14:56:30 2002 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 28FC837B400 for ; Thu, 29 Aug 2002 14:56:28 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F70343E42 for ; Thu, 29 Aug 2002 14:56:25 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds90-60.dial.hccnet.nl [62.251.60.90] with SMTP for id XAA00810 (8.8.8/1.13); Thu, 29 Aug 2002 23:56:22 +0200 (MET DST) Message-Id: <200208292156.XAA00810@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: java@FreeBSD.org Subject: Fwd: cvs commit: ports/java/linux-sun-jdk14 Makefile Date: Thu, 29 Aug 2002 23:56:20 +0200 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org FYI ---------- Forwarded Message ---------- Subject: cvs commit: ports/java/linux-sun-jdk14 Makefile Date: Thu, 29 Aug 2002 14:55:22 -0700 (PDT) From: Ernst de Haan To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org znerd 2002/08/29 14:55:22 PDT Modified files: java/linux-sun-jdk14 Makefile Log: Printing warning message since this JDK is unstable. The message is displayed before any targets. The message displayed is: This JDK is currently unstable, especially when run as a non-root user. You are advised to use either the Sun JDK 1.3 for Linux (${PORTSDIR}/java/linux-sun-jdk13) or the FreeBSD JDK 1.3 (${PORTSDIR}/java/jdk13) instead. Pointed out by: Yuri Khotyaintsev Revision Changes Path 1.14 +5 -0 ports/java/linux-sun-jdk14/Makefile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 29 18:26:39 2002 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 D91BE37B400; Thu, 29 Aug 2002 18:26:36 -0700 (PDT) Received: from nemesis.supernews.net (nemesis.ranger.supernews.net [216.168.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9553943E65; Thu, 29 Aug 2002 18:26:36 -0700 (PDT) (envelope-from ade@freebsd.org) Received: from cs666852-28.austin.rr.com ([66.68.52.28] helo=[10.0.0.2] ident=ident) by nemesis.supernews.net with esmtp (Exim 3.36 #1) id 17kaYW-000FcF-00; Fri, 30 Aug 2002 01:26:36 +0000 User-Agent: Microsoft-Entourage/10.1.0.2006 Date: Thu, 29 Aug 2002 20:26:39 -0500 Subject: Re: Repocopy request: www/jakarta-tomcat4 -> www/jakarta-tomcat4-devel From: Ade Lovett To: Ernst de Haan , , Cc: Message-ID: In-Reply-To: <200208291858.UAA13744@smtp.hccnet.nl> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 08/29/02 13:58, "Ernst de Haan" wrote: > Hiereby I request that the following repocopy is performed: > > from: ports/www/jakarta-tomcat4 > to: ports/www/jakarta-tomcat4-devel > > The latter port will install a release from the development branch of Tomcat > 4. See the 'Tomcat 4.x' section on the following page: I'm really not keen on mixing version numbers and suffixes (like '-devel', '-old') etc.. etc.. Assuming I'm reading the site right, there are 3 things on the go right now: 4.x currently jakarta-tomcat4 (will stall out at 4.x.* x<1) 4.1.x the refactoring project, what you're looking for here 5.x highly developmental. Seems to me that jakarta-tomcat41 might be more appropriate (especially given the existence of jakarta-tomcat3), and that -devel be reserved for tracking snaps (or whatever) of currently-what-will-be-5.x, if such a port were to exist. -aDe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Aug 30 4: 4:15 2002 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 BE5B837B400; Fri, 30 Aug 2002 04:04:12 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE72843E6E; Fri, 30 Aug 2002 04:04:11 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g7UB4MYU013307; Fri, 30 Aug 2002 13:04:22 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g7UB4LVn013306; Fri, 30 Aug 2002 13:04:21 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Ade Lovett , , Subject: Re: Repocopy request: www/jakarta-tomcat4 -> www/jakarta-tomcat4-devel Date: Fri, 30 Aug 2002 13:04:21 +0200 User-Agent: KMail/1.4.3 Cc: References: In-Reply-To: X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208301304.21544.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > I'm really not keen on mixing version numbers and suffixes (like > '-devel', '-old') etc.. etc.. > > Assuming I'm reading the site right, there are 3 things on the go right > now: > > 4.x currently jakarta-tomcat4 (will stall out at 4.x.* x<1) > 4.1.x the refactoring project, what you're looking for here > 5.x highly developmental. Correct. > Seems to me that jakarta-tomcat41 might be more appropriate (especially > given the existence of jakarta-tomcat3), and that -devel be reserved for > tracking snaps (or whatever) of currently-what-will-be-5.x, if such a > port were to exist. Okay, that sounds a lot better. Only small concern I have with that is that '41' is fouty-one, not 4-dot-1. We might get a Jakarta Tomcat release 41.0 some day :) Anyway, I agree that 'jakarta-tomcat-41' is probably the best right now, considering the constraints. Could such a repocopy be performed? Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Aug 30 7:52:17 2002 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 8A3AB37B400; Fri, 30 Aug 2002 07:52:15 -0700 (PDT) Received: from nemesis.supernews.net (nemesis.ranger.supernews.net [216.168.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47F6943E4A; Fri, 30 Aug 2002 07:52:15 -0700 (PDT) (envelope-from ade@freebsd.org) Received: from cs666852-28.austin.rr.com ([66.68.52.28] helo=[10.0.0.2] ident=ident) by nemesis.supernews.net with esmtp (Exim 3.36 #1) id 17kn8B-000HVA-00; Fri, 30 Aug 2002 14:52:15 +0000 User-Agent: Microsoft-Entourage/10.1.0.2006 Date: Fri, 30 Aug 2002 09:52:19 -0500 Subject: Repocopy request: www/jakarta-tomcat4 -> www/jakarta-tomcat41 From: Ade Lovett To: Ernst de Haan , , Cc: Message-ID: In-Reply-To: <200208301304.21544.znerd@FreeBSD.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi cvs crew :) ports/www/jakarta-tomcat4 -> ports/www/jakarta-tomcat41 Toodles. Thanks, -aDe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Aug 30 21:33:39 2002 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 CFED037B400 for ; Fri, 30 Aug 2002 21:33:37 -0700 (PDT) Received: from plato.webprogrammers.net (plato.webprogrammers.net [204.221.75.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31BF243E42 for ; Fri, 30 Aug 2002 21:33:37 -0700 (PDT) (envelope-from jstepka@webprogrammers.net) Received: from jstepkaxp (c66.191.144.249.roc.mn.charter.com [66.191.144.249]) by plato.webprogrammers.net (8.12.5/8.12.3) with ESMTP id g7V4WW15014310 for ; Fri, 30 Aug 2002 23:32:32 -0500 (CDT) (envelope-from jstepka@webprogrammers.net) Message-ID: <002e01c250a7$2efdf130$1f01010a@jstepkaxp> From: "Justen Stepka" To: Subject: why does the 1.3 jdk always fail for me? Date: Fri, 30 Aug 2002 23:30:49 -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 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >> Patch patch-..::ex::plugin-plugin::src::motif::resources::ja::sunw_java_plug failed to apply cleanly *** Error code 1 Stop in /usr/ports/java/jdk13 Does anyone else run into this problem every time they try to compile? It may not be this patch, but somewhere else in the process I always run into the same type of problems :(. Justen Stepka To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Aug 30 21:53:28 2002 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 D4E6337B400 for ; Fri, 30 Aug 2002 21:53:26 -0700 (PDT) Received: from web21506.mail.yahoo.com (web21506.mail.yahoo.com [66.163.169.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 8554843E42 for ; Fri, 30 Aug 2002 21:53:26 -0700 (PDT) (envelope-from javamail02@yahoo.com) Message-ID: <20020831045326.83085.qmail@web21506.mail.yahoo.com> Received: from [24.68.34.36] by web21506.mail.yahoo.com via HTTP; Fri, 30 Aug 2002 21:53:26 PDT Date: Fri, 30 Aug 2002 21:53:26 -0700 (PDT) From: javamail02 Subject: JVM processes not dying (Linux Blackdown 1.3.1) To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, I'm running Jboss 3.0 with the Linux Blackdown 1.3.1 JDK port and I'm finding that upon shutting down Jboss that some of the processes of the JVM remain. If I attempt to fire up Jboss again, this seems to cause errors on start-up. I attempt to kill these processes, but am either unable to (using kill), or kill reports that there is no such process. I am using the classic VM, not hotspot. Has anyone else noticed this? What might be the problem? Would anyone recommend a different VM for running Jboss on FreeBSD? Performance tests seem to indicate that Blackdown is the best for scalability. Please let me know if this is not appropriate content for this list. Thanks, Jeff __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message