org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in file [/home/sschmidt/development/workspaces/test/target/classes/META-INF/spring/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by pankaj, 1 year ago
Error loading class [org.gwtwidgets.server.spring.test.serverimpl.ServiceTestImpl] for bean with name 'ServiceTestImpl' defined in ServletContext resource [/ WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/google/ gwt/user/client/rpc/RemoteService
via GitHub by digcat
, 1 year ago
-context.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/fcorti/aaar/GetNodesModifiedAfterWebScript : Unsupported major.minor version 52.0 (unable to load class com.fcorti.aaar.GetNodesModifiedAfterWebScript)
via Stack Overflow by user705414
, 1 year ago
Error loading class [org.springframework.scheduling.quartz.JobDetailBean] for bean with name 'job' defined in class path resource [beans.xml]: problem with class file or dependent class; nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.scheduling.quartz.JobDetailBean has interface org.quartz.JobDetail as super class
via Stack Overflow by djoshi
, 2 years ago
Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/spring/appServlet/mysql_persistence_info.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in file [/home/sschmidt/development/workspaces/test/target/classes/META-INF/spring/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file

Users with the same issue

10 times, 7 months ago
21 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.