开发者社区 问答 正文

tomcat启动报错?报错

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.mchange.v2.c3p0.ComboPooledDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSource

at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1266)

但是我的项目中确实有这个jar包,

请问为什么还是报错。

另外我的项目中并没有使用sring tomcat启动的时候为什么还会去初始化spring相关的东西

展开
收起
爱吃鱼的程序员 2020-06-14 21:53:19 441 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    项目里面有不代表部署目录里面有,去webapp下面的lib文件夹看一下,jar包有没有copy过去!检查过,已经拷贝过去了正在学习ssh框架。把tomcat删了 重新解压个,岂不是更快又省事<imgsrc="http://www.oschina.net/js/ke/plugins/emoticons/images/13.gif"alt=""/>你不是眼花,就是第一天学习Java...回复<aclass='referer'target='_blank'>@zzbutcher:其实我是设计狮说风凉话的猴子,不是好司机完全认同

    2020-06-14 21:53:35
    赞同 展开评论