[ https://issues.apache.org/jira/browse/CLOUDSTACK-6360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129160#comment-14129160 ]
ASF subversion and git services commented on CLOUDSTACK-6360: ------------------------------------------------------------- Commit 90287cc60aca81fb9a372584936c557d446739f9 in cloudstack's branch refs/heads/master from rayeesn [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=90287cc ] CLOUDSTACK-6360: adding mysql-connector to class path and it will be loaded while starting cloudstack-usage > 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.3.4#6332)