org.springframework.beans.factory.BeanCreationException: Error creating bean with name

前端 未结 2 1453
小鲜肉
小鲜肉 2021-02-06 07:52

I\'m having the following error:

11/Ago/2011 14:04:48 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which a         


        
相关标签:
2条回答
  • 2021-02-06 08:36

    According to the stack trace, your issue is that your app cannot find org.apache.commons.dbcp.BasicDataSource, as per this line:

    java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
    

    I see that you have commons-dbcp in your list of jars, but for whatever reason, your app is not finding the BasicDataSource class in it.

    0 讨论(0)
  • 2021-02-06 08:40

    you need to add jar file in your build path..

    commons-dbcp-1.1-RC2.jar

    or any version of that..!!!!

    ADDED : also make sure you have commons-pool-1.1.jar too in your build path.

    ADDED: sorry saw complete list of jar late... may be version clashes might be there.. better check out..!!! just an assumption.

    0 讨论(0)
提交回复
热议问题