Problem after installing Bamboo

I installed bamboo as a service on my centos 6 server, but when i start it and try to access the url (localhost:8085) there is nothing running. i accessed the logs and found this error message. 


SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class com.atlassian.bamboo.session.SeraphHttpSessionDestroyedListener
java.lang.UnsupportedClassVersionError: com/atlassian/bamboo/session/SeraphHttpSessionDestroyedListener : Unsupported major.minor version 52.0 (unable to load class com.atlassian.bamboo.session.SeraphHttpSessionDestroyedListener)

 

can anyone please help me get this running? 

 

1 answer

2 votes
Bruno Rosa Atlassian Team Dec 26, 2016

Hi Thiago, the Unsupported major.minor version 52.0 error happens when we try to run a class that was compiled using the Java 8 compiler into a lower Java version e.g. Java 7 or Java 6. This is the case with the Bamboo Server (and remote agents) after Bamboo 5.10.x. Java is backward compatible, meaning we can run a Java class file (or JAR file) compiled in a lower version (Java 6) into a higher version e.g. Java 8, but it doesn't mean we can run a class compiled using Java 7 into Java 5. Why? because higher versions usually have features that are not supported by lower versions.

If you have multiple Java versions installed, please make sure that the latest one comes first in the PATH environment variable. This is to say, you need to ensure Bamboo is starting up using Java 8, otherwise it won't work.

i do have more than one java version installed. how do i set the PATH so the latest comes first? I thought that only setting the JAVA_HOME variable to the correct path would do the trick, but i am probably mistaken sad

Bruno Rosa Atlassian Team Dec 26, 2016

Thiago, if you're running Bamboo on a Linux box, this is what I mean: http://superuser.com/questions/135580/multiple-java-environment-on-the-same-linux-machine. On the other hand, if you want, you can also force Bamboo to start using a specific Java version. In this case you can edit the <BAMBOO_INSTALL>/bin/start-bamboo.sh file and add the following to the first line of the file:

JAVA_HOME="path/to/java"

Please replace the path with the actual path to Java 8.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,782 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you