cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rayees Namathponnan (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-7676) Usage server failed to start if default java version is 1.6
Date Wed, 12 Nov 2014 21:09:34 GMT

     [ 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)

Mime
View raw message