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] [Closed] (CLOUDSTACK-7474) Failed to start MS with java7 version mismatch error
Date Wed, 17 Sep 2014 21:34:34 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rayees Namathponnan closed CLOUDSTACK-7474.
-------------------------------------------

Verified with latest build 

> Failed to start MS with java7 version mismatch error
> ----------------------------------------------------
>
>                 Key: CLOUDSTACK-7474
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7474
>             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 
> Step 1: Deploy new RHEL 6.3 machine
> Step 2 : Install MS
> Step 3: run deploy script and start MS
> Result 
> Installation completed successfully,  both java7 and java got installed as part of MS
installation, but MS failed to start with below error 
> SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/client,J2EEApplication=none,J2EEServer=none
> Sep 2, 2014 11:11:54 PM org.apache.catalina.startup.HostConfig deployDirectory
> SEVERE: Error deploying web application directory client
> java.lang.UnsupportedClassVersionError: org/apache/cloudstack/spring/module/web/CloudStackContextLoaderListener
: Unsupported major.minor version 51.0 (unable to load class org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener)
>         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2335)
>         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:976)
>         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1451)
>         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
>         at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:145)
>         at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)
>         at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:56)
>         at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)
>         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1074)
>         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4377)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
>         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> Default JAva version in this machcne is java6,  while start MS, we need to pick java7
from /usr/lib/jvm/jre-1.7.0 or $JAVA_HOME
> We need to fix this in classpath.conf
> export CLASSPATH
> if   [[ ! -d "$JAVA_HOME" && -d /usr/lib/jvm/jre-1.7.0 ]]; then
>      export JAVA_HOME=/usr/lib/jvm/jre-1.7.0
> fi
> PATH=$JAVA_HOME/bin:/sbin:/usr/sbin:$PATH
> export PATH 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message