Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 947A411C89 for ; Wed, 3 Sep 2014 23:45:58 +0000 (UTC) Received: (qmail 34809 invoked by uid 500); 3 Sep 2014 23:45:58 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 34762 invoked by uid 500); 3 Sep 2014 23:45:58 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 34750 invoked by uid 99); 3 Sep 2014 23:45:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 23:45:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.180] (HELO mail-vc0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 23:45:53 +0000 Received: by mail-vc0-f180.google.com with SMTP id lf12so9497409vcb.25 for ; Wed, 03 Sep 2014 16:45:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=W8bDmBNB/SZKTc/PRg7bdm1Zx1FsmyAFTVyKCJ81Sec=; b=WLY3UzRi5DyCDytL+sUDyApP+zUu5XYIiUZSDzC+x6pVe0ugW3992abtSgRKh1bLLM FPNhLszTc51gUron3KNjuzialO7j3Uw2CY5dse+RMgIExoXr281BoUVefViwUpUw7mDH OQGpUggezYMCTt9zoqam1KhEvjWlUOMEgTs1eG4umkmNBRV/C4DSoJRo3b1TfoPs8b3D qXG/qkRH+Q7HMr0aOALxl7kqezI6hGwge8njuZF3v+JCdJYJPwOUAmcTEtmm52tvUnzU nvbKoFKHYmiLqgFMBo1ShPoiAnzVPhXViPKSJ3XtIYg9Zqp4RcohMHuTKGbfkHsxSCfG g3CA== X-Gm-Message-State: ALoCoQmnfWsA8xLtoi/EZu8FhgW956Rv1MbtZWKBNCPdWjdaVY4nJXqCKDRp6a8KyGhSL5QROwv5 X-Received: by 10.220.127.17 with SMTP id e17mr502694vcs.56.1409787931383; Wed, 03 Sep 2014 16:45:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.79.146 with HTTP; Wed, 3 Sep 2014 16:45:11 -0700 (PDT) In-Reply-To: <20140903234055.16961.25713@reviews.apache.org> References: <20140903093213.16961.33225@reviews.apache.org> <20140903234055.16961.25713@reviews.apache.org> From: David Nalley Date: Wed, 3 Sep 2014 19:45:11 -0400 Message-ID: Subject: Re: Review Request 25289: CLOUDSTACK-7474-Failed-to-start-MS-with-java7-version To: "dev@cloudstack.apache.org" , Alex Brett Cc: Hugo Trippaers , Frank Zhang , Rajani Karuturi , Rayees Namathponnan Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Sep 3, 2014 at 7:40 PM, Alex Brett wrote: > > >> On Sept. 3, 2014, 9:32 a.m., Rajani Karuturi wrote: >> > client/tomcatconf/classpath.conf.in, line 37 >> > >> > >> > Can we get the JAVA_HOME from installed java instead of hardcoding= it? The path may be different for different os versions or distributions. >> > >> > something similar to what we already did at https://git-wip-us.apa= che.org/repos/asf?p=3Dcloudstack.git;a=3Dcommit;h=3Dc468228fe807c621decc591= 9dadae9bcbb38c753 >> > >> > May we should move this to a common file like setenv.sh and use it= everywhere. >> >> Frank Zhang wrote: >> +1 >> >> Rayees Namathponnan wrote: >> Hi Rajani, >> >> I checked your change list, if your machine in running with default = java version is 1.6, this will always return 1.6 and management server wil= l fails to start >> >> >> Even usage sever will be an issue in 4.5, if your machine is runnign= with java1.6 >> https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;a=3Dblobd= iff;f=3Dpackaging/centos63/cloud-usage.rc;h=3D8434e4d568a066d0766d055847725= b1779eb33c4;hp=3D617037995755024a8c9d5e492bb56b7cc938e48f;hb=3Dc468228fe807= c621decc5919dadae9bcbb38c753;hpb=3D75c9a20c7773c268c02fb006d1a7820cb427c94c >> >> >> Regards, >> Rayees > > To expand on this a little bit - in RHEL 6.3 if you have both Java 1.6 an= d Java 7 installed, the default behaviour with the alternatives mechanism m= akes 1.6 the default Java instance (you can manually set 1.7 as the default= , but this is an extra step). This means that the management server / KVM a= gent then fail to work. > > In 6.5 if you have both then by default Java 7 is used, and all works fin= e (not sure about 6.4 or 7, I've not tested them). > > > Perhaps we add a Conflicts with java 1.6 - it would be somewhat ugly, and if you run into it you would need to know to yum remove, but that would keep you from having an installation at all rather than expecting it to work and trying to debug.