From owner-freebsd-java@FreeBSD.ORG Sun Dec 19 04:56:50 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A8AB16A4CE for ; Sun, 19 Dec 2004 04:56:50 +0000 (GMT) Received: from quark.rcac.purdue.edu (quark.rcac.purdue.edu [128.210.189.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7C4843D3F for ; Sun, 19 Dec 2004 04:56:49 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from quark.rcac.purdue.edu (localhost [127.0.0.1]) iBJ4unHJ077812 for ; Sat, 18 Dec 2004 23:56:49 -0500 (EST) (envelope-from linimon@FreeBSD.org) Date: Sat, 18 Dec 2004 23:56:49 -0500 (EST) Message-Id: <200412190456.iBJ4unHJ077812@quark.rcac.purdue.edu> From: linimon@FreeBSD.org To: java@FreeBSD.org Subject: FreeBSD ports that you maintain which are currently marked forbidden X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2004 04:56:50 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we are attempting to notify maintainers of ports that are marked as "forbidden" in their Makefiles. Often, these ports are so marked due to security concerns, such as known exploits. An overview of the port, including errors seen on the build farm, is included below. portname: java/linux-blackdown-jdk13 forbidden because: Vulnerabilities in the browser plugin build errors: none. overview: http://portsmon.firepipe.net/portoverview.py?category=java&portname=linux-blackdown-jdk13 portname: java/linux-ibm-jdk13 forbidden because: Vulnerabilities in the browser plugin build errors: none. overview: http://portsmon.firepipe.net/portoverview.py?category=java&portname=linux-ibm-jdk13 If this problem is one that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-java@FreeBSD.ORG Sun Dec 19 10:45:15 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4AF516A4CE for ; Sun, 19 Dec 2004 10:45:15 +0000 (GMT) Received: from mail.bemo.waw.pl (bemo.waw.pl [213.241.37.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7290143D4C for ; Sun, 19 Dec 2004 10:45:15 +0000 (GMT) (envelope-from rob@bemo.waw.pl) Received: from [192.168.1.32] (rob.bemo.waw.pl [192.168.1.32]) by mail.bemo.waw.pl (Compinet) with ESMTP id 85B65523 for ; Sun, 19 Dec 2004 11:49:17 +0100 (CET) Message-ID: <41C569BF.9050402@bemo.waw.pl> Date: Sun, 19 Dec 2004 11:45:03 +0000 From: rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: I would like post my massage on freebsd-java -- Porting Java to FreeBSD X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2004 10:45:16 -0000 I would like post my massage on freebsd-java -- Porting Java to FreeBSD best regards Robert From owner-freebsd-java@FreeBSD.ORG Sun Dec 19 23:55:53 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07DA616A4CF for ; Sun, 19 Dec 2004 23:55:53 +0000 (GMT) Received: from ns1.netavail.net (ns1.netavail.net [66.45.229.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id A60DA43D31 for ; Sun, 19 Dec 2004 23:55:50 +0000 (GMT) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (cpe-065-184-047-009.nc.rr.com [65.184.47.9]) by ns1.netavail.net (Postfix) with ESMTP id F3BD73C063 for ; Sun, 19 Dec 2004 18:55:48 -0500 (EST) Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.13.1/8.13.1) with ESMTP id iBJNtifZ082595 for ; Sun, 19 Dec 2004 18:55:44 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.13.1/8.13.1/Submit) id iBJNtiKj082594 for freebsd-java@freebsd.org; Sun, 19 Dec 2004 18:55:44 -0500 (EST) (envelope-from brent) Date: Sun, 19 Dec 2004 18:55:44 -0500 From: Brent Verner To: freebsd-java Message-ID: <20041219235544.GA82543@rcfile.org> References: <20041218235642.GA69494@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041218235642.GA69494@rcfile.org> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.10-STABLE #31: Thu Nov 18 11:01:01 EST 2004 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mutt.rcfile.org Subject: Re: daemonctl/tomcat*ctl replacement X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2004 23:55:53 -0000 I've rewritten the xml parsing part of this and bumped to version 0.2...nothing like making your code public to motivate you to clean it up :-) Please read the following for a more detailed description of the program http://mutt.rcfile.org/daemonctl/readme.txt then if you're interested, download the port tarball. http://mutt.rcfile.org/daemonctl/daemonctl-port-0.2.tar.gz (the 0.1 files are actually a link to the 0.2 file...) b From owner-freebsd-java@FreeBSD.ORG Mon Dec 20 06:17:06 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51CC616A4CE; Mon, 20 Dec 2004 06:17:06 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18F7843D31; Mon, 20 Dec 2004 06:17:06 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5C12451380; Sun, 19 Dec 2004 22:17:05 -0800 (PST) Date: Sun, 19 Dec 2004 22:17:05 -0800 From: Kris Kennaway To: phantom@FreeBSD.org, java@FreeBSD.org Message-ID: <20041220061705.GA25187@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: [ports-i386@FreeBSD.org: jdk-1.4.2p7 pkg-plist errors on i386 5] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 06:17:06 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear port maintainer, The following port has an incomplete pkg-plist, or other errors in the files installed by the port. This may mean that the package is incomplete or non-functional; at the very least, your port does not leave the filesystem in the same state it was before the port was installed. Can you please investigate? In the near future, this condition will be treated as an error on the package cluster, which means that the package will not be made available on the ftp site. Thanks, Kris "Ports Janitor" Kennaway ----- Forwarded message from User Ports-i386 ----- X-Original-To: kkenn@localhost Delivered-To: kkenn@localhost.obsecurity.org Delivered-To: kris@freebsd.org Date: Mon, 20 Dec 2004 06:13:45 GMT From: User Ports-i386 To: krion@FreeBSD.org, kris@FreeBSD.org Subject: jdk-1.4.2p7 pkg-plist errors on i386 5 X-UIDL: X%!#!3Kl!!%>h"!`F$"! X-Bogosity: No, tests=3Dbogofilter, spamicity=3D0.000000, version=3D0.92.8 building jdk-1.4.2p7 on gohan39.freebsd.org in directory /x/tmp/5/chroot/66616 maintained by: phantom@FreeBSD.org port directory: /usr/ports/java/jdk14 For the full build log, see http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/a.5.2004121802/jdk-= 1.4.2p7.log list of files present before this port was installed but missing after it w= as deinstalled) =2E/usr/local/share/doc/java missing ----- End forwarded message ----- --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBxm5gWry0BWjoQKURAqYaAJsEeELew/C/O5eCRSfdL+jShCMA+QCgr6id e6ItYGRjgX4W9fFC4LHI4dY= =qP1E -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu-- From owner-freebsd-java@FreeBSD.ORG Mon Dec 20 07:46:13 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BEBA16A4CE for ; Mon, 20 Dec 2004 07:46:13 +0000 (GMT) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27B4A43D39 for ; Mon, 20 Dec 2004 07:46:12 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id iBK8JcT5017527; Mon, 20 Dec 2004 10:19:38 +0200 Received: from localhost (achill@localhost)iBK8Jbpk017523; Mon, 20 Dec 2004 10:19:38 +0200 Date: Mon, 20 Dec 2004 10:19:37 +0200 (EET) From: Achilleus Mantzios To: Nick Sayer In-Reply-To: <4885A5C3-5041-11D9-A430-000A959D8ECE@kfu.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT cc: freebsd-java@freebsd.org Subject: Re: Still cannot build native JDK 1.4 with FreeBSD 5.3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 07:46:13 -0000 O Nick Sayer έγραψε στις Dec 17, 2004 : > >Have you tried to verify that your linux linux-sun-jdk-1.4.2.0x is > >working indeed? (try some apps, especially javac) > > Yup. It works just fine. I use it every day for all sorts of things, > given that I can't use the last native build any more because of file > descriptor leaks (the last successful build I did was with 5.2.1). > > >Have you tried make clean and start all over the build? > > Dozens of times. It fails the exact same way every time, no matter what > I try to change. > > >Also a check for mem,disk,CPU overheating, would be very good. > > I really, really, really doubt it. > > 1. It fails exactly the same way every time. > > 2. Nothing else I do on this machine, which includes some fairly > intensive things (building all of KDE, for example) has failed. > > 3. The machine is a, more or less, out-of-the-box IBM desktop machine > without bizarro 3rd party RAM or anything like that. Then maybe re-cvsup again. > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > -- -Achilleus From owner-freebsd-java@FreeBSD.ORG Mon Dec 20 11:02:10 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C4B016A4DB for ; Mon, 20 Dec 2004 11:02:10 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 769BC43D2D for ; Mon, 20 Dec 2004 11:02:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBKB29aB047069 for ; Mon, 20 Dec 2004 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBKB28wr047063 for freebsd-java@freebsd.org; Mon, 20 Dec 2004 11:02:08 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 20 Dec 2004 11:02:08 GMT Message-Id: <200412201102.iBKB28wr047063@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 11:02:10 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/05/13] ports/38018 java www/jakarta-tomcat4: make passing of JVM f [2002/05/13] ports/38020 java www/jakarta-tomcat4: stop tomcat via java o [2004/05/01] java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes o [2004/07/13] java/68972 java unpack crashes during make install of lin o [2004/07/27] ports/69675 java Eclipse slow typing o [2004/08/30] java/71146 java jdk 1.4.2-p6 jboss,eclipse problems o [2004/09/22] ports/72014 java Eclipse doesn't work (SigBus 10) if it ha o [2004/09/28] java/72151 java JVM crash on 5.2.1-R o [2004/10/20] ports/72902 java Make of /usr/ports/java/jdk14 fails with o [2004/10/29] ports/73279 java www/firefox + java crash o [2004/12/06] ports/74760 java javavmwrapper messes up amavisd-new 11 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2003/09/16] ports/56928 java jce-aba port should install to $JAVA_HOME o [2004/02/14] java/62837 java linux-sun-jdk14 executables hang with COM o [2004/04/08] ports/65335 java [PATCH] java/jdk14: use bsd.java.mk for J o [2004/08/11] java/70292 java jdk14 compile problem f [2004/11/24] ports/74344 java [proposal] tomcat41ctl: support for passi 5 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Dec 20 11:53:57 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A85116A4CE for ; Mon, 20 Dec 2004 11:53:57 +0000 (GMT) Received: from ipe.cnpm.embrapa.br (ipe.cnpm.embrapa.br [200.136.111.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3684643D5C for ; Mon, 20 Dec 2004 11:53:52 +0000 (GMT) (envelope-from pan@cnpm.embrapa.br) Received: from localhost (localhost.cnpm.embrapa.br [127.0.0.1]) by ipe.cnpm.embrapa.br (Postfix) with ESMTP id 7BBBA8486F for ; Mon, 20 Dec 2004 09:53:50 -0200 (BRST) Received: from [200.136.111.44] (oliveira.cnpm.embrapa.br [200.136.111.44]) by ipe.cnpm.embrapa.br (Postfix) with ESMTP id F03F68484E for ; Mon, 20 Dec 2004 09:53:48 -0200 (BRST) Message-ID: <41C6BD52.6000403@cnpm.embrapa.br> Date: Mon, 20 Dec 2004 09:53:54 -0200 From: "Carlos F. A. Paniago" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; pt-BR; rv:1.7.3) Gecko/20041206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd 0.1 Subject: $FreeBSD: ports/java/jdk14/Makefile,v 1.84 2004/12/17 07:02:50 glewis Exp X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 11:53:57 -0000 In the Java ports: $FreeBSD: ports/java/jdk14/Makefile,v 1.84 2004/12/17 07:02:50 glewis Exp, is not compiling. The problem is a "printf" file without format, we need after each "printf" to change to "printf %s" that it will work. Paniago From owner-freebsd-java@FreeBSD.ORG Mon Dec 20 12:00:28 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D24716A4CE; Mon, 20 Dec 2004 12:00:28 +0000 (GMT) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FACF43D46; Mon, 20 Dec 2004 12:00:27 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id iBKCXtT5018060; Mon, 20 Dec 2004 14:33:55 +0200 Received: from localhost (achill@localhost)iBKCXtua018056; Mon, 20 Dec 2004 14:33:55 +0200 Date: Mon, 20 Dec 2004 14:33:55 +0200 (EET) From: Achilleus Mantzios To: FreeBSD bugmaster In-Reply-To: <200412201102.iBKB28wr047063@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT cc: freebsd-java@freebsd.org Subject: Re: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 12:00:28 -0000 Shouldn't we close java/71146 ? O FreeBSD bugmaster έγραψε στις Dec 20, 2004 : > Current FreeBSD problem reports > Critical problems > Serious problems > > S Submitted Tracker Resp. Description > ------------------------------------------------------------------------------- > f [2002/05/13] ports/38018 java www/jakarta-tomcat4: make passing of JVM > f [2002/05/13] ports/38020 java www/jakarta-tomcat4: stop tomcat via java > o [2004/05/01] java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes > o [2004/07/13] java/68972 java unpack crashes during make install of lin > o [2004/07/27] ports/69675 java Eclipse slow typing > o [2004/08/30] java/71146 java jdk 1.4.2-p6 jboss,eclipse problems > o [2004/09/22] ports/72014 java Eclipse doesn't work (SigBus 10) if it ha > o [2004/09/28] java/72151 java JVM crash on 5.2.1-R > o [2004/10/20] ports/72902 java Make of /usr/ports/java/jdk14 fails with > o [2004/10/29] ports/73279 java www/firefox + java crash > o [2004/12/06] ports/74760 java javavmwrapper messes up amavisd-new > > 11 problems total. > > Non-critical problems > > S Submitted Tracker Resp. Description > ------------------------------------------------------------------------------- > s [2003/09/16] ports/56928 java jce-aba port should install to $JAVA_HOME > o [2004/02/14] java/62837 java linux-sun-jdk14 executables hang with COM > o [2004/04/08] ports/65335 java [PATCH] java/jdk14: use bsd.java.mk for J > o [2004/08/11] java/70292 java jdk14 compile problem > f [2004/11/24] ports/74344 java [proposal] tomcat41ctl: support for passi > > 5 problems total. > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > -- -Achilleus From owner-freebsd-java@FreeBSD.ORG Mon Dec 20 13:32:07 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 298B716A4CE for ; Mon, 20 Dec 2004 13:32:07 +0000 (GMT) Received: from foxxy.triohost.com (foxxy.triohost.com [65.110.50.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFB9F43D4C for ; Mon, 20 Dec 2004 13:32:06 +0000 (GMT) (envelope-from howardjp@foxxy.triohost.com) Received: from foxxy.triohost.com (localhost.localdomain [127.0.0.1]) by foxxy.triohost.com (8.12.8/8.12.8) with ESMTP id iBKDW8Af013475 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 20 Dec 2004 08:32:08 -0500 Received: (from howardjp@localhost) by foxxy.triohost.com (8.12.8/8.12.8/Submit) id iBKDW8HD013472; Mon, 20 Dec 2004 08:32:08 -0500 Date: Mon, 20 Dec 2004 08:32:08 -0500 Message-Id: <200412201332.iBKDW8HD013472@foxxy.triohost.com> To: java@freebsd.org References: <200412201332.iBKDW5Ae013432@foxxy.triohost.com> In-Reply-To: <200412201332.iBKDW5Ae013432@foxxy.triohost.com> X-Loop: howardjpbot@vocito.com From: ports@vocito.com Received-SPF: pass (foxxy.triohost.com: localhost is always allowed.) Subject: Re: [FreeBSD] Re: Hi X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 13:32:07 -0000 At this time, all mail sent to ports@vocito.com is being rejected due to the amount of spam received at this address. As of June 2004, no non-UCE had been received in more than one year. To contact the original addressee, please use the web form: http://www.jameshoward.us/component/option,com_contact/Itemid,3/ I am very sorry for any inconvenience this has caused. Thank you, James P. Howard, II From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 05:07:13 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D575E16A4CE for ; Tue, 21 Dec 2004 05:07:13 +0000 (GMT) Received: from quack.kfu.com (quack.kfu.com [64.168.71.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74ED643D2D for ; Tue, 21 Dec 2004 05:07:13 +0000 (GMT) (envelope-from nsayer@kfu.com) Received: from [IPv6:2002:40a8:47d1:1:206:25ff:fe3d:aa11] (minerva.kfu.com [IPv6:2002:40a8:47d1:1:206:25ff:fe3d:aa11]) (authenticated bits=0) by quack.kfu.com (8.12.10/8.12.10) with ESMTP id iBL57CCg054088 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 20 Dec 2004 21:07:12 -0800 (PST) (envelope-from nsayer@kfu.com) X-Message-Flag: Why aren't you using a Macintosh yet? Mime-Version: 1.0 (Apple Message framework v619) Message-Id: <2C28AF40-530E-11D9-A33C-000A959D8ECE@kfu.com> Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-5-744380439; protocol="application/pkcs7-signature" To: freebsd-java@freebsd.org From: Nick Sayer Date: Mon, 20 Dec 2004 21:07:11 -0800 X-Mailer: Apple Mail (2.619) X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: SOLVED: was Still cannot build native JDK1.4 with FreeBSD 5.3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 05:07:14 -0000 --Apple-Mail-5-744380439 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Turns out that deinstalling and reinstalling the JDK still left behind a third party extension library that conflicts with bootstrapping the JDK. Problem solved. Sorry if my tone seemed strident or anything. It was just extraordinarily baffling. --Apple-Mail-5-744380439-- From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 05:53:46 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE95616A4CE for ; Tue, 21 Dec 2004 05:53:46 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DF6A43D31 for ; Tue, 21 Dec 2004 05:53:46 +0000 (GMT) (envelope-from mnriem@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so301204wra for ; Mon, 20 Dec 2004 21:53:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=nywH6kB940SiWJT8OhNCdiLh1Y94rVwMYoTiz3k/mqJC19kSEIprB+KcpBHY3meNqmB8x59Yumwpi/0e15SzoVWdgma3dHKj9rFBvnosnE1eFzTk+U1qNMcM9l7tm4Pu+rDJCmG3Yu56yz9zK+NB4UexLSjJYqJyTbGnfNjPfss= Received: by 10.54.24.29 with SMTP id 29mr258648wrx; Mon, 20 Dec 2004 21:53:45 -0800 (PST) Received: by 10.54.10.23 with HTTP; Mon, 20 Dec 2004 21:53:45 -0800 (PST) Message-ID: <37919c3104122021533cd307ee@mail.gmail.com> Date: Mon, 20 Dec 2004 23:53:45 -0600 From: Manfred Riem To: Nick Sayer In-Reply-To: <2C28AF40-530E-11D9-A33C-000A959D8ECE@kfu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <2C28AF40-530E-11D9-A33C-000A959D8ECE@kfu.com> cc: freebsd-java@freebsd.org Subject: Re: SOLVED: was Still cannot build native JDK1.4 with FreeBSD 5.3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Manfred Riem List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 05:53:47 -0000 Hi Nick, Can you tell us which extension library? Kind regards, Manfred N. Riem mnriem@gmail.com On Mon, 20 Dec 2004 21:07:11 -0800, Nick Sayer wrote: > Turns out that deinstalling and reinstalling the JDK still left behind > a third party extension library that conflicts with bootstrapping the > JDK. > > Problem solved. > > Sorry if my tone seemed strident or anything. It was just > extraordinarily baffling. > > -- Manfred N. Riem mnriem@gmail.com From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 06:05:02 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACE2F16A4CE; Tue, 21 Dec 2004 06:05:02 +0000 (GMT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCAAA43D48; Tue, 21 Dec 2004 06:05:01 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id C5C455644D; Tue, 21 Dec 2004 19:04:59 +1300 (NZDT) To: FreeBSD-gnats-submit@freebsd.org From: Jonathan Chen X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20041221060459.C5C455644D@chen.org.nz> Date: Tue, 21 Dec 2004 19:04:59 +1300 (NZDT) cc: freebsd-java@freebsd.org Subject: JBoss4 update X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jonathan Chen List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 06:05:02 -0000 >Submitter-Id: current-users >Originator: Jonathan Chen >Organization: >Confidential: no >Synopsis: JBoss4 update >Severity: non-critical >Priority: medium >Category: ports >Class: maintainer-update >Release: FreeBSD 5.3-STABLE i386 >Environment: System: FreeBSD osiris.chen.org.nz 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Dec 20 23:24:42 NZDT 2004 root@osiris.chen.org.nz:/usr/obj/usr/src/sys/GENERIC i386 >Description: Yet another JBoss4 update: 1. fix cold-boot startup failure. 2. add note on starting up JBoss4 with rcNG. 3. add new "-config" option to jboss4ctl for JBoss4 startup config. >How-To-Repeat: >Fix: diff -ruN /usr/ports/java/jboss4/Makefile ./Makefile --- /usr/ports/java/jboss4/Makefile Tue Dec 21 07:24:57 2004 +++ ./Makefile Tue Dec 21 18:26:45 2004 @@ -7,7 +7,7 @@ PORTNAME= ${APP_TITLE:L} PORTVERSION= 4.0.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff -ruN /usr/ports/java/jboss4/files/daemonctl.c ./files/daemonctl.c --- /usr/ports/java/jboss4/files/daemonctl.c Tue Dec 21 07:24:58 2004 +++ ./files/daemonctl.c Tue Dec 21 15:45:21 2004 @@ -27,17 +27,12 @@ #define TRUE 1 #define FALSE 0 -/* 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 @@ -56,18 +51,20 @@ Function declarations. */ static void printUsage (void); -static int openPIDFile (void); -static int readPID (int); -static void writePID (int file, int pid); -static void start (int optcount, char * opts []); +static int readPID (void); +static void writePID (int pid); +static void clearPID (void); +static void start (int javaOpt, char * javaArgs [], int jbossOpt, char * jbossArgs []); static void stop (void); -static void restart (int optcount, char * opts []); +static void restart (int javaOpt, char * javaArgs [], int jbossOpt, char * jbossArgs []); static void logOutput (char *); /* Globals */ static int isQuiet = FALSE; +static char * optQuiet = "-q", /* quiet option */ + * optConfig = "-config"; /* jboss configuration option */ /** * Main function. This function is called when this program is executed. @@ -84,10 +81,9 @@ int argc, char *argv []) { - /* Declare variables, like all other good ANSI C programs do :) */ - int i, jopt; - char *argument, **jargs; + int i, javaOpt, jbossOpt; + char *argument, **javaArgs, **jbossArgs; /* Parse the arguments */ if (argc < 2) @@ -101,26 +97,58 @@ setgid (getegid ()); /* - Build up java-option block. + Build up java and jboss option blocks. */ - jopt = 0; + javaOpt = jbossOpt = 0; for (i = 1; i < argc; i++) { - if (strcmp (argv [i], "-q") == 0) + if (strcmp (argv [i], optQuiet) == 0) + { isQuiet = TRUE; - else if (*argv [i] == '-') - jopt++; + + } else if (strcmp (argv [i], optConfig) == 0) + { + jbossOpt += 2; + if (++i >= argc) + { + printUsage (); + return ERR_ILLEGAL_ARGUMENT; + } + + } else if (*argv [i] == '-') + { + javaOpt++; + } + } + if (javaOpt == 0) + javaArgs = NULL; + else + { + int j = 0; + javaArgs = malloc (sizeof (char *) * javaOpt); + for (i = 0; i < argc; i++) + { + if (strcmp (argv [i], optQuiet) && + strcmp (argv [i], optConfig) && + *argv [i] == '-') + { + javaArgs [j++] = argv [i]; + } + } } - if (jopt == 0) - jargs = NULL; + if (jbossOpt == 0) + jbossArgs = NULL; else { int j = 0; - jargs = malloc (sizeof (char *) * jopt); + jbossArgs = malloc (sizeof (char *) * jbossOpt); for (i = 0; i < argc; i++) { - if (strcmp (argv [i], "-q") && *argv [i] == '-') - jargs [j++] = argv [i]; + if (strcmp (argv [i], optConfig) == 0) + { + jbossArgs [j++] = "-c"; + jbossArgs [j++] = argv [++i]; + } } } @@ -130,14 +158,15 @@ argument = argv [argc - 1]; if (strcmp ("start", argument) == 0) { - start (jopt, jargs); + start (javaOpt, javaArgs, jbossOpt, jbossArgs); } else if (strcmp ("stop", argument) == 0) { stop (); + } else if (strcmp ("restart", argument) == 0) { - restart (jopt, jargs); + restart (javaOpt, javaArgs, jbossOpt, jbossArgs); } else { fprintf (stderr, "%%CONTROL_SCRIPT_NAME%%: Illegal argument \"%s\".\n", argument); @@ -145,134 +174,85 @@ exit (ERR_ILLEGAL_ARGUMENT); } - return 0; + return EXIT_SUCCESS; } - /** * Prints usage information to stdout. */ static void printUsage (void) { - printf ("Usage: %%CONTROL_SCRIPT_NAME%% [java-options] {start|stop|restart}\n"); + printf ("Usage: %%CONTROL_SCRIPT_NAME%% [java-options] [-config jbossconfig] {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. + * Reads a PID from the PID file. * * @return - * the file handle. + * the PID, or -1 if the file was empty. */ static int -openPIDFile (void) +readPID (void) { + FILE * file; + int pid; - int file; - - /* Attempt to open the PID file */ - file = open ("%%PID_FILE%%", O_RDWR); - if (file < 0) { + logOutput (">> Reading PID file (%%PID_FILE%%)..."); + file = fopen ("%%PID_FILE%%", "r"); + if (!file) + { logOutput (" [ FAILED ]\n"); - fprintf (stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to open %%PID_FILE%% for reading and writing: "); - perror (NULL); + perror ("%%CONTROL_SCRIPT_NAME%%: Unable to open %%PID_FILE%% for reading: "); exit (ERR_PID_FILE_NOT_FOUND); } + if (fscanf (file, "%d", &pid) < 1) + pid = -1; + fclose (file); - 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. - */ -static 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) { - logOutput (" [ 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 { - logOutput (" [ 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); - } - } logOutput (" [ 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. */ static void writePID ( - int file, int pid) { - - char *buffer; - int nbytes; - - /* Check preconditions */ - assert (file > 0); - assert (pid > 0); + FILE * file; logOutput (">> Writing PID file..."); + file = fopen ("%%PID_FILE%%", "w"); + if (!file) + { + logOutput (" [ FAILED ]\n"); + perror ("%%CONTROL_SCRIPT_NAME%%: Unable to open %%PID_FILE%% for writing: "); + exit (ERR_PID_FILE_NOT_FOUND); + } + fprintf (file, "%d\n", pid); + fclose (file); - lseek (file, (off_t) 0, SEEK_SET); - ftruncate (file, (off_t) 0); - nbytes = asprintf (&buffer, "%d\n", pid); - write (file, buffer, nbytes); logOutput (" [ DONE ]\n"); } +/** + Truncate the PID file. + */ +static void +clearPID (void) +{ + if (truncate ("%%PID_FILE%%", 0) != 0) + { + perror ("%%CONTROL_SCRIPT_NAME%%: Unable to clear %%PID_FILE%%: "); + exit (ERR_PID_FILE_NOT_FOUND); + } +} /** * Checks if the specified process is running. @@ -287,7 +267,6 @@ existsProcess ( int pid) { - int result; /* Check preconditions */ @@ -297,14 +276,9 @@ result = kill (pid, 0); /* If the result is 0, then the process exists */ - if (result == 0) { - return 1; - } else { - return 0; - } + return result == 0; } - /** * Kills the process identified by the specified ID. * @@ -315,7 +289,6 @@ killProcess ( int pid) { - int result; unsigned int waited; unsigned int forced; @@ -347,13 +320,13 @@ /* If the process still exists, then have no mercy and kill it */ forced = 0; - if (result == 1) { - + if (result == 1) + { /* Force the process to die */ result = kill (pid, SIGKILL); if (result == 0) { forced = 1; - logOutput (" [ DONE ]\n"); + logOutput (" [ KILLED ]\n"); fprintf (stderr, "%%CONTROL_SCRIPT_NAME%%: Process %d did not terminate within %%STOP_TIMEOUT%% sec. Killed.\n", pid); } else if (result != ESRCH) { logOutput (" [ FAILED ]\n"); @@ -373,27 +346,28 @@ */ static void start ( - int optcount, - char * opts []) + int javaOpt, + char * javaArgs [], + int jbossOpt, + char * jbossArgs []) { - int file; + int i, argc; + char ** argv; int pid; int result; int stdoutLogFile; int stderrLogFile; struct stat sb; - /* Open and read the PID file */ - logOutput (">> Reading PID file (%%PID_FILE%%)..."); - file = openPIDFile (); - pid = readPID (file); + pid = readPID (); logOutput (">> Starting %%APP_TITLE%% %%PORTVERSION%%..."); - if (pid != -1) { - + if (pid != -1) + { /* Check if the process actually exists */ result = existsProcess (pid); - if (result == 1) { + if (result == 1) + { logOutput (" [ FAILED ]\n"); fprintf (stderr, "%%CONTROL_SCRIPT_NAME%%: %%APP_TITLE%% %%PORTVERSION%% is already running, PID is %d.\n", pid); exit (ERR_ALREADY_RUNNING); @@ -474,19 +448,16 @@ lseek (stderrLogFile, (off_t) 0, SEEK_END); /* Split this process in two */ - pid = fork (); - if (pid == -1) { + switch (pid = fork ()) + { + case -1: logOutput (" [ FAILED ]\n"); fprintf (stderr, "%%CONTROL_SCRIPT_NAME%%: Unable to fork: "); perror (NULL); exit (ERR_FORK_FAILED); - } - - if (pid == 0) - { - int i, argc; - char **argv; + break; + case 0: /* Redirect stdout to log file */ dup2 (stdoutLogFile, STDOUT_FILENO); @@ -494,29 +465,31 @@ dup2 (stderrLogFile, STDERR_FILENO); /* TODO: Support redirection of both stdout and stderr to the same - file using pipe (2) */ + file using pipe (2) */ /* - Build the argument vector, with the java-options if any. + Build the argument vector, with the java/jboss options if any. */ - argv = malloc (sizeof (char *) * (optcount + 5)); + argv = malloc (sizeof (char *) * (javaOpt + jbossOpt + 5)); argc = 0; argv [argc++] = "%%JAVA%%"; - for (i = 0; i < optcount; i++) - argv [argc++] = opts [i]; + for (i = 0; i < javaOpt; i++) + argv [argc++] = javaArgs [i]; argv [argc++] = "-cp"; argv [argc++] = "%%JAVA_CP%%"; argv [argc++] = "%%JAVA_MAIN%%"; + for (i = 0; i < jbossOpt; i++) + argv [argc++] = jbossArgs [i]; argv [argc++] = NULL; /* Execute the command */ execv (argv [0], argv); - perror (NULL); - } else - { + break; + + default: logOutput (" [ DONE ]\n"); - writePID (file, pid); + writePID (pid); } } @@ -526,28 +499,26 @@ static void stop (void) { - - int file; int pid; - /* Open and read the PID file */ - logOutput (">> Reading PID file (%%PID_FILE%%)..."); - file = openPIDFile (); - pid = readPID (file); + pid = readPID (); logOutput (">> Checking if %%APP_TITLE%% %%PORTVERSION%% is running..."); /* If there is a PID, see if the process still exists */ - if (pid != -1) { + if (pid != -1) + { int result = kill (pid, 0); - if (result != 0 && errno == ESRCH) { - ftruncate (file, (off_t) 0); + if (result != 0 && errno == ESRCH) + { + clearPID (); pid = -1; } } /* If there is no running process, produce an error */ - if (pid == -1) { + if (pid == -1) + { logOutput (" [ FAILED ]\n"); fprintf (stderr, "%%CONTROL_SCRIPT_NAME%%: %%APP_TITLE%% %%PORTVERSION%% is currently not running.\n"); exit (ERR_NOT_RUNNING); @@ -556,9 +527,7 @@ /* Terminate the process */ killProcess (pid); - - /* Clear the PID file */ - ftruncate (file, (off_t) 0); + clearPID (); } @@ -567,11 +536,13 @@ */ static void restart ( - int optcount, - char * opts []) + int javaOpt, + char * javaArgs [], + int jbossOpt, + char * jbossArgs []) { stop (); - start (optcount, opts); + start (javaOpt, javaArgs, jbossOpt, jbossArgs); } /** diff -ruN /usr/ports/java/jboss4/files/startup.sh ./files/startup.sh --- /usr/ports/java/jboss4/files/startup.sh Tue Dec 21 07:24:58 2004 +++ ./files/startup.sh Tue Dec 21 15:27:10 2004 @@ -1,6 +1,4 @@ #!/bin/sh -# -*- mode: Fundamental; tab-width: 4; -*- -# ex:ts=4 # # %%APP_TITLE%% startup script. # @@ -15,6 +13,8 @@ # Set it to "YES" to enable %%APP_SHORTNAME%% # %%APP_SHORTNAME%%_flags (str): Set to "-server" by default. # Extra JVM flags. +# %%APP_SHORTNAME%%_config (str): Set to "" by default +# JBoss server config, eg {all|default|minimal|standard} # . %%RC_SUBR%% @@ -28,19 +28,31 @@ [ -z "$%%APP_SHORTNAME%%_enable" ] && %%APP_SHORTNAME%%_enable="NO" [ -z "$%%APP_SHORTNAME%%_flags" ] && %%APP_SHORTNAME%%_flags="-server" +[ -z "$%%APP_SHORTNAME%%_config" ] && %%APP_SHORTNAME%%_config="" %%APP_SHORTNAME%%_start () { checkyesno %%APP_SHORTNAME%%_enable && - %%CONTROL_SCRIPT%% -q ${%%APP_SHORTNAME%%_flags} start && + { + if [ ! -f ${pidfile} ] + then + touch ${pidfile} + chown %%USER%%:%%GROUP%% ${pidfile} + fi + + %%CONTROL_SCRIPT%% -q ${%%APP_SHORTNAME%%_flags} ${%%APP_SHORTNAME%%_configflag} ${%%APP_SHORTNAME%%_config} start && echo -n " %%APP_SHORTNAME%%" + } } %%APP_SHORTNAME%%_restart () { checkyesno %%APP_SHORTNAME%%_enable && - %%CONTROL_SCRIPT%% -q ${%%APP_SHORTNAME%%_flags} restart + %%CONTROL_SCRIPT%% -q ${%%APP_SHORTNAME%%_flags} ${%%APP_SHORTNAME%%_configflag} ${%%APP_SHORTNAME%%_config} restart } load_rc_config $name + +[ -n "${%%APP_SHORTNAME%%_config}" ] && %%APP_SHORTNAME%%_configflag="-config" + run_rc_command "$1" diff -ruN /usr/ports/java/jboss4/pkg-message ./pkg-message --- /usr/ports/java/jboss4/pkg-message Thu Jan 1 12:00:00 1970 +++ ./pkg-message Tue Dec 21 12:21:50 2004 @@ -0,0 +1,2 @@ +To run the JBoss4 server from startup, add jboss4_enable="YES" +in your /etc/rc.conf. Extra options can be found in startup script. From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 12:37:06 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A687C16A4CE for ; Tue, 21 Dec 2004 12:37:06 +0000 (GMT) Received: from smtp.nextra.cz (smtp.nextra.cz [195.70.130.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B69143D3F for ; Tue, 21 Dec 2004 12:37:06 +0000 (GMT) (envelope-from lskala@envinet.cz) Received: from localhost (glux.envinet.cz [213.210.158.150]) by smtp.nextra.cz (Postfix) with ESMTP id 657A06060 for ; Tue, 21 Dec 2004 13:37:04 +0100 (CET) Date: Tue, 21 Dec 2004 13:37:02 +0100 From: lukas skala Organization: envinet X-Priority: 3 (Normal) Message-ID: <13110534844.20041221133702@envinet.cz> To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: install problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: lukas skala List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 12:37:06 -0000 hi, i have downloaded diablo file: diablo-jdk-1.3.1.0.tar but i don't know to install it. i am using freebsd 4.10. command 'pkg_add diablo-jdk-1.3.1.0.tar' doesn't work. i have installed other packages by this command with succes (they were files with tbz or gz extensions). thnx for any advice. lukas skala envinet a.s. divize vyvoje software modrinova 1094 674 01 trebic tel: +420 568 409 862 (811) fax: +420 568 409 875 gsm: +420 724 461 062 icq: 66842878 eml: lskala@envinet.cz From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 13:59:00 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55E1816A4CE; Tue, 21 Dec 2004 13:59:00 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F0A943D53; Tue, 21 Dec 2004 13:59:00 +0000 (GMT) (envelope-from peadar@FreeBSD.org) Received: from freefall.freebsd.org (peadar@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBLDx0Ni034781; Tue, 21 Dec 2004 13:59:00 GMT (envelope-from peadar@freefall.freebsd.org) Received: (from peadar@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBLDwxlt034777; Tue, 21 Dec 2004 13:58:59 GMT (envelope-from peadar) Date: Tue, 21 Dec 2004 13:58:59 GMT From: Peter Edwards Message-Id: <200412211358.iBLDwxlt034777@freefall.freebsd.org> To: achill@matrix.gatewaynet.com, peadar@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: java/71146: jdk 1.4.2-p6 jboss,eclipse problems X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 13:59:00 -0000 Synopsis: jdk 1.4.2-p6 jboss,eclipse problems State-Changed-From-To: open->closed State-Changed-By: peadar State-Changed-When: Tue Dec 21 13:53:24 GMT 2004 State-Changed-Why: Problem analysed, patch committed. Originator reports problem fixed. http://www.freebsd.org/cgi/query-pr.cgi?pr=71146 From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 14:37:57 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5B1116A4CE; Tue, 21 Dec 2004 14:37:57 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FE7B43D53; Tue, 21 Dec 2004 14:37:57 +0000 (GMT) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (hq@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBLEbvjF041041; Tue, 21 Dec 2004 14:37:57 GMT (envelope-from hq@freefall.freebsd.org) Received: (from hq@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBLEbvvc041037; Tue, 21 Dec 2004 14:37:57 GMT (envelope-from hq) Date: Tue, 21 Dec 2004 14:37:57 GMT From: Herve Quiroz Message-Id: <200412211437.iBLEbvvc041037@freefall.freebsd.org> To: hq@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 14:37:57 -0000 Synopsis: Tomcat port overwrites server.xml config file Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-java Responsible-Changed-By: hq Responsible-Changed-When: Tue Dec 21 14:33:10 GMT 2004 Responsible-Changed-Why: Over to the freebsd-java community. Either we commit a fix rather quickly for this or we should add an entry in UPDATING to avoid this kind of trouble. Actually I think we should do both... http://www.freebsd.org/cgi/query-pr.cgi?pr=75348 From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 16:00:54 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D73516A4CE for ; Tue, 21 Dec 2004 16:00:54 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D59E043D53 for ; Tue, 21 Dec 2004 16:00:53 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBLG0rLJ077127 for ; Tue, 21 Dec 2004 16:00:53 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBLG0rPC077126; Tue, 21 Dec 2004 16:00:53 GMT (envelope-from gnats) Date: Tue, 21 Dec 2004 16:00:53 GMT Message-Id: <200412211600.iBLG0rPC077126@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Jiri Novak Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jiri Novak List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 16:00:54 -0000 The following reply was made to PR ports/75348; it has been noted by GNATS. From: Jiri Novak To: freebsd-gnats-submit@FreeBSD.org, bati@nostromo.cz Cc: Subject: Re: ports/75348: Tomcat port overwrites server.xml config file Date: Tue, 21 Dec 2004 16:58:05 +0100 Just a clarification on the issue - it does overwrite all the live config files: server.xml web-app.xml (which is not explicitly a bad thing to do, but...) tomcat-users.xml server-minimal.xml jk2.properties catalina.properties catalina.policy -- Jiri Novak From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 17:40:30 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70D7D16A4CE for ; Tue, 21 Dec 2004 17:40:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BB7643D4C for ; Tue, 21 Dec 2004 17:40:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBLHeU56090128 for ; Tue, 21 Dec 2004 17:40:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBLHeUcw090127; Tue, 21 Dec 2004 17:40:30 GMT (envelope-from gnats) Date: Tue, 21 Dec 2004 17:40:30 GMT Message-Id: <200412211740.iBLHeUcw090127@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: "Kang Liu" Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kang Liu List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 17:40:30 -0000 The following reply was made to PR ports/75348; it has been noted by GNATS. From: "Kang Liu" To: Cc: Subject: Re: ports/75348: Tomcat port overwrites server.xml config file Date: Wed, 22 Dec 2004 01:31:07 +0800 Could you please show me the steps to repeat the problem? I think all config files have been checked in the Makefile: @(cd ${WRKSRC};${FIND} conf -type f | ${SED} -e '/${CONF_EXT}/d') \ | while read a; do \ ${MV} ${WRKSRC}/$$a ${WRKSRC}/$$a.${CONF_EXT}; \ if [ ! -e "${APP_HOME}/$$a" ]; then \ ${ECHO_MSG} " Installing local configuration file: ${APP_HOME}/$$a"; \ ${CP} ${WRKSRC}/$$a.${CONF_EXT} ${WRKSRC}/$$a; \ else \ ${ECHO_MSG} " Preserving local configuration file: ${APP_HOME}/$$a"; \ fi; \ done From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 18:43:57 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0FC816A4CE for ; Tue, 21 Dec 2004 18:43:57 +0000 (GMT) Received: from ns1.netavail.net (ns1.netavail.net [66.45.229.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B6FE43D49 for ; Tue, 21 Dec 2004 18:43:55 +0000 (GMT) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (cpe-065-184-047-009.nc.rr.com [65.184.47.9]) by ns1.netavail.net (Postfix) with ESMTP id C2D9D3C063; Tue, 21 Dec 2004 13:43:53 -0500 (EST) Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.13.1/8.13.1) with ESMTP id iBLIhoPn014426; Tue, 21 Dec 2004 13:43:50 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.13.1/8.13.1/Submit) id iBLIhev8014422; Tue, 21 Dec 2004 13:43:40 -0500 (EST) (envelope-from brent) Date: Tue, 21 Dec 2004 13:43:40 -0500 From: Brent Verner To: Kang Liu Message-ID: <20041221184340.GA14170@rcfile.org> References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <200412211740.iBLHeUcw090127@freefall.freebsd.org> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.10-STABLE #31: Thu Nov 18 11:01:01 EST 2004 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mutt.rcfile.org cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 18:43:58 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline All, Would it help to create a script like the attached (I'd call it install-port-conf or install-conf)? What this would do (should you remove the echo from the cp lines...) is check for the currently installed package from ${PKGORIGIN} and check to see if the file to be installed has been modified from the original distributed file. If the user has modified it, then we'll leave it alone and create the new file as ${FILE}.new. If the user hasn't modified it, copy the old file to ${FILE}.old and install the new ${FILE} From the makefile it might be used as follows: INSTALL_CONF=/path/to/install-conf # probably shipped in port files # ... do-install: ${INSTALL_CONF} ${PKGORIGIN} ${WRKDIR}/server.xml ${APP_HOME}/conf/server.xml ${INSTALL_CONF} ${PKGORIGIN} ${WRKSRC}/web.xml ${APP_HOME}/conf/web.xml Of course, the attached script would need to be completed. The only thing it does reliably is tell you if a previously installed version of a file to be installed was modified by the user. Comments? brent --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=install-conf #!/bin/sh ORIGIN=$1 SRC_FILE=$2 FILE=$3 if pkg_info -q -g $(pkg_info -qO $ORIGIN) | awk '{print $1}' | grep -q $FILE; then echo "File to be installed was modified" echo "Installing new file: $FILE.new" echo cp $SRC_FILE ${FILE}.new elif [ -e $FILE ]; then echo "Preserving old file: ${FILE}.old" echo "Installing new file: $FILE" echo cp $FILE ${FILE}.old echo cp $SRC_FILE $FILE else echo "Installing file: $FILE" echo cp $SRC_FILE $FILE fi --6TrnltStXW4iwmi0-- From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 19:07:36 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 726F616A4CE for ; Tue, 21 Dec 2004 19:07:36 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C924443D1D for ; Tue, 21 Dec 2004 19:07:35 +0000 (GMT) (envelope-from mnriem@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so357520wra for ; Tue, 21 Dec 2004 11:07:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=InEDgs1wjagaOVOizp7bhPg1RqVFgJB3hUVOTN6NdM/GkGsth56PvnwEgBkKKGu9++bUNKJ4LtO6VVHB3iMjvjhsAU5E+xFSR8+SvUBt1JygTNJ+v9ee41LcG8lsXOHg2M6Zn6zO06XLV/XdgvGjb1d5JO7Pfeu7PQ419xKEzNE= Received: by 10.54.36.77 with SMTP id j77mr702779wrj; Tue, 21 Dec 2004 11:07:34 -0800 (PST) Received: by 10.54.10.23 with HTTP; Tue, 21 Dec 2004 11:07:33 -0800 (PST) Message-ID: <37919c31041221110775dc0396@mail.gmail.com> Date: Tue, 21 Dec 2004 13:07:33 -0600 From: Manfred Riem To: Brent Verner In-Reply-To: <20041221184340.GA14170@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> cc: Kang Liu cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Manfred Riem List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 19:07:36 -0000 Why not use server.xml.sample for the original version? That way one never has to worry ;) And it is the same scheme as with rc scripts. Kind regards, Manfred N. Riem mnriem@gmail.com On Tue, 21 Dec 2004 13:43:40 -0500, Brent Verner wrote: > All, > > Would it help to create a script like the attached (I'd > call it install-port-conf or install-conf)? What this would > do (should you remove the echo from the cp lines...) is > check for the currently installed package from ${PKGORIGIN} > and check to see if the file to be installed has been modified > from the original distributed file. If the user has modified > it, then we'll leave it alone and create the new file as > ${FILE}.new. If the user hasn't modified it, copy the old > file to ${FILE}.old and install the new ${FILE} > > From the makefile it might be used as follows: > > INSTALL_CONF=/path/to/install-conf # probably shipped in port files > # ... > do-install: > ${INSTALL_CONF} ${PKGORIGIN} ${WRKDIR}/server.xml ${APP_HOME}/conf/server.xml > ${INSTALL_CONF} ${PKGORIGIN} ${WRKSRC}/web.xml ${APP_HOME}/conf/web.xml > > Of course, the attached script would need to be completed. The only > thing it does reliably is tell you if a previously installed version > of a file to be installed was modified by the user. > > Comments? > > brent > > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > -- Manfred N. Riem mnriem@gmail.com From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 19:32:26 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C79B316A4CE for ; Tue, 21 Dec 2004 19:32:26 +0000 (GMT) Received: from ns1.netavail.net (ns1.netavail.net [66.45.229.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19C8643D1F for ; Tue, 21 Dec 2004 19:32:26 +0000 (GMT) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (cpe-065-184-047-009.nc.rr.com [65.184.47.9]) by ns1.netavail.net (Postfix) with ESMTP id 120EC3C063; Tue, 21 Dec 2004 14:32:23 -0500 (EST) Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.13.1/8.13.1) with ESMTP id iBLJWL6I014990; Tue, 21 Dec 2004 14:32:21 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.13.1/8.13.1/Submit) id iBLJWL6Z014989; Tue, 21 Dec 2004 14:32:21 -0500 (EST) (envelope-from brent) Date: Tue, 21 Dec 2004 14:32:21 -0500 From: Brent Verner To: Manfred Riem Message-ID: <20041221193221.GA14792@rcfile.org> References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37919c31041221110775dc0396@mail.gmail.com> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.10-STABLE #31: Thu Nov 18 11:01:01 EST 2004 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mutt.rcfile.org cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 19:32:26 -0000 [2004-12-21 13:07] Manfred Riem said: | Why not use server.xml.sample for the original version? | That way one never has to worry ;) And it is the same | scheme as with rc scripts. Yes, except that server.xml and web.xml and other config files are _required_ for a working tomcat installation. I'm not opposed to the .sample approach, but I'm afraid that breaks the principle of least surprise (and this list would be fielding more bug reports because of tomcat not working after an upgrade). If we did this, we'd still have to juggle config files around to, with great certainty, leave the user with a working tomcat after an upgrade. There is likely no way we can have the right thing happen all the time, but I think the chosen solution should be the one that has the best chance of doing the right thing more often than any other. cheers. brent From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 19:55:49 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCF7616A4CE for ; Tue, 21 Dec 2004 19:55:49 +0000 (GMT) Received: from morla.lan.homeboyz.com (morla.lan.homeboyz.com [38.119.239.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D9AF43D55 for ; Tue, 21 Dec 2004 19:55:49 +0000 (GMT) (envelope-from tduffey@homeboyz.org) Received: (qmail 93560 invoked from network); 21 Dec 2004 19:55:48 -0000 Received: from hbi-int87.lan.homeboyz.com (HELO ?192.168.1.87?) (tduffey@192.168.1.87) by morla.lan.homeboyz.com with AES256-SHA encrypted SMTP; 21 Dec 2004 19:55:48 -0000 Message-ID: <41C87FC4.4070803@homeboyz.org> Date: Tue, 21 Dec 2004 13:55:48 -0600 From: Thomas Duffey User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-java@freebsd.org References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> In-Reply-To: <20041221193221.GA14792@rcfile.org> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 19:55:49 -0000 Hi All, Brent Verner wrote: >[2004-12-21 13:07] Manfred Riem said: >| Why not use server.xml.sample for the original version? >| That way one never has to worry ;) And it is the same >| scheme as with rc scripts. > > Yes, except that server.xml and web.xml and other config >files are _required_ for a working tomcat installation. I'm >not opposed to the .sample approach, but I'm afraid that >breaks the principle of least surprise (and this list >would be fielding more bug reports because of tomcat not >working after an upgrade). If we did this, we'd still have >to juggle config files around to, with great certainty, >leave the user with a working tomcat after an upgrade. > > There is likely no way we can have the right thing happen >all the time, but I think the chosen solution should be the >one that has the best chance of doing the right thing more >often than any other. > > Although this is not a solution to the overwriting problem, it is a workaround that I typically use on all of my Tomcat servers to make it easy to upgrade Tomcat within its minor releases without worrying about trashing your files in /conf. As a bonus, it lends itself well to running Tomcat as a non-privileged user. 1) Install Tomcat through ports. Now you have Tomcat in /usr/local/jakarta-tomcatXX 2) Create a new user on your system for your web application. Suppose you want to run something called "foo." Create a "foo" user, and create a "tomcat" directory in that user's home directory. 3) Copy the conf, logs, temp, webapps and work directories from Tomcat's base distribution into the "foo" user's "tomcat" directory, e.g. /home/foo/tomcat/conf /home/foo/tomcat/logs /home/foo/tomcat/temp /home/foo/tomcat/webapps /home/foo/tomcat/webapps/... /home/foo/tomcat/work 4) Edit the files in /home/foo/tomcat/conf to your heart's content, knowing that a port upgrade will never touch these files. 5) Create startup scripts in /home/foo/bin to start this instance of Tomcat. Something like this works for startup: #!/bin/sh JAVA_HOME="/path/to/jdk" \ CATALINA_OPTS="-Xms32m -Xmx512m -Djava.awt.headless=true ..." \ CATALINA_BASE=`dirname $0` \ /usr/local/jakarta-tomcatXX/bin/startup.sh and for shutdown: #!/bin/sh JAVA_HOME="/path/to/jdk" \ CATALINA_OPTS="-Xms32m -Xmx256m -Djava.awt.headless=true ..." \ CATALINA_BASE=`dirname $0` \ /usr/local/jakarta-tomcatXX/bin/shutdown.sh Now you have your own set of configuration files, webapps, logs, etc. and startup/shutdown routine that will run Tomcat under as the "foo" user, utilizing most of the standard Tomcat distribution but giving you the flexibility to make changes where they are most necessary. Upgrading from Tomcat 4.1.x to 4.1.z should be as simple as running portupgrade and restarting foo's instance. A major upgrade will probably require changes to the foo instances configuration files, but that should be expected. Yet another benefit is that you can easily switch between different JDKs you have installed on your system just by changing the foo user's startup and shutdown scripts. Works great for me! - Tom From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 23:43:55 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9966016A4CE for ; Tue, 21 Dec 2004 23:43:55 +0000 (GMT) Received: from ns1.netavail.net (ns1.netavail.net [66.45.229.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B52743D2D for ; Tue, 21 Dec 2004 23:43:53 +0000 (GMT) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (cpe-065-184-047-009.nc.rr.com [65.184.47.9]) by ns1.netavail.net (Postfix) with ESMTP id 760153C063; Tue, 21 Dec 2004 18:43:51 -0500 (EST) Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.13.1/8.13.1) with ESMTP id iBLNhmpD017088; Tue, 21 Dec 2004 18:43:48 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.13.1/8.13.1/Submit) id iBLNhmjV017087; Tue, 21 Dec 2004 18:43:48 -0500 (EST) (envelope-from brent) Date: Tue, 21 Dec 2004 18:43:48 -0500 From: Brent Verner To: Thomas Duffey Message-ID: <20041221234347.GA16825@rcfile.org> References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41C87FC4.4070803@homeboyz.org> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.10-STABLE #31: Thu Nov 18 11:01:01 EST 2004 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mutt.rcfile.org cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 23:43:55 -0000 [2004-12-21 13:55] Thomas Duffey said: | Hi All, Hiya. | Although this is not a solution to the overwriting problem, it is a | workaround that I typically use on all of my Tomcat servers to make it [description of using CATALINA_BASE to run tomcat from config outside of installation directory] Thomas, thanks for reminding me of CATALINA_BASE :-) This might well be the best solution. Keep all user configured files away from the port-managed files. Many other systems package/install tomcat in this manner, FWIW. Where could a directory be created to hold more than one CATALINA_BASE directory? In that directory could be directories with names based on the package's ${ORIGIN}... ${SITE_BASE}/tomcat4 ${SITE_BASE}/tomcat41 ${SITE_BASE}/tomcat5 where SITE_BASE could default to something like /usr/local/www-java or /usr/local/www/catalina-base. The do-install target would check for existence of the CATALINA_BASE directory. If not present, the directory is created and populated with the necessary files. If the catalina.sh were used to start/stop the tomcat, we could simply create/supply a setenv.sh file (next to catalina.sh) that defined the external CATALINA_BASE if not already defined in the environment. Thoughts? cheers. Brent From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 00:26:53 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A874416A4CE for ; Wed, 22 Dec 2004 00:26:53 +0000 (GMT) Received: from morla.lan.homeboyz.com (morla.lan.homeboyz.com [38.119.239.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3911543D41 for ; Wed, 22 Dec 2004 00:26:53 +0000 (GMT) (envelope-from tduffey@homeboyz.org) Received: (qmail 97988 invoked from network); 22 Dec 2004 00:20:12 -0000 Received: from hbi-int87.lan.homeboyz.com (HELO ?192.168.1.87?) (tduffey@192.168.1.87) by morla.lan.homeboyz.com with AES256-SHA encrypted SMTP; 22 Dec 2004 00:20:12 -0000 Message-ID: <41C8BDBC.4050801@homeboyz.org> Date: Tue, 21 Dec 2004 18:20:12 -0600 From: Thomas Duffey User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-java@freebsd.org References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> <20041221234347.GA16825@rcfile.org> In-Reply-To: <20041221234347.GA16825@rcfile.org> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 00:26:53 -0000 Hi Brent, Brent Verner wrote: > Thomas, thanks for reminding me of CATALINA_BASE :-) > > This might well be the best solution. Keep all user >configured files away from the port-managed files. Many >other systems package/install tomcat in this manner, FWIW. > > Where could a directory be created to hold more than one >CATALINA_BASE directory? In that directory could be >directories with names based on the package's ${ORIGIN}... > > ${SITE_BASE}/tomcat4 > ${SITE_BASE}/tomcat41 > ${SITE_BASE}/tomcat5 > >where SITE_BASE could default to something like >/usr/local/www-java or /usr/local/www/catalina-base. > > I'm not sure I follow you. Are you trying to declare a default location for individual "instances" of specific versions of Tomcat? > The do-install target would check for existence of the >CATALINA_BASE directory. If not present, the directory >is created and populated with the necessary files. If >the catalina.sh were used to start/stop the tomcat, we >could simply create/supply a setenv.sh file (next to >catalina.sh) that defined the external CATALINA_BASE if >not already defined in the environment. > > When I build a Tomcat port, then, would I need to build/install it once for each instance? Suppose I have three instances, would I need to do: # CATALINA_BASE=/home/appserver1/tomcat make && make install # CATALINA_BASE=/home/appserver2/tomcat make && make install # CATALINA_BASE=/home/appserver3/tomcat make && make install This seems like more work to me than just understanding how CATALINA_BASE works, configuring your Tomcat instances however they best suit your needs and then assuming the FreeBSD port will always just install the latest and greatest to /usr/local/jakarta-tomcatXX and leave your instances files alone. Although I typically use daemontools to start/stop my Tomcat instances, I would be interested in a more intelligent startup/shutdown script that references /etc/rc.conf to determine whether or not Tomcat should even be started at boot (e.g. tomcat41_enable="YES"). Whatever you come up with, please keep things simple for those of us who expect the port to install a standard Tomcat setup, including the latest default configuration files. Best Regards, Tom Duffey From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 01:08:35 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21E6616A4CE for ; Wed, 22 Dec 2004 01:08:35 +0000 (GMT) Received: from ns1.netavail.net (ns1.netavail.net [66.45.229.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id A51A143D2F for ; Wed, 22 Dec 2004 01:08:32 +0000 (GMT) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (cpe-065-184-047-009.nc.rr.com [65.184.47.9]) by ns1.netavail.net (Postfix) with ESMTP id C4FD93C063; Tue, 21 Dec 2004 20:08:30 -0500 (EST) Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.13.1/8.13.1) with ESMTP id iBM18R6T017698; Tue, 21 Dec 2004 20:08:27 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.13.1/8.13.1/Submit) id iBM18RPA017697; Tue, 21 Dec 2004 20:08:27 -0500 (EST) (envelope-from brent) Date: Tue, 21 Dec 2004 20:08:27 -0500 From: Brent Verner To: Thomas Duffey Message-ID: <20041222010827.GA17485@rcfile.org> References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> <20041221234347.GA16825@rcfile.org> <41C8BDBC.4050801@homeboyz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41C8BDBC.4050801@homeboyz.org> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.10-STABLE #31: Thu Nov 18 11:01:01 EST 2004 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mutt.rcfile.org cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 01:08:35 -0000 [2004-12-21 18:20] Thomas Duffey said: | Hi Brent, Hi Thomas, | > ${SITE_BASE}/tomcat4 | > ${SITE_BASE}/tomcat41 | > ${SITE_BASE}/tomcat5 | > | >where SITE_BASE could default to something like | >/usr/local/www-java or /usr/local/www/catalina-base. | > | > | I'm not sure I follow you. Are you trying to declare a default location | for individual "instances" of specific versions of Tomcat? I think that's what I intend. I guess what I was saying is that, instead of CATALINA_BASE being inside of the tomcat installation directory, the user-configured files used by each tomcat port installation be outside of that tomcat's installation directory. This protects them from being overwritten when the port is upgraded. That's really all. | When I build a Tomcat port, then, would I need to build/install it once | for each instance? Suppose I have three instances, would I need to do: | | # CATALINA_BASE=/home/appserver1/tomcat make && make install | # CATALINA_BASE=/home/appserver2/tomcat make && make install | # CATALINA_BASE=/home/appserver3/tomcat make && make install I didn't envision this necessarily. I imagined more that make install would only (once per ${PKGORIGIN}) create a CATALINA_BASE directory structure used by that port's default instance. If an administrator, like in your case, wanted to create multiple instances, they would do that outside of the port, and the port would know nothing about it. I don't think what I've proposed would affect what you are doing in any way. It would only do something similar to what you are doing for a single default tomcat instance (to sidestep the configuration squashing upgrades) per tomcat port ${PKGORIGIN}. A new CATALINA_BASE directory would only be created when a port is installed from a new ${PKGORIGIN} -- an upgrade of tomcat from 5.0.25 to 5.0.29 would not create a new CATALINA_BASE dir. Only when the port ${PKGORIGIN} changed from www/jakarta-tomcat5 to www/jakarta-tomcat51 would a new CATALINA_BASE directory be created by the port. Of course, this would require that all versions of tomcat installed from a given ${PKGORIGIN} be compatible, but I think that is a reasonable constraint. The only thing this approach would change is where the configuration and files for the default instance are located. Instead of /usr/local/jakarta-tomcatN*/, the default instance would run from /usr/local/elsewhere/tomcatN*/. | Whatever you come up with, please keep things simple for those of us who | expect the port to install a standard Tomcat setup, including the latest | default configuration files. I hope I'm not coming up with this :-) I would just like to see the itches in freebsd's tomcat ports scratched. I'm just throwing ideas about. If we decide on a best way to fix the(se) port(s), maybe someone will implement it. If not, I may try to find time to do it, but my time get pretty scarce at times :-\ Thanks for your comments. If this is, again, unclear, let me know and I'll try again. If this is all pointless discussion, the lists readership could let me know that, too :-) cheers. Brent From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 01:21:11 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA53C16A4CE for ; Wed, 22 Dec 2004 01:21:11 +0000 (GMT) Received: from mail.ticino.com (mx.ticino.com [195.190.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13A9443D45 for ; Wed, 22 Dec 2004 01:21:10 +0000 (GMT) (envelope-from roberto.nunnari@supsi.ch) Received: from supsi.ch (unverified [62.48.103.172]) by ticino.com for ; Wed, 22 Dec 2004 02:21:55 +0100 Message-ID: <41C8CC00.7070106@supsi.ch> Date: Wed, 22 Dec 2004 02:21:04 +0100 From: Roberto Nunnari User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: BufferedImage.createGraphics() from a servlet X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 01:21:11 -0000 Hi all. I'm having trouble running a simple servlet that does the following: BufferedImage image = new BufferedImage(100, 20, BufferedImage.TYPE_3BYTE_BGR); Graphics2D g = image.createGraphics(); This are the facts: -bash-2.05b# uname -a FreeBSD jupiter.noonlights.net 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #3: Sat Aug 14 06:30:22 CEST 2004 root@jupiter.noonlights.net:/usr/obj/usr/src/sys/JUPITER i386 -bash-2.05b# XFree86 -version XFree86 Version 4.3.0 ... -bash-2.05b# java -version java version "1.4.2-p6" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p6-root_09_aug_2004_03_45) Java HotSpot(TM) Client VM (build 1.4.2-p6-root_09_aug_2004_03_45, mixed mode) -bash-2.05b# pkg_info |grep wrapper javavmwrapper-1.4 Wrapper script for various Java Virtual Machines wrapper-1.0_3 Wrapper for XFree86-4 server note that I don't have a monitor attached, but the server is running.. -bash-2.05b$ startx -listen_tcp & -bash-2.05b$ xhost + .. if I enable xdm in /etc/ttys then I get connection refused messages from the Xserver.. can any kind soul help me out? Thank you. -- Roberto Nunnari -software engineer- Scuola Universitaria Professionale della Svizzera Italiana Dipartimento Tecnologie Innovative http://www.dti.supsi.ch SUPSI-DTI Via Cantonale tel: +41-91-6108561 6928 Manno """ fax: +41-91-6108570 Switzerland (o o) =======================oOO==(_)==OOo======================== From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 01:50:11 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E96416A4CE for ; Wed, 22 Dec 2004 01:50:11 +0000 (GMT) Received: from mail.ticino.com (mx.ticino.com [195.190.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6001143D49 for ; Wed, 22 Dec 2004 01:50:10 +0000 (GMT) (envelope-from roberto.nunnari@supsi.ch) Received: from supsi.ch (unverified [62.48.103.172]) by ticino.com for ; Wed, 22 Dec 2004 02:50:55 +0100 Message-ID: <41C8D2CC.4020307@supsi.ch> Date: Wed, 22 Dec 2004 02:50:04 +0100 From: Roberto Nunnari User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org References: <41C8CC00.7070106@supsi.ch> In-Reply-To: <41C8CC00.7070106@supsi.ch> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: BufferedImage.createGraphics() from a servlet X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 01:50:11 -0000 Sorry.. forgot to mention the errors.. the servlet stacktrace when running xdm from /etc/ttys is: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) at ch.nunnisoft.webcounter.Counter.processRequest(Counter.java:103) at ch.nunnisoft.webcounter.Counter.doGet(Counter.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Roberto Nunnari wrote: > Hi all. > > I'm having trouble running a simple servlet that does the > following: > > BufferedImage image = new BufferedImage(100, 20, > BufferedImage.TYPE_3BYTE_BGR); > Graphics2D g = image.createGraphics(); > > This are the facts: > > -bash-2.05b# uname -a > FreeBSD jupiter.noonlights.net 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 > #3: Sat Aug 14 06:30:22 CEST 2004 > root@jupiter.noonlights.net:/usr/obj/usr/src/sys/JUPITER i386 > > -bash-2.05b# XFree86 -version > XFree86 Version 4.3.0 > ... > > -bash-2.05b# java -version > java version "1.4.2-p6" > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.4.2-p6-root_09_aug_2004_03_45) > Java HotSpot(TM) Client VM (build 1.4.2-p6-root_09_aug_2004_03_45, mixed > mode) > > -bash-2.05b# pkg_info |grep wrapper > javavmwrapper-1.4 Wrapper script for various Java Virtual Machines > wrapper-1.0_3 Wrapper for XFree86-4 server > > note that I don't have a monitor attached, but the server > is running.. > > -bash-2.05b$ startx -listen_tcp & > > -bash-2.05b$ xhost + > > .. if I enable xdm in /etc/ttys then I get connection refused > messages from the Xserver.. > > can any kind soul help me out? > > Thank you. -- Roberto Nunnari -software engineer- mailto:roberto.nunnari@supsi.ch Scuola Universitaria Professionale della Svizzera Italiana Dipartimento Tecnologie Innovative http://www.dti.supsi.ch SUPSI-DTI Via Cantonale tel: +41-91-6108561 6928 Manno """ fax: +41-91-6108570 Switzerland (o o) =======================oOO==(_)==OOo======================== From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 03:52:51 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FF3516A4CE for ; Wed, 22 Dec 2004 03:52:51 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id C967543D2F for ; Wed, 22 Dec 2004 03:52:49 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])iBM3qmRC033478; Wed, 22 Dec 2004 04:52:48 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.13.1/Submit) id iBM3qbKx033477; Wed, 22 Dec 2004 04:52:37 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Wed, 22 Dec 2004 04:52:37 +0100 From: Herve Quiroz To: Brent Verner Message-ID: <20041222035237.GA32596@arabica.esil.univ-mrs.fr> Mail-Followup-To: Brent Verner , Thomas Duffey , freebsd-java@freebsd.org References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> <20041221234347.GA16825@rcfile.org> <41C8BDBC.4050801@homeboyz.org> <20041222010827.GA17485@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041222010827.GA17485@rcfile.org> User-Agent: Mutt/1.4.2.1i cc: Thomas Duffey cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 03:52:51 -0000 On Tue, Dec 21, 2004 at 08:08:27PM -0500, Brent Verner wrote: > The only thing this approach would change is where the > configuration and files for the default instance are > located. Instead of /usr/local/jakarta-tomcatN*/, the > default instance would run from /usr/local/elsewhere/tomcatN*/. > > | Whatever you come up with, please keep things simple for those of us who > | expect the port to install a standard Tomcat setup, including the latest > | default configuration files. > > I hope I'm not coming up with this :-) I would just like to > see the itches in freebsd's tomcat ports scratched. I'm just > throwing ideas about. If we decide on a best way to fix the(se) > port(s), maybe someone will implement it. If not, I may try > to find time to do it, but my time get pretty scarce at times :-\ > > Thanks for your comments. If this is, again, unclear, let me > know and I'll try again. If this is all pointless discussion, > the lists readership could let me know that, too :-) This is no pointless discussion IMHO. We all agree that we need to have Tomcat behave like any other port, run straight out-of-the-box, and deal with user configuration files. I've had a closer look at this CATALINA stuff and I agree with what you suggest, that is having configuration files in a separate place. Actually I would like Java ports to behave just like any other port and that means they should honor hier(7). I suggest using ${PREFIX}/etc/jakarta-tomcatXX as the location for configuration files (for the default instance). Still this won't solve the issue reported in the PR, that is configuration files being overwritten when upgrading the port. OTOH, I think I have a solution for the "common" user someone described earlier, that is the kind of user who does not change anything to its configuration files and want the port to upgrade those configuration files (not only the '*.sample' ones): For each $f configuration file, if the old $f and the old $f.sample are identical, then it means the user did not change anything to the file and we may overwrite $f and $f.sample with the new ones. Otherwise, we just overwrite $f.sample. We could also output the diff between old $f.sample and the new one so that the user may "merge" these changes in his own configuration file. Now, that sounds quite a complex thing and I think that if we were to implement it, this should be a generic macro or tool, as many others ports would benefit from such feature. Herve From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 04:20:28 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78D8616A4CE for ; Wed, 22 Dec 2004 04:20:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CD3943D31 for ; Wed, 22 Dec 2004 04:20:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBM4KSss074575 for ; Wed, 22 Dec 2004 04:20:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBM4KSc8074574; Wed, 22 Dec 2004 04:20:28 GMT (envelope-from gnats) Date: Wed, 22 Dec 2004 04:20:28 GMT Message-Id: <200412220420.iBM4KSc8074574@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Herve Quiroz Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Herve Quiroz List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 04:20:28 -0000 The following reply was made to PR ports/75348; it has been noted by GNATS. From: Herve Quiroz To: freebsd-gnats-submit@freebsd.org, bati@nostromo.cz Cc: Kang Liu Subject: Re: ports/75348: Tomcat port overwrites server.xml config file Date: Wed, 22 Dec 2004 05:15:57 +0100 Same here. I can't reproduce the error: $ cd /usr/ports/www/jakarta-tomcat5 $ make install [...] Installing local configuration file: /usr/local/jakarta-tomcat5.0/conf/server.xml [...] $ echo "whatever" >/usr/local/jakarta-tomcat5.0/conf/server.xml $ make deinstall [...] If permanently deleting this package, /usr/local/jakarta-tomcat5.0/conf/server.xml must be removed manually [...] $ make reinstall [...] Preserving local configuration file: /usr/local/jakarta-tomcat5.0/conf/server.xml [...] $ cat /usr/local/jakarta-tomcat5.0/conf/server.xml whatever Kang, BTW, that's not really related but I think we should do something for the garbage output while deinstalling the port: [...] If permanently deleting this package, /usr/local/jakarta-tomcat5.0/conf/server.xml must be removed manually pkg_delete: unable to completely remove directory '/usr/local/jakarta-tomcat5.0/conf' pkg_delete: unable to completely remove directory '/usr/local/jakarta-tomcat5.0' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) [...] A simple "@unexec rmdir jakarta-tomcat5.0/conf 2>/dev/null || true" would probably be enough. Herve From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 04:21:06 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D235E16A4CE for ; Wed, 22 Dec 2004 04:21:06 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D9B343D2F for ; Wed, 22 Dec 2004 04:21:06 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])iBM4L5Hn033656 for ; Wed, 22 Dec 2004 05:21:05 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.13.1/Submit) id iBM4L5dL033655 for freebsd-java@FreeBSD.ORG; Wed, 22 Dec 2004 05:21:05 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Wed, 22 Dec 2004 05:21:05 +0100 From: Herve Quiroz To: freebsd-java@FreeBSD.ORG Message-ID: <20041222042105.GA33606@arabica.esil.univ-mrs.fr> Mail-Followup-To: freebsd-java@FreeBSD.ORG References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> <20041221234347.GA16825@rcfile.org> <41C8BDBC.4050801@homeboyz.org> <20041222010827.GA17485@rcfile.org> <20041222035237.GA32596@arabica.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041222035237.GA32596@arabica.esil.univ-mrs.fr> User-Agent: Mutt/1.4.2.1i Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 04:21:06 -0000 On Wed, Dec 22, 2004 at 04:52:37AM +0100, Herve Quiroz wrote: > Now, that sounds quite a complex thing and I think that if we were to > implement it, this should be a generic macro or tool, as many others > ports would benefit from such feature. Well, after a few minutes of thinking, I found out that the generic flavor would be even more complex to implement. So let's just implement it in tomcat first if we may. Herve From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 04:55:30 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C24F716A4CE for ; Wed, 22 Dec 2004 04:55:30 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id C35EE43D39 for ; Wed, 22 Dec 2004 04:55:29 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])iBM4tShe033914; Wed, 22 Dec 2004 05:55:28 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.13.1/Submit) id iBM4tRVs033913; Wed, 22 Dec 2004 05:55:27 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Wed, 22 Dec 2004 05:55:27 +0100 From: Herve Quiroz To: Brent Verner Message-ID: <20041222045527.GA33844@arabica.esil.univ-mrs.fr> Mail-Followup-To: Brent Verner , freebsd-java@FreeBSD.ORG References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> <20041221234347.GA16825@rcfile.org> <41C8BDBC.4050801@homeboyz.org> <20041222010827.GA17485@rcfile.org> <20041222035237.GA32596@arabica.esil.univ-mrs.fr> <20041222042140.GA19026@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041222042140.GA19026@rcfile.org> User-Agent: Mutt/1.4.2.1i cc: freebsd-java@FreeBSD.ORG Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 04:55:30 -0000 [ Brent reminded me of a previous message he sent to this list with an approach based on checksums from the packing list [1] ] On Tue, Dec 21, 2004 at 11:21:40PM -0500, Brent Verner wrote: > See an earlier email I sent today. The attached script has > a line of pkg_info commands that do exactly what you describe > above using the checksum from the package being replaced. > > The script is not ready for real use, but it does know how > to answer the big question :-) Indeed. If we don't need the diff feature (to help user merge the changes), then this is an efficient approach. The only problem I see here is that the whole packing list will be checked for md5 conformance when we only need information regarding the configuration files. Still I don't think it's a big flaw... Herve [1] http://lists.freebsd.org/pipermail/freebsd-java/2004-December/003264.html From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 08:20:28 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D41116A4CE for ; Wed, 22 Dec 2004 08:20:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE0E43D41 for ; Wed, 22 Dec 2004 08:20:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBM8KSMR032066 for ; Wed, 22 Dec 2004 08:20:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBM8KSRC032065; Wed, 22 Dec 2004 08:20:28 GMT (envelope-from gnats) Date: Wed, 22 Dec 2004 08:20:28 GMT Message-Id: <200412220820.iBM8KSRC032065@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Jiri Novak Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jiri Novak List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 08:20:28 -0000 The following reply was made to PR ports/75348; it has been noted by GNATS. From: Jiri Novak To: Herve Quiroz Cc: freebsd-gnats-submit@freebsd.org, Kang Liu Subject: Re: ports/75348: Tomcat port overwrites server.xml config file Date: Wed, 22 Dec 2004 09:10:56 +0100 Herve Quiroz wrote: > Same here. I can't reproduce the error: > > $ cd /usr/ports/www/jakarta-tomcat5 > $ make install > > [...] > Installing local configuration file: /usr/local/jakarta-tomcat5.0/conf/server.xml > [...] > > $ echo "whatever" >/usr/local/jakarta-tomcat5.0/conf/server.xml > $ make deinstall > > [...] > If permanently deleting this package, /usr/local/jakarta-tomcat5.0/conf/server.xml must be removed manually > [...] > > $ make reinstall > > [...] > Preserving local configuration file: /usr/local/jakarta-tomcat5.0/conf/server.xml > [...] > > $ cat /usr/local/jakarta-tomcat5.0/conf/server.xml > whatever > > > Kang, BTW, that's not really related but I think we should do something for > the garbage output while deinstalling the port: > > [...] > If permanently deleting this package, /usr/local/jakarta-tomcat5.0/conf/server.xml must be removed manually > pkg_delete: unable to completely remove directory '/usr/local/jakarta-tomcat5.0/conf' > pkg_delete: unable to completely remove directory '/usr/local/jakarta-tomcat5.0' > pkg_delete: couldn't entirely delete package (perhaps the packing list is > incorrectly specified?) > [...] > > A simple "@unexec rmdir jakarta-tomcat5.0/conf 2>/dev/null || true" > would probably be enough. > > Herve > As I wrote in my mail to Kang Liu, I did portupgrade -a on the system which resulted in overwritten config files. I don't exactly know what happened during build of tomcat, because some other ports was updated too and I didn't "script" the upgrade session (stupid of me, I know). -- Jiri Novak From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 12:40:17 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D474A16A4CE for ; Wed, 22 Dec 2004 12:40:17 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9DA043D4C for ; Wed, 22 Dec 2004 12:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBMCeHKM061931 for ; Wed, 22 Dec 2004 12:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBMCeHX5061930; Wed, 22 Dec 2004 12:40:17 GMT (envelope-from gnats) Date: Wed, 22 Dec 2004 12:40:17 GMT Message-Id: <200412221240.iBMCeHX5061930@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Herve Quiroz Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Herve Quiroz List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 12:40:17 -0000 The following reply was made to PR ports/75348; it has been noted by GNATS. From: Herve Quiroz To: Jiri Novak Cc: freebsd-gnats-submit@freebsd.org, Kang Liu Subject: Re: ports/75348: Tomcat port overwrites server.xml config file Date: Wed, 22 Dec 2004 13:37:02 +0100 On Wed, Dec 22, 2004 at 09:10:56AM +0100, Jiri Novak wrote: > As I wrote in my mail to Kang Liu, I did portupgrade -a on the system > which resulted in overwritten config files. I don't exactly know what > happened during build of tomcat, because some other ports was updated > too and I didn't "script" the upgrade session (stupid of me, I know). Jiri, I think I understand what happened. In fact all previous versions of the port were removing the configuration files when removing the port. From pkg-plist, revision 1.13: %%T%%/conf/catalina.policy %%T%%/conf/catalina.properties %%T%%/conf/jk2.properties %%T%%/conf/server-minimal.xml %%T%%/conf/server.xml %%T%%/conf/tomcat-users.xml %%T%%/conf/web.xml So that's not a problem related to the new version of the port but rather something we fixed. From now, your configuration files will not be deleted. Herve From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 16:55:19 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B71116A4CE for ; Wed, 22 Dec 2004 16:55:19 +0000 (GMT) Received: from mail.dti.supsi.ch (mail.dti.supsi.ch [193.5.153.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9C9043D3F for ; Wed, 22 Dec 2004 16:55:17 +0000 (GMT) (envelope-from roberto.nunnari@supsi.ch) Received: from supsi.ch (pcm2027.dti.supsi.ch [193.5.152.27]) by mail.dti.supsi.ch (8.11.6/8.11.6) with ESMTP id iBMGt7W13287; Wed, 22 Dec 2004 17:55:07 +0100 Message-ID: <41C9A6DE.4040903@supsi.ch> Date: Wed, 22 Dec 2004 17:54:54 +0100 From: Roberto Nunnari User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Franco Bruno Borghesi References: <41C8CC00.7070106@supsi.ch> <41C8D2CC.4020307@supsi.ch> <41C9A102.3050303@akyasociados.com.ar> In-Reply-To: <41C9A102.3050303@akyasociados.com.ar> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: {Spam?} Re: BufferedImage.createGraphics() from a servlet X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 16:55:19 -0000 Ciao Franco. Thank you very much for your hints. I'll try probably this evening and will let you know if it works. Franco Bruno Borghesi wrote: > I had the same problem a few months ago. I remember I defined this > > export JAVA_OPTS="-Djava.awt.headless=true" > > on my tomcat startup script. I also remember that I had to instal > XFree86-libraries on my server, and recompile/reinstall jdk-14. > > This way you don't need to run X on the server, you just need the > libraries. > Hope this helps. > > > Roberto Nunnari wrote: > >> Sorry.. forgot to mention the errors.. >> the servlet stacktrace when running xdm from /etc/ttys is: >> >> java.lang.NoClassDefFoundError >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:141) >> at >> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) >> >> at >> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) >> at ch.nunnisoft.webcounter.Counter.processRequest(Counter.java:103) >> at ch.nunnisoft.webcounter.Counter.doGet(Counter.java:156) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) >> >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) >> >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) >> >> at >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) >> >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) >> >> at >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> >> at >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) >> >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) >> >> at >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >> at >> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) >> >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) >> >> at >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) >> >> at >> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) >> >> at >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) >> >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) >> >> at >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) >> >> at >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) >> at >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) >> >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) >> >> at >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) >> >> at >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) >> >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) >> >> at >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >> at >> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) >> at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) >> >> at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) >> >> at >> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) >> >> at >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) >> >> at java.lang.Thread.run(Thread.java:534) >> >> >> Roberto Nunnari wrote: >> >>> Hi all. >>> >>> I'm having trouble running a simple servlet that does the >>> following: >>> >>> BufferedImage image = new BufferedImage(100, 20, >>> BufferedImage.TYPE_3BYTE_BGR); >>> Graphics2D g = image.createGraphics(); >>> >>> This are the facts: >>> >>> -bash-2.05b# uname -a >>> FreeBSD jupiter.noonlights.net 5.2.1-RELEASE-p9 FreeBSD >>> 5.2.1-RELEASE-p9 #3: Sat Aug 14 06:30:22 CEST 2004 >>> root@jupiter.noonlights.net:/usr/obj/usr/src/sys/JUPITER i386 >>> >>> -bash-2.05b# XFree86 -version >>> XFree86 Version 4.3.0 >>> ... >>> >>> -bash-2.05b# java -version >>> java version "1.4.2-p6" >>> Java(TM) 2 Runtime Environment, Standard Edition (build >>> 1.4.2-p6-root_09_aug_2004_03_45) >>> Java HotSpot(TM) Client VM (build 1.4.2-p6-root_09_aug_2004_03_45, >>> mixed mode) >>> >>> -bash-2.05b# pkg_info |grep wrapper >>> javavmwrapper-1.4 Wrapper script for various Java Virtual Machines >>> wrapper-1.0_3 Wrapper for XFree86-4 server >>> >>> note that I don't have a monitor attached, but the server >>> is running.. >>> >>> -bash-2.05b$ startx -listen_tcp & >>> >>> -bash-2.05b$ xhost + >>> >>> .. if I enable xdm in /etc/ttys then I get connection refused >>> messages from the Xserver.. >>> >>> can any kind soul help me out? >>> >>> Thank you. >> >> >> >> -- Roberto Nunnari -software engineer- mailto:roberto.nunnari@supsi.ch Scuola Universitaria Professionale della Svizzera Italiana Dipartimento Tecnologie Innovative http://www.dti.supsi.ch SUPSI-DTI Via Cantonale tel: +41-91-6108561 6928 Manno """ fax: +41-91-6108570 Switzerland (o o) =======================oOO==(_)==OOo======================== From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 18:18:38 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2212B16A4CE for ; Wed, 22 Dec 2004 18:18:38 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6AEB43D31 for ; Wed, 22 Dec 2004 18:18:36 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])iBMIIZ4b036893 for ; Wed, 22 Dec 2004 19:18:35 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.13.1/Submit) id iBMIIZg4036892 for freebsd-java@FreeBSD.ORG; Wed, 22 Dec 2004 19:18:35 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Wed, 22 Dec 2004 19:18:35 +0100 From: Herve Quiroz To: freebsd-java@FreeBSD.ORG Message-ID: <20041222181835.GA36851@arabica.esil.univ-mrs.fr> Mail-Followup-To: freebsd-java@FreeBSD.ORG Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: New port to review: jakarta-commons-daemon (maybe useful for tomcat) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 18:18:38 -0000 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, Long ago, I tried to port Jakarta commons-daemon but I gave up as I didn't have any application to test it with. Now that we are working on Tomcat ports, and as I saw that Tomcat may be controlled throught jsvc (from commons-daemon), I decided to give it another try. So here is a brand new version of the port. Install/deinstall targets work and 'jsvc' will run. If someone is interested in either maintaining this port or wish to contribute to it, please let me know. Please note that I didn't tested the port to run anything, so it could be broken I don't know. Just thought I could share it with the community in case someone finds it useful. BTW, it lacks a proper pkg-descr but I couldn't find anything to write down on this utility... contributions are welcome :) Herve --/9DWx/yDrRhgMJTb-- From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 19:55:15 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12C9916A4CE for ; Wed, 22 Dec 2004 19:55:15 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D93C43D48 for ; Wed, 22 Dec 2004 19:55:14 +0000 (GMT) (envelope-from mohneyj@gmail.com) Received: by wproxy.gmail.com with SMTP id 37so5521wra for ; Wed, 22 Dec 2004 11:55:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=YCTqdbGhTvPXmypcURFutfnjTC/D/XVWZVXP+BtLMmAcHJGPVSgnVsD438JE/JYxzsislrYfB/kMh/Q1kwv1iDVF5F1rWhcp0ILHju6Fdl3cYC8xBSPC8q+G5xhPP/5MPoVjnURboztXKkddn3Z+SBot9NeuLaSqboqx8rSGtuU= Received: by 10.54.44.61 with SMTP id r61mr162815wrr; Wed, 22 Dec 2004 11:55:13 -0800 (PST) Received: by 10.54.44.15 with HTTP; Wed, 22 Dec 2004 11:55:13 -0800 (PST) Message-ID: Date: Wed, 22 Dec 2004 14:55:13 -0500 From: Jeff Mohney To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: java for 5.3 please X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jeff Mohney List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 19:55:15 -0000 Please help. I looked here and it appears that both jdk and jvm are not supported in freebsd 5.3 http://www.freebsdfoundation.org/downloads/java-errata.shtml I do not have linux emulation nor am I skilled enough to emulate linux, install linux jvm/jdk, build natively, and then remove linux emulation from my OS. I have googled for how to's such as freebsddiary.org, etc, but any real how to's for a simpleton like myself are scarce.... it looks as though this hasn't made it into the 5.x branch yet..... YIKES....any advice/pointers/help? Thanks!!! From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 21:06:46 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF63016A4CE for ; Wed, 22 Dec 2004 21:06:46 +0000 (GMT) Received: from morla.lan.homeboyz.com (morla.lan.homeboyz.com [38.119.239.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23DFF43D62 for ; Wed, 22 Dec 2004 21:06:45 +0000 (GMT) (envelope-from tduffey@homeboyz.org) Received: (qmail 13524 invoked from network); 22 Dec 2004 21:00:04 -0000 Received: from hbi-int87.lan.homeboyz.com (HELO ?192.168.1.87?) (tduffey@192.168.1.87) by morla.lan.homeboyz.com with AES256-SHA encrypted SMTP; 22 Dec 2004 21:00:04 -0000 Message-ID: <41C9E053.1030405@homeboyz.org> Date: Wed, 22 Dec 2004 15:00:03 -0600 From: Thomas Duffey User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-java@freebsd.org References: In-Reply-To: X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: java for 5.3 please X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 21:06:46 -0000 Hi Jeff, Jeff Mohney wrote: >I do not have linux emulation nor am I skilled enough to emulate >linux, install linux jvm/jdk, build natively, and then remove linux >emulation from my OS. > > What happens when you do this? # cd /usr/ports/java/jdk14 # make ...follow instructions... # make install That's all I did on my latest 5.3 machine and although it took a while and required downloading some files by hand, everything worked fine in the end. Good Luck, Tom Duffey From owner-freebsd-java@FreeBSD.ORG Thu Dec 23 11:31:56 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3336216A4CE for ; Thu, 23 Dec 2004 11:31:56 +0000 (GMT) Received: from deliver-1.mx.triera.net (deliver-1.mx.triera.net [213.161.0.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F05743D54 for ; Thu, 23 Dec 2004 11:31:53 +0000 (GMT) (envelope-from andy@triera.net) Received: from localhost (in-3.mx.triera.net [213.161.0.27]) by deliver-1.mx.triera.net (Postfix) with ESMTP id 767C4C00B for ; Thu, 23 Dec 2004 12:31:43 +0100 (CET) Received: from smtp.triera.net (smtp.triera.net [213.161.0.30]) by in-3.mx.triera.net (Postfix) with SMTP id 5A25D1BC08C for ; Thu, 23 Dec 2004 12:31:46 +0100 (CET) Received: from webmail.triera.net (scandal.triera.net [213.161.0.40]) by smtp.triera.net (Postfix) with SMTP id 9DC301A18A7 for ; Thu, 23 Dec 2004 12:31:46 +0100 (CET) MIME-Version: 1.0 X-Mailer: Triera Internet Webmail Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <41C9E053.1030405@homeboyz.org> References: <41C9E053.1030405@homeboyz.org> Date: Thu, 23 Dec 2004 12:31:54 +0100 From: "Andy Rozman (Aleksander)" To: freebsd-java@freebsd.org X-Originating-IP: [212.18.50.194] X-Virus-Scanned: Triera AV Service Subject: Re: java for 5.3 please X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: andy@triera.net List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2004 11:31:56 -0000 Thomas Duffey wrote: > Hi Jeff, > > Jeff Mohney wrote: > > >I do not have linux emulation nor am I skilled enough to emulate > >linux, install linux jvm/jdk, build natively, and then remove linux > >emulation from my OS. > > > > > What happens when you do this? > > # cd /usr/ports/java/jdk14 > # make > ...follow instructions... > # make install > > That's all I did on my latest 5.3 machine and although it took a while > and required downloading some files by hand, everything worked fine in > the end. > > Good Luck, > > Tom Duffey Hi ! Jeff tried to get "official release" which is still 1.3. You must build your own version, like Tom told you. Problem is that each jdk must be certified with Sun, and until JDK is in such working order that Sun will certify it, you must build your own. When JDK is certified we can release it as binaries (like in all other systems)... So good luck, if yous till have problems contact me offlist, and we will see how we can help you... Andy > From owner-freebsd-java@FreeBSD.ORG Thu Dec 23 22:49:37 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D835216A4CE for ; Thu, 23 Dec 2004 22:49:37 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62F6443D41 for ; Thu, 23 Dec 2004 22:49:37 +0000 (GMT) (envelope-from mohneyj@gmail.com) Received: by wproxy.gmail.com with SMTP id 37so53900wra for ; Thu, 23 Dec 2004 14:49:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=bxGBjR6lZ0/uI7HCPJKWFMUayVJmwRt2SH7HrilKv/HRFJT136oMWbtHjnhpEecHzRYdYIIViwuQ8zOuWL4Iew2ylVO1fYbP5N3QE8lEaQLu8gTlp0Dh4BsfL4k56pZYIbQLOC6x9E1KwBkQBoOdYggseUnr3b9FPPYKdiWGHS4= Received: by 10.54.6.71 with SMTP id 71mr274675wrf; Thu, 23 Dec 2004 14:49:36 -0800 (PST) Received: by 10.54.44.15 with HTTP; Thu, 23 Dec 2004 14:49:36 -0800 (PST) Message-ID: Date: Thu, 23 Dec 2004 17:49:36 -0500 From: Jeff Mohney To: Franco Bruno Borghesi In-Reply-To: <41C9D846.70105@akyasociados.com.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <41C9D846.70105@akyasociados.com.ar> cc: freebsd-java@freebsd.org Subject: Re: java for 5.3 please X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jeff Mohney List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2004 22:49:38 -0000 On Wed, 22 Dec 2004 17:25:42 -0300, Franco Bruno Borghesi wrote: > The unsopported jdk is the diablo-jdk, but you have other options. >=20 > Installing linux emulation is easy: > # cd /usr/ports/emulators/linux_base > # make install distclean >=20 > to enable it, just add to your /etc/rc.conf the following line: > linux_enable=3D"YES" >=20 > and add to your /etc/fstab: > linprocfs /compat/linux/proc linprocfs rw 0 0 >=20 > then you have to build the jdk port: > # cd /usr/ports/java/jdk14 > # make >=20 > you will get a couple of messages telling you to download some files > manually and to leave them in the /usr/ports/distfiles directory. > Download them with your favorite web browser and copy the files to the > distfiles directory (as root). Then type make again until the build start= s. >=20 Hi. Thank you very much for your help. I made it to this step but the make is never successful. After every attempt I get this: neptune3# make =3D=3D=3D> Building for jdk-1.4.2p6_4 # Start of jdk build bsd i586 1.4.2-p6 build started: 04-12-23 17:16 if [ -r ./../../deploy/make/Makefile ]; then \ ( cd ./../../deploy/make; gmake sanity EXTERNALSANITYCONTROL=3Dtrue CONTROL_TOPDIR=3D/usr/ports/java/jdk14/work/control CONTROL_TOPDIR_NAME=3Dcontrol ALT_OUTPUTDIR=3D/usr/ports/java/jdk14/work/control/build/bsd-i586=20 ARCH_DATA_MODEL=3D32 MILESTONE=3Dp6 BUILD_NUMBER=3Dbogosse_23_dec_2004_17_1= 6 ; ); \ fi gmake[1]: Entering directory `/usr/ports/java/jdk14/work/deploy/make' gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/deploy/make' gmake[1]: Entering directory `/usr/ports/java/jdk14/work/j2se/make' gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make' Build Machine Information: build machine =3D Build Directory Structure: CWD =3D /usr/ports/java/jdk14/work/control/make TOPDIR =3D ./../.. CONTROL_TOPDIR =3D ./../../control GENERICS_TOPDIR =3D ./../../generics HOTSPOT_TOPDIR =3D ./../../hotspot J2SE_TOPDIR =3D ./../../j2se MOTIF_TOPDIR =3D ./../../motif Hotspot Settings: HOTSPOT_BUILD_JOBS =3D Bootstrap Settings: JAVAWS_BOOTDIR =3D /usr/local/linux-sun-jdk1.4.2 BOOTSTRAP J2SDK VERSION: 1.4.2_05 OUTPUTDIR =3D /usr/ports/java/jdk14/work/control/build/bsd-i586 Build Tool Settings: UNIXCOMMAND_PATH =3D /bin/ COMPILER_PATH =3D /usr/bin/ DEVTOOLS_PATH =3D /usr/local/bin/ USRBIN_PATH =3D /usr/bin/ GCC32_COMPILER_PATH =3D /java/devtools/bsd/gcc3.2/ MOZILLA_PATH =3D MOZILLA_HEADERS_PATH =3D MOZILLA_LIBS_PATH =3D CC_VER =3D 3.4.2 PATH =3D /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/l= ocal/bin:/usr/X11R6/bin:/root/bin Build Directives: PEDANTIC =3D INSANE =3D Build Platform Settings: PLATFORM =3D bsd ARCH =3D i586 LIBARCH =3D i386 ARCH_FAMILY =3D i586 ARCH_DATA_MODEL =3D 32 OS_VERSION =3D 5.3-RELEASE TRUE_PLATFORM =3D FreeBSD (5.x CURRENT way) FREE_SPACE =3D 49112320 GNU Make Settings: MAKE =3D gmake MAKE VERSION =3D MAKECMDGOALS =3D sanity MAKEFLAGS =3D w -- BUILD_NUMBER=3Dbogosse_23_dec_2004_17_16 MILESTONE=3Dp6 ARCH_DATA_MODEL=3D32 ALT_OUTPUTDIR=3D/usr/ports/java/jdk14/work/control/build/bsd-i586 CONTROL_TOPDIR_NAME=3Dcontrol CONTROL_TOPDIR=3D/usr/ports/java/jdk14/work/control EXTERNALSANITYCONTROL=3Dtrue SHELL =3D /bin/sh Target Build Versions: JAVAWS_VERSION =3D 1.4.2 MILESTONE =3D p6 BUILD_NUMBER =3D bogosse_23_dec_2004_17_16 Bootstrap Settings: BOOTDIR =3D /usr/local/linux-sun-jdk1.4.2 BOOTSTRAP J2SDK VERSION: 1.4.2_05 OUTPUTDIR =3D /usr/ports/java/jdk14/work/control/build/bsd-i586 Build Tool Settings: UNIXCOMMAND_PATH =3D /bin/ COMPILER_PATH =3D /usr/bin/ DEVTOOLS_PATH =3D /usr/local/bin/ USRBIN_PATH =3D /usr/bin/ MOTIF_DIR =3D /usr/X11R6 CC_VER =3D 3.4.2 ZIP_VER =3D 2.3 PATH =3D /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/l= ocal/bin:/usr/X11R6/bin:/root/bin Build Directives: USE_ONLY_BOOTDIR_TOOLS =3D USE_HOTSPOT_INTERPRETER_MODE =3D PEDANTIC =3D DEV_ONLY =3D YES J2RE_ONLY =3D NO_DOCS =3D NO_IMAGES =3D TOOLS_ONLY =3D true INSANE =3D Build Platform Settings: PLATFORM =3D bsd ARCH =3D i586 LIBARCH =3D i386 ARCH_FAMILY =3D i586 ARCH_DATA_MODEL =3D 32 OS_VERSION =3D 5.3-RELEASE TRUE_PLATFORM =3D FreeBSD (5.x CURRENT way) FREE_SPACE =3D 49112320 GNU Make Settings: MAKE =3D gmake MAKE VERSION =3D MAKECMDGOALS =3D sanity MAKEFLAGS =3D SHELL =3D /bin/sh Target Build Versions: JDK_VERSION =3D 1.4.2 MILESTONE =3D p6 BUILD_NUMBER =3D bogosse_23_dec_2004_17_16 External File/Binary Locations: HOTSPOT_SERVER_PATH =3D /usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/server HOTSPOT_CLIENT_PATH =3D /usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/client MOTIF_DIR =3D /usr/X11R6 CACERTS_FILE =3D ./../src/share/lib/security/cacerts WARNING: Your build environment has the variable DEV_ONLY defined. This will result in a development-only build of the J2SE workspace, lacking the documentation build and installation bundles. Sanity check passed. (cd ./../build/bsd-i586/hotspot-i586/tmp; \ gmake -f /usr/ports/java/jdk14/work/hotspot/build/bsd/Makefile product \ HOTSPOT_BUILD_VERSION=3D1.4.2-p6-bogosse_23_dec_2004_17_16=20 GAMMADIR=3D/usr/ports/java/jdk14/work/hotspot ; ) gmake[1]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' (cd bsd_i486_compiler2/product; gmake) gmake[2]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i48= 6_compiler2/product' gmake[3]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i48= 6_compiler2/product' Rescanned ../generated/adfiles/bsd_i486.ad but encountered no changes. gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i48= 6_compiler2/product' gmake[3]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i48= 6_compiler2/product' Compiling ../generated/adfiles/ad_i486_format.cpp Compiling ../generated/adfiles/ad_i486_gen.cpp {standard input}: Assembler messages: {standard input}:3167: Warning: end of file not at end of a line; newline inserted {standard input}:3881: Error: junk `@GO' after expression {standard input}:3881: Error: suffix or operands invalid for `mov' g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See for instructions. gmake[3]: *** [ad_i486_gen.o] Error 1 gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i48= 6_compiler2/product' gmake[2]: *** [the_vm] Error 2 gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i48= 6_compiler2/product' gmake[1]: *** [product] Error 2 gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' gmake: *** [product] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk14. neptune3# What should I do next? I'm a bit at a loss here to really comprehend what the problem is....I tried even bouncing the machine and trying again...but that didn't work either.... Any suggestions still? Thank you again for your help!! :) > When build finishes, type: > make install distclean >=20 > and that=B4s it. >=20 >=20 > Jeff Mohney wrote: >=20 > >Please help. > >I looked here and it appears that both jdk and jvm are not supported > >in freebsd 5.3 > > > >http://www.freebsdfoundation.org/downloads/java-errata.shtml > > > >I do not have linux emulation nor am I skilled enough to emulate > >linux, install linux jvm/jdk, build natively, and then remove linux > >emulation from my OS. > > > >I have googled for how to's such as freebsddiary.org, etc, but any > >real how to's for a simpleton like myself are scarce.... > >it looks as though this hasn't made it into the 5.x branch yet..... > > > >YIKES....any advice/pointers/help? > >Thanks!!! > >_______________________________________________ > >freebsd-java@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-java > >To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > > > > > >=20 > From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 03:13:57 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1365D16A4CE for ; Fri, 24 Dec 2004 03:13:57 +0000 (GMT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF1DA43D49 for ; Fri, 24 Dec 2004 03:13:56 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 15E2856433; Fri, 24 Dec 2004 16:13:55 +1300 (NZDT) Date: Fri, 24 Dec 2004 16:13:55 +1300 From: Jonathan Chen To: Jeff Mohney Message-ID: <20041224031355.GA6604@osiris.chen.org.nz> References: <41C9D846.70105@akyasociados.com.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-java@freebsd.org Subject: Re: java for 5.3 please X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 03:13:57 -0000 On Thu, Dec 23, 2004 at 05:49:36PM -0500, Jeff Mohney wrote: [...] > Hi. Thank you very much for your help. I made it to this step but > the make is never successful. After every attempt I get this: > > neptune3# make > ===> Building for jdk-1.4.2p6_4 > # Start of jdk build > bsd i586 1.4.2-p6 build started: 04-12-23 17:16 > if [ -r ./../../deploy/make/Makefile ]; then \ > ( cd ./../../deploy/make; gmake sanity EXTERNALSANITYCONTROL=true > CONTROL_TOPDIR=/usr/ports/java/jdk14/work/control [...] Two things: 1. Recvsup to get jdk-1.4.2p7 2. Do a "make clean" before you do your "make". I suspect that old build files are interfering with your current build. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 06:27:01 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F0A216A4E8 for ; Fri, 24 Dec 2004 06:27:01 +0000 (GMT) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ABD143D58 for ; Fri, 24 Dec 2004 06:26:59 +0000 (GMT) (envelope-from phantom@FreeBSD.org.ua) Received: from phantom.cris.net (phantom@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id iBO6UEJY061136; Fri, 24 Dec 2004 08:30:14 +0200 (EET) (envelope-from phantom@FreeBSD.org.ua) Received: (from phantom@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id iBO6UEBl061135; Fri, 24 Dec 2004 08:30:14 +0200 (EET) (envelope-from phantom) Date: Fri, 24 Dec 2004 08:30:14 +0200 From: Alexey Zelkin To: Martin Dubuc Message-ID: <20041224063014.GA61061@phantom.cris.net> References: <20041223212417.55971.qmail@web50009.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041223212417.55971.qmail@web50009.mail.yahoo.com> X-Operating-System: FreeBSD 4.9-STABLE i386 User-Agent: Mutt/1.5.5.1i cc: java@FreeBSD.org Subject: Re: J2SDK 1.5 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 06:27:01 -0000 hi, I have a basicly working version of jdk1.5.0 (self-hosted build are successful) for FreeBSD/i386 4.10, FreeBSD/386 5.3 and FreeBSD/amd64 5.3 now. But it still requires much attention to implement MD and OSDEP bits for j2se libraries, so it can't be used by end-users yet. Expect notitifcation about public beta somethere in January. On Thu, Dec 23, 2004 at 01:24:17PM -0800, Martin Dubuc wrote: > Alexey, > > Can you tell me more about your attempts to get J2SDK > 1.5 running on FreeBSD? WHat version of FreeBSD have > you tried to run it on? > > Martin > > > On Mon, Dec 20, 2004 at 06:27:56PM -0800, Martin Dubuc > wrote: > > Have you tried to get the J2SDK 1.5 to run of > FreeBSD? We will soon > start working on the next release of our product and > would like to take > advantage of some of the new version of the J2SDK. > Would like to know > if it is realistic to project using 1.5 on the > upcoming weeks. > > Alexey Zelkin (phantom@FreeBSD.org) has made some > progress on this. He > would be better able to answer the question of how > realistic it would > be > to start using this. > > -- > Greg Lewis Email : > glewis@eyesbeyond.com > Eyes Beyond Web : > http://www.eyesbeyond.com > Information Technology FreeBSD : > glewis@FreeBSD.org > > Delete Reply Forward Spam Move... > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - What will yours do? > http://my.yahoo.com -- /* Alexey Zelkin && Independent Contractor */ /* phantom(at)FreeBSD.org && http://www.FreeBSD.org/java */ /* phantom(at)cris.net && http://www.FreeBSD.org.ua/ */ From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 08:09:09 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC88016A4CE for ; Fri, 24 Dec 2004 08:09:09 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A5B243D58 for ; Fri, 24 Dec 2004 08:09:09 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: by rproxy.gmail.com with SMTP id 40so91278rnz for ; Fri, 24 Dec 2004 00:09:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=da9d61Pat47+V5F1YabOcOvYcD1HSMnCmMc5RfpvgKuqtxQdumVu46QPcwihmo9TlAbW86RuHbRL5LewqqOslHnew8BPLouh5TZ9qLZ8GjEnd4/LCS5UdMm+Y+2A0YhkrDUZfpp2ijb3B8jZfKDFEXdVi7y9h/qaF3MJPfB1jo0= Received: by 10.38.19.34 with SMTP id 34mr254722rns; Fri, 24 Dec 2004 00:09:08 -0800 (PST) Received: by 10.38.8.79 with HTTP; Fri, 24 Dec 2004 00:09:08 -0800 (PST) Message-ID: Date: Fri, 24 Dec 2004 16:09:08 +0800 From: Jiawei Ye To: Alexey Zelkin In-Reply-To: <20041224063014.GA61061@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041223212417.55971.qmail@web50009.mail.yahoo.com> <20041224063014.GA61061@phantom.cris.net> cc: java@freebsd.org cc: Martin Dubuc Subject: Re: J2SDK 1.5 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jiawei Ye List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 08:09:10 -0000 On Fri, 24 Dec 2004 08:30:14 +0200, Alexey Zelkin wrote: > hi, > > I have a basicly working version of jdk1.5.0 (self-hosted build are successful) > for FreeBSD/i386 4.10, FreeBSD/386 5.3 and FreeBSD/amd64 5.3 now. > > But it still requires much attention to implement MD and OSDEP bits > for j2se libraries, so it can't be used by end-users yet. > > Expect notitifcation about public beta somethere in January. > That's really great news! We all appreciate the hard work that freebsd-java team put into making java work on FreeBSD. Jiawei -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 08:46:11 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65F8816A4CE; Fri, 24 Dec 2004 08:46:11 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E52943D3F; Fri, 24 Dec 2004 08:46:11 +0000 (GMT) (envelope-from phantom@FreeBSD.org) Received: from freefall.freebsd.org (phantom@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBO8k6kA079661; Fri, 24 Dec 2004 08:46:11 GMT (envelope-from phantom@freefall.freebsd.org) Received: (from phantom@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBO8jwog079655; Fri, 24 Dec 2004 08:45:58 GMT (envelope-from phantom) Date: Fri, 24 Dec 2004 08:45:58 GMT From: Alexey Zelkin Message-Id: <200412240845.iBO8jwog079655@freefall.freebsd.org> To: fox@vader.aacc.cc.md.us, phantom@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: java/68972: unpack crashes during make install of linux-sun-jdk-1.4.2.05 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 08:46:11 -0000 Synopsis: unpack crashes during make install of linux-sun-jdk-1.4.2.05 State-Changed-From-To: open->feedback State-Changed-By: phantom State-Changed-When: Fri Dec 24 08:44:40 GMT 2004 State-Changed-Why: Do you still expirience this problem ? If so, I'd suggest trying to install another linux_base port (preferably linux_base, v7.1) http://www.freebsd.org/cgi/query-pr.cgi?pr=68972 From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 08:47:57 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E820116A4CE; Fri, 24 Dec 2004 08:47:57 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C424343D49; Fri, 24 Dec 2004 08:47:57 +0000 (GMT) (envelope-from phantom@FreeBSD.org) Received: from freefall.freebsd.org (phantom@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBO8lvV6079719; Fri, 24 Dec 2004 08:47:57 GMT (envelope-from phantom@freefall.freebsd.org) Received: (from phantom@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBO8lv7l079715; Fri, 24 Dec 2004 08:47:57 GMT (envelope-from phantom) Date: Fri, 24 Dec 2004 08:47:57 GMT From: Alexey Zelkin Message-Id: <200412240847.iBO8lv7l079715@freefall.freebsd.org> To: phantom@FreeBSD.org, freebsd-java@FreeBSD.org, phantom@FreeBSD.org Subject: Re: ports/73279: www/firefox + java crash X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 08:47:58 -0000 Synopsis: www/firefox + java crash Responsible-Changed-From-To: freebsd-java->phantom Responsible-Changed-By: phantom Responsible-Changed-When: Fri Dec 24 08:47:31 GMT 2004 Responsible-Changed-Why: I'll take a look http://www.freebsd.org/cgi/query-pr.cgi?pr=73279 From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 08:49:46 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDADB16A4CE; Fri, 24 Dec 2004 08:49:46 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 983FF43D54; Fri, 24 Dec 2004 08:49:46 +0000 (GMT) (envelope-from phantom@FreeBSD.org) Received: from freefall.freebsd.org (phantom@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBO8nkFe079793; Fri, 24 Dec 2004 08:49:46 GMT (envelope-from phantom@freefall.freebsd.org) Received: (from phantom@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBO8nkZV079789; Fri, 24 Dec 2004 08:49:46 GMT (envelope-from phantom) Date: Fri, 24 Dec 2004 08:49:46 GMT From: Alexey Zelkin Message-Id: <200412240849.iBO8nkZV079789@freefall.freebsd.org> To: phantom@FreeBSD.org, freebsd-java@FreeBSD.org, phantom@FreeBSD.org Subject: Re: java/72151: JVM crash on 5.2.1-R X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 08:49:46 -0000 Synopsis: JVM crash on 5.2.1-R Responsible-Changed-From-To: freebsd-java->phantom Responsible-Changed-By: phantom Responsible-Changed-When: Fri Dec 24 08:49:22 GMT 2004 Responsible-Changed-Why: I'll track this one http://www.freebsd.org/cgi/query-pr.cgi?pr=72151 From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 08:51:45 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0340F16A4CE; Fri, 24 Dec 2004 08:51:45 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D122943D1F; Fri, 24 Dec 2004 08:51:44 +0000 (GMT) (envelope-from phantom@FreeBSD.org) Received: from freefall.freebsd.org (phantom@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBO8pih8080007; Fri, 24 Dec 2004 08:51:44 GMT (envelope-from phantom@freefall.freebsd.org) Received: (from phantom@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBO8piBe080003; Fri, 24 Dec 2004 08:51:44 GMT (envelope-from phantom) Date: Fri, 24 Dec 2004 08:51:44 GMT From: Alexey Zelkin Message-Id: <200412240851.iBO8piBe080003@freefall.freebsd.org> To: phantom@FreeBSD.org, freebsd-java@FreeBSD.org, phantom@FreeBSD.org Subject: Re: java/62837: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel. X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 08:51:45 -0000 Synopsis: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel. Responsible-Changed-From-To: freebsd-java->phantom Responsible-Changed-By: phantom Responsible-Changed-When: Fri Dec 24 08:51:20 GMT 2004 Responsible-Changed-Why: Remind me to handle this one http://www.freebsd.org/cgi/query-pr.cgi?pr=62837 From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 08:56:03 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A77C16A4CE; Fri, 24 Dec 2004 08:56:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 503F843D41; Fri, 24 Dec 2004 08:56:03 +0000 (GMT) (envelope-from phantom@FreeBSD.org) Received: from freefall.freebsd.org (phantom@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBO8u3UH080129; Fri, 24 Dec 2004 08:56:03 GMT (envelope-from phantom@freefall.freebsd.org) Received: (from phantom@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBO8u25X080125; Fri, 24 Dec 2004 08:56:02 GMT (envelope-from phantom) Date: Fri, 24 Dec 2004 08:56:02 GMT From: Alexey Zelkin Message-Id: <200412240856.iBO8u25X080125@freefall.freebsd.org> To: herve.quiroz@esil.univ-mrs.fr, phantom@FreeBSD.org, freebsd-java@FreeBSD.org, phantom@FreeBSD.org Subject: Re: ports/65335: [PATCH] java/jdk14: use bsd.java.mk for JDK bootstrap setting X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 08:56:03 -0000 Synopsis: [PATCH] java/jdk14: use bsd.java.mk for JDK bootstrap setting State-Changed-From-To: open->closed State-Changed-By: phantom State-Changed-When: Fri Dec 24 08:54:08 GMT 2004 State-Changed-Why: As I told before, I am very unhappy about idea of moving bootstrap logic into shared place. I am sorry, but I have to reject this patch. :( Responsible-Changed-From-To: freebsd-java->phantom Responsible-Changed-By: phantom Responsible-Changed-When: Fri Dec 24 08:54:08 GMT 2004 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=65335 From owner-freebsd-java@FreeBSD.ORG Fri Dec 24 15:21:06 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7168416A4CE for ; Fri, 24 Dec 2004 15:21:06 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB62443D39 for ; Fri, 24 Dec 2004 15:21:05 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.2] (chrishodgins.force9.co.uk [84.92.20.141]) iBOFKskh024666 for ; Fri, 24 Dec 2004 15:20:54 GMT Message-ID: <41CC34BC.2090003@cis.strath.ac.uk> Date: Fri, 24 Dec 2004 15:24:44 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20041221) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk Subject: Java3D and Firefox X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 15:21:06 -0000 Hi, I would like to bring to your attention this post to the mailing list: http://www.mailarch.org/java3d_and_mozilla-2651686-2863-a.html The basic summary is that the Java3D port works great in appletviewer or running normally with the java command. However the port seems not to work on firefox and in the posters case mozilla. Insetad when running the applets a red cross appears in the corner of the applet and the java console shows there was a NoClassDefException thrown. The OP obviously spent a few painful hours working out what caused it and tracked it down to the creation of the file ~/.java/deployment/log/plugin142.trace. The fix suggested was to chmod the log directory to 555 to stop the creation of the file. I have just installed the port and have exactly the same problem. I used the OP's fix and everything worked again. I don't know enough about the Java ports or have the time to look into and I am happy it works now. However, I would imagine someone should take a look at it and see if it has a proper fix. This is what I am running: $ uname -a FreeBSD paranoia 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Fri Dec 3 18:15:16 GMT 2004 root@paranoia:/usr/obj/usr/src/sys/paranoia i386 firefox-1.0_5,1 java3d-1.3.1_1 javavmwrapper-2.0_2 jdk-1.4.2p6_7 jdk-doc-1.4.2 linux-sun-jdk-1.4.2.06 I have also just realised that any java3d applet runs at 100% cpu. Chris