On Wed, Sep 3, 2014 at 7:40 PM, Alex Brett <alex.br...@citrix.com> wrote:
>
>
>> On Sept. 3, 2014, 9:32 a.m., Rajani Karuturi wrote:
>> > client/tomcatconf/classpath.conf.in, line 37
>> > <https://reviews.apache.org/r/25289/diff/1/?file=674877#file674877line37>
>> >
>> >     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.apache.org/repos/asf?p=cloudstack.git;a=commit;h=c468228fe807c621decc5919dadae9bcbb38c753
>> >
>> >     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 will 
>> 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=cloudstack.git;a=blobdiff;f=packaging/centos63/cloud-usage.rc;h=8434e4d568a066d0766d055847725b1779eb33c4;hp=617037995755024a8c9d5e492bb56b7cc938e48f;hb=c468228fe807c621decc5919dadae9bcbb38c753;hpb=75c9a20c7773c268c02fb006d1a7820cb427c94c
>>
>>
>>     Regards,
>>     Rayees
>
> To expand on this a little bit - in RHEL 6.3 if you have both Java 1.6 and 
> Java 7 installed, the default behaviour with the alternatives mechanism makes 
> 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 agent 
> then fail to work.
>
> In 6.5 if you have both then by default Java 7 is used, and all works fine 
> (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.

Reply via email to