Skip to content

Code Suche

  • Home
  • Python Examples
  • Java Examples

T Tak

[main] WARN GenericApplicationContext:591 – Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name ‘dataSource’ defined in class path resource [.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

March 3, 2022December 24, 2021 by T Tak

This is an issue faced if you have not dbcp jars in your classpath. For maven the simple fix is to add the dependency to the pom.xml Commons dbcp 2 is also avaliable. But for this make sure that you update config to use

Categories java Tags java Leave a comment
  • Solution for svn: E155033: Conflict not set.
  • jivago.wsgi.request.request.Request
  • [main] WARN GenericApplicationContext:591 – Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name ‘dataSource’ defined in class path resource [.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
  • How to set the date to next Sunday
  • How to set an hour or a minute in a date

Contact US

  • Contact

Languages

Java

Python

Follow Us

  • Facebook
© 2022 Code Suche • Built with GeneratePress