cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajani Karuturi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-6360) Usage server failed to start with 4.4 build
Date Fri, 08 Aug 2014 12:42:13 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-6360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14090718#comment-14090718
] 

Rajani Karuturi commented on CLOUDSTACK-6360:
---------------------------------------------

yes. tested on centos and ubuntu (though on docker containers and not on vms. )

https://reviews.apache.org/r/22721/

> Usage server failed to start with 4.4 build
> -------------------------------------------
>
>                 Key: CLOUDSTACK-6360
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6360
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Install and Setup
>    Affects Versions: 4.3.0, 4.4.0
>         Environment: 4.4 Build
>            Reporter: Rayees Namathponnan
>            Assignee: Rayees Namathponnan
>            Priority: Critical
>             Fix For: 4.4.0
>
>
> step 1 : Create 4.4 build and install usage server
> step 2 : start usage sever 
> Result 
> Failed to start usage server with below error 
> java.lang.UnsupportedClassVersionError: com/cloud/usage/UsageServer : Unsupported major.minor
version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>         at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:151)
> 08/04/2014 12:32:19 5982 jsvc.exec error: Cannot load daemon
> 08/04/2014 12:32:19 5980 jsvc.exec error: Service exit with a return value of 3
> cloudstack-usage.err (END)
> We already defined 4.4 support with JAVA IP, but usage server trying to start with 1.6

> we need to fix this in vi /etc/rc.d/init.d/cloudstack-usage
> # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not defined in
$DEFAULT)
> JDK_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-openjdk-i386 /usr/lib/jvm/java-6-openjdk-amd64
/usr/lib/jvm/java-6-sun /usr/lib/jvm/jre-1.6.0 /usr/lib/j2sdk1.5-sun /usr/lib/jre-openjdk"



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message