Unable to start Confluence after upgrade
Asked by Bron:

Hi Guys,

I have just installed 3.5.17 which I am upgrading from 3.1. I get the following error when I try to start the tomcat:

Can't register valve org.apache.catalina.core.StandardContextValve\[\]

java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.atlassian.confluence.logging.ConfluenceHomeLogAppender)

at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)

at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:164)

at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)

at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320)

at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:121)

at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:664)

at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)

at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)

at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)

at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)

at org.apache.log4j.LogManager.\<clinit\>(LogManager.java:125)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243)

at org.slf4j.bridge.SLF4JBridgeHandler.getSLF4JLogger(SLF4JBridgeHandler.java:159)

at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:244)

at java.util.logging.Logger.log(Logger.java:440)

at java.util.logging.Logger.doLog(Logger.java:462)

at java.util.logging.Logger.logp(Logger.java:578)

at com.sun.jmx.trace.TraceManager.send(TraceManager.java:219)

at com.sun.jmx.trace.Trace.send(Trace.java:110)

at com.sun.jmx.mbeanserver.RepositorySupport.trace(RepositorySupport.java:91)

at com.sun.jmx.mbeanserver.RepositorySupport.trace(RepositorySupport.java:96)

at com.sun.jmx.mbeanserver.RepositorySupport.contains(RepositorySupport.java:473)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:556)

at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:619)

at org.apache.tomcat.util.modeler.Registry.registerComponent(Registry.java:799)

at org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:302)

at org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4607)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

at org.apache.catalina.core.StandardService.start(StandardService.java:525)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

As usual the help is much appreciated :)


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: What is your Java version? Upgrade it to Java 1.6 and see if it helps.

comments: author: Bron
body: Thanks Jobin, that was my issue I was using 1.5, it works now :)


Tags: tomcat

upgrade