From owner-freebsd-java@FreeBSD.ORG Mon Dec 5 13:57:27 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 5B4CC16A41F for ; Mon, 5 Dec 2005 13:57:27 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7969643D62 for ; Mon, 5 Dec 2005 13:57:25 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost [127.0.0.1]) by arabica.esil.univ-mrs.fr (8.13.4/8.13.4) with ESMTP id jB5DvEdn053352; Mon, 5 Dec 2005 14:57:14 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.4/8.13.4/Submit) id jB5DvErT053321; Mon, 5 Dec 2005 14:57:14 +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: Mon, 5 Dec 2005 14:57:13 +0100 From: Herve Quiroz To: Panagiotis Astithas Message-ID: <20051205135713.GA14943@arabica.esil.univ-mrs.fr> Mail-Followup-To: Panagiotis Astithas , freebsd-java@freebsd.org References: <43942C07.1030604@ebs.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43942C07.1030604@ebs.gr> User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@freebsd.org Subject: Re: JBoss4 installation weirdness X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 13:57:27 -0000 Hi Panagiotis, On Mon, Dec 05, 2005 at 02:01:11PM +0200, Panagiotis Astithas wrote: > As I found out the hard way today, jboss4 installs different things > depending on whether it is being built using jdk14 or jdk15. In the > latter case you get EJB3 stuff that (unfortunately for me) include old > versions of commons-stuff which may create conflicts with a deployed > app, thanks to the funky jboss classloader architecture. The binaries > that jboss.com ships evidently contain stuff that you get when you build > with jdk14. I don't know much about JBoss 4 but the common practice when ports install different stuff depending on JDK version is to use a PKGNAMESUFFIX to indicate the JDK version used (e.g. '-jdk14'). java/openjit is one good example. > I'm not sure if it is possible or even reasonable to change the current > behavior (I'm overriding JAVA_PREFERRED_PORTS), but perhaps we could add > an informative message when building the port to inform the user. I can think of two approaches here. Either we disallow Java 1.5 (since there seems to be trouble with it anyway, as you describe above), or we could just enforce JAVA_VERSION?=1.4 and let the user know that he may override JAVA_VERSION if he wants another JDK version. Indeed users don't always read the messages from the install log and the JDK that is picked up does not only depends on JAVA_PREFERRED_PORTS (it also depends on the JDKs that are installed at the time you install a port). So I think it's better to enforce a known-to-be-stable flavor of the port and allow the users who know what they do to request a different flavor. I also wondering what could happen if you use java/jdk15 to build the port and then java/jdk14 to run it... In case this causes trouble, it would confirm the fact that we need to enforce either "1.4" or "1.5" (thus no "1.4+"). Herve