No Spring WebApplicationInitializer types detected on classpath
Asked by Veridocs:

I have installed a clean copy of Bamboo 5.10.2 on Windows Server 2012, and when I try to load it, I get the following errors in my log:

```
02-Mar-2016 10:17:46.490 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath02-Mar-2016 10:17:46.490 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class com.atlassian.bamboo.setup.BootstrapLoaderListener java.lang.UnsupportedClassVersionError: com/atlassian/bamboo/setup/BootstrapLoaderListener : Unsupported major.minor version 52.0 (unable to load class com.atlassian.bamboo.setup.BootstrapLoaderListener)	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2480)	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:857)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1282)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1164)	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4651)	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)02-Mar-2016 10:17:46.490 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class com.atlassian.bamboo.ww2.actions.setup.BambooContextLoaderListener java.lang.UnsupportedClassVersionError: com/atlassian/bamboo/ww2/actions/setup/BambooContextLoaderListener : Unsupported major.minor version 52.0 (unable to load class com.atlassian.bamboo.ww2.actions.setup.BambooContextLoaderListener)	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2480)	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:857)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1282)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1164)	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4651)	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)02-Mar-2016 10:17:46.490 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class com.atlassian.bamboo.upgrade.UpgradeLauncher java.lang.UnsupportedClassVersionError: com/atlassian/bamboo/upgrade/UpgradeLauncher : Unsupported major.minor version 52.0 (unable to load class com.atlassian.bamboo.upgrade.UpgradeLauncher)	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2480)	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:857)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1282)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1164)	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4651)	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)02-Mar-2016 10:17:46.490 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)	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2480)	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:857)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1282)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1164)	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4651)	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)02-Mar-2016 10:17:46.490 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Skipped installing application listeners due to previous error(s)
```

This was a completely clean install, and I have Confluence/JIRA/Crucible all working on the same server.

Any thoughts on how to fix this?


Answers:
author: ThiagoBomfim
body: Hi Chad,

Please refer to this link:

* [Configuring Bamboo on Startup](https://confluence.atlassian.com/bamboo/configuring-bamboo-on-start-up-289277345.html#ConfiguringBambooonstart-up-Windowsservice)

On the Java tab you probably have the service pointing to the old JRE dll. You will have to get the service pointing to the same JRE as the one you mentioned above.

Let us know how you go.

Best,  
Thiago


author: Marcin Gardias
body: Bamboo 5.10 requires Java 1.8 to run.

comments: author: Veridocs
body: I set the JAVA_HOME to 1.8.0\&3, and can now start it by calling bin\\bamboo-start, but when I run as a service, still get the above errors.


author: Alexey Chystoprudov
body: Check your System JAVA_HOME and PATH properties. It should point to JDK 1.8


Tags: bamboo-administration