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

Spring JIRA | Stefan Schmidt | 7 years ago
  1. 0

    Cannot find class [org.apache.commons.dbcp.BasicDataSource]

    Stack Overflow | 5 years ago | djoshi
    org.springframework.beans.factory.CannotLoadBeanClassException: 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
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Spring 3 + Quartz 2 error

    Stack Overflow | 5 years ago | user705414
    org.springframework.beans.factory.CannotLoadBeanClassException: 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
  4. 0

    Spring MVC: Newbie error. Classnotfound exception

    Stack Overflow | 4 years ago | KodeSeeker
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.thecafetechno.HelloWorldController] for bean with name '/requestURI.htm' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is java.lang.ClassNotFoundException: com.thecafetechno.HelloWorldController

  1. linxiaolong 2 times, last 2 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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

    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass()
  2. Spring Beans
    AbstractBeanFactory.resolveBeanClass
    1. org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1212)
    1 frame