org.springframework.beans.factory.CannotLoadBeanClassException

Error loading class [nl.surfnet.mujina.util.TimeService] for bean with name 'timeService' defined in ServletContext resource [/WEB-INF/applicationContext-sp-config.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: nl/surfnet/mujina/util/TimeService : Unsupported major.minor version 51.0


Solutions on the web611

Solution icon of github
Error loading class [nl.surfnet.mujina.util.TimeService] for bean with name 'timeService' defined in ServletContext resource [/WEB-INF/applicationContext-sp-config.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: nl/surfnet/mujina/util/TimeService : Unsupported major.minor version 51.0

Solution icon of sourceforge
Error loading class \[info.jtrac.config.JtracConfigurer\] for bean with name 'info.jtrac.config.JtracConfigurer\#0' defined in ServletContext resource \[/WEB-INF/applicationContext.xml\]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: info/jtrac/config/JtracConfigurer (Unsupported major.minor version 49.0)

Solution icon of googlegroups
via Google Groups by Unknown author, 1 year ago
Error loading class [com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter] for bean with name 'CsrfPreventionFilter' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested

Solution icon of googlegroups
via Google Groups by Flickema, Drew, 2 months ago
Error loading class [com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter] for bean with name 'CsrfPreventionFilter' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested

Solution icon of github
Error loading class [com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter] for bean with name 'CsrfPreventionFilter' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested

Solution icon of googlegroups
Error loading class [com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter] for bean with name 'CsrfPreventionFilter' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested

Solution icon of github
via GitHub by dubima
, 3 months ago
Error loading class [org.libresonic.player.dao.PlayerDao] for bean with name 'playerDao' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: problem with class file or dependent class; nested exception is

Solution icon of github
via GitHub by chatainsim
, 6 months ago
Error loading class [org.libresonic.player.dao.PlayerDao] for bean with name 'playerDao' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: problem with class file or dependent class; nested exception is

Solution icon of github
via GitHub by dudarkoas
, 8 months ago
Error loading class [com.amirov.jirareporter.JIRARunner] for bean with name 'jiraRunner' defined in plugin: jirareporter#jirareporter-agent.jar!/META-INF/build-agent-plugin-jirareporter.xml: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/amirov/jirareporter/JIRARunner : Unsupported major.minor version 51.0

Solution icon of coderanch
via Coderanch by karen mansukhani, 7 months ago
Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.dbcp.BasicDataSource)

Stack trace

  • org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [nl.surfnet.mujina.util.TimeService] for bean with name 'timeService' defined in ServletContext resource [/WEB-INF/applicationContext-sp-config.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: nl/surfnet/mujina/util/TimeService : Unsupported major.minor version 51.0 at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1265)[spring-beans-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)[spring-beans-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331)[spring-beans-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:897)[spring-beans-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:586)[spring-beans-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)[spring-context-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)[spring-context-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)[jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)[jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)[jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)[jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)[jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)[maven-jetty-plugin-6.1.26.jar:6.1.26] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)[jetty-util-6.1.26.jar:6.1.26] at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)[jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)[jetty-6.1.26.jar:6.1.26] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)[jetty-util-6.1.26.jar:6.1.26] at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)[jetty-6.1.26.jar:6.1.26] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)[jetty-util-6.1.26.jar:6.1.26] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)[jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.Server.doStart(Server.java:224)[jetty-6.1.26.jar:6.1.26] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)[jetty-util-6.1.26.jar:6.1.26] at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)[maven-jetty-plugin-6.1.26.jar:6.1.26] at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)[maven-jetty-plugin-6.1.26.jar:6.1.26] at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)[maven-jetty-plugin-6.1.26.jar:6.1.26] at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)[maven-jetty-plugin-6.1.26.jar:6.1.26] at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)[maven-jetty-plugin-6.1.26.jar:6.1.26]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
9 more bugmates