You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Rayees Namathponnan (JIRA)" <ji...@apache.org> on 2014/11/12 22:09:34 UTC
[jira] [Resolved] (CLOUDSTACK-7676) Usage server failed to start if
default java version is 1.6
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rayees Namathponnan resolved CLOUDSTACK-7676.
---------------------------------------------
Resolution: Fixed
> Usage server failed to start if default java version is 1.6
> -----------------------------------------------------------
>
> Key: CLOUDSTACK-7676
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7676
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Install and Setup
> Affects Versions: 4.5.0
> Reporter: Rayees Namathponnan
> Assignee: Rayees Namathponnan
> Priority: Critical
> Fix For: 4.5.0
>
>
> Steps to reproduce
> Install usage server on RHEL 6.3 machine
> check default. java version
> start usage server
> Result
> If default java versionis java 1.6, then management serer will fails to start
> Solution
> While starting usage server, we need to check java 1.7 exist or not, if exist then we need to start usage server with java 1.7
> #The first existing directory is used for JAVA_HOME (if JAVA_HOME is not defined in $DEFAULT)
> if [[ ! -d "$JAVA_HOME" && -d /usr/lib/jvm/jre-1.7.0 ]]; then
> export JAVA_HOME=/usr/lib/jvm/jre-1.7.0
> PATH=$JAVA_HOME/bin:$PATH
> fi
> # use $JAVA_HOME if defined
> if [ -n "$JAVA_HOME" ] ; then
> return
> fi
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)