I've recreated the symbolic links to point to java-1.7.65-openjdk.x86_64 and it now starts. However I've bumped into a database upgrade issue which is linked to the system templates. I'm fixing that now.
Thanks for pointing me in the right direction. Cheers Osay On 5 February 2015 at 16:53, Osay Osman Yuuni <[email protected]> wrote: > HI Lucian, > Output shows this is pointing to the 1.6 sdk > > lrwxrwxrwx 1 root root 38 Feb 5 11:11 /etc/alternatives/java_sdk -> > /usr/lib/jvm/java-1.6.0-openjdk.x86_64 > lrwxrwxrwx 1 root root 26 Feb 5 11:11 /usr/lib/jvm/java -> > /etc/alternatives/java_sdk > > Nothing is customised in /etc/sysconfig/tomcat6. I guess I have to update > the symbolic link to point to the 1.7 binaries? > > Osay > > On 5 February 2015 at 16:15, Nux! <[email protected]> wrote: > >> Hello, >> >> ls -al /usr/lib/jvm/java /etc/alternatives/java_sdk ? >> Anything customised in /etc/sysconfig/tomcat6 ? >> >> -- >> Sent from the Delta quadrant using Borg technology! >> >> Nux! >> www.nux.ro >> >> ----- Original Message ----- >> > From: "Osay Osman Yuuni" <[email protected]> >> > To: [email protected] >> > Sent: Thursday, 5 February, 2015 13:41:40 >> > Subject: Re: Issues Launching Cloudstack Management after upgrade to >> 4.4.2 >> >> > Hi Andrei, >> > >> > Thanks for the response. I already tried alternatives --config java (I >> use >> > CentOS) and it shows java 1.7 to be the current. BTW what is the >> current >> > version of tomcat that ACS 4.4.2 uses? Is it still 6.024? >> > >> > Cheers >> > Osay >> > >> > On 5 February 2015 at 14:31, Andrei Mikhailovsky <[email protected]> >> wrote: >> > >> >> Osay, >> >> >> >> I've had this issue when I was doing the upgrade on Ubuntu 14.04. What >> I >> >> had to do was to change the global java settings for the OS using >> >> update-alternatives. It has been set to java 1.6. I've changed it to >> java >> >> 1.7 and the management server started without issues. >> >> >> >> Andrei >> >> ----- Original Message ----- >> >> >> >> > From: "Osay Osman Yuuni" <[email protected]> >> >> > To: [email protected] >> >> > Sent: Thursday, 5 February, 2015 11:32:07 AM >> >> > Subject: Issues Launching Cloudstack Management after upgrade to >> >> > 4.4.2 >> >> >> >> > Hi all, >> >> > I've just upgraded to 4.4.2 but cannot access the GUI. Catalina.out >> >> > shows >> >> > that tomcat 6.024 is using the jre-1.6 instead of the jre-1.7. I've >> >> > updated the JAVA_HOME environment variable but I still get the same >> >> > error. >> >> > I'm not sure what the issue might be. Below is a snippet of the >> >> > output >> >> > from catalina.out. I assume the java.library.path settings have not >> >> > been >> >> > updated somewhere. I need help setting this so that tomcat can use >> >> > the >> >> > right libraries. >> >> >> >> > TIA >> >> > Osay >> >> >> >> > ======= snip ======== >> >> >> >> > Feb 5, 2015 12:43:25 PM org.apache.catalina.core.AprLifecycleListener >> >> > init >> >> > INFO: The APR based Apache Tomcat Native library which allows optimal >> >> > performance in production environments was not found on the >> >> > java.library.path: >> >> > >> >> >> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.34.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1 >> >> > >> >> >> .6.0-openjdk-1.6.0.34.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.34.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib >> >> > Feb 5, 2015 12:43:25 PM org.apache.tomcat.util.net.NioSelectorPool >> >> > getSharedSelector >> >> > INFO: Using a shared selector for servlet write/read >> >> > Feb 5, 2015 12:43:25 PM org.apache.coyote.http11.Http11NioProtocol >> >> > init >> >> > INFO: Initializing Coyote HTTP/1.1 on http-8080 >> >> > Feb 5, 2015 12:43:25 PM org.apache.tomcat.util.net.NioSelectorPool >> >> > getSharedSelector >> >> > INFO: Using a shared selector for servlet write/read >> >> > Feb 5, 2015 12:43:25 PM org.apache.coyote.http11.Http11NioProtocol >> >> > init >> >> > INFO: Initializing Coyote HTTP/1.1 on http-7080 >> >> > Feb 5, 2015 12:43:25 PM org.apache.catalina.startup.Catalina load >> >> > INFO: Initialization processed in 1067 ms >> >> > Feb 5, 2015 12:43:25 PM org.apache.catalina.core.StandardService >> >> > start >> >> > INFO: Starting service Catalina >> >> > Feb 5, 2015 12:43:25 PM org.apache.catalina.core.StandardEngine start >> >> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.24 >> >> > Feb 5, 2015 12:43:25 PM org.apache.catalina.startup.HostConfig >> >> > deployDirectory >> >> > INFO: Deploying web application directory client >> >> > Feb 5, 2015 12:43:26 PM org.apache.catalina.loader.WebappClassLoader >> >> > validateJarFile >> >> > INFO: >> >> > >> >> >> validateJarFile(/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/servlet-api-2.5-20081211.jar) >> >> > - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending >> >> > class: >> >> > javax/servlet/Servlet.class >> >> > Feb 5, 2015 12:43:26 PM org.apache.catalina.loader.WebappClassLoader >> >> > validateJarFile >> >> > INFO: >> >> > >> >> >> validateJarFile(/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/tomcat-embed-core-7.0.30.jar) >> >> > - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending >> >> > class: >> >> > javax/servlet/Servlet.class >> >> > Feb 5, 2015 12:43:26 PM org.apache.tomcat.util.modeler.Registry >> >> > registerComponent >> >> > SEVERE: Null component >> >> > >> >> >> Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/client,J2EEApplication=none,J2EEServer=none >> >> > Feb 5, 2015 12:43:26 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.CloudStackContextLoaderL >> >> > istener) >> >> > at >> >> > >> >> >> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2334) >> >> > at >> >> > >> >> >> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:976) >> >> > at >> >> > >> >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1450) >> >> > 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:294) >> >> > at >> >> > >> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1046) >> >> > at >> >> > >> >> >> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265) >> >> > at >> >> > >> >> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) >> >> > at >> >> > >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4616) >> >> > 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) >> >> > at >> >> > >> >> >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) >> >> > at >> >> > >> >> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) >> >> > at >> >> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) >> >> > at >> >> > org.apache.catalina.core.StandardHost.start(StandardHost.java:722) >> >> > at >> >> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) >> >> > at >> >> > >> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) >> >> > at >> >> > >> org.apache.catalina.core.StandardService.start(StandardService.java:516) >> >> > at >> >> > >> org.apache.catalina.core.StandardServer.start(StandardServer.java:710) >> >> > at org.apache.catalina.startup.Catalina.start(Catalina.java:593) >> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> > at >> >> > >> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> >> > at >> >> > >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> >> > at java.lang.reflect.Method.invoke(Method.java:622) >> >> > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) >> >> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) >> >> > Feb 5, 2015 12:43:26 PM org.apache.coyote.http11.Http11NioProtocol >> >> > start >> >> > INFO: Starting Coyote HTTP/1.1 on http-8080 >> >> > Feb 5, 2015 12:43:26 PM org.apache.jk.common.ChannelSocket init >> >> > INFO: JK: ajp13 listening on /0.0.0.0:20400 >> > >
