您的位置:首页 > 移动开发

Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean faile

2009-06-03 20:24 781 查看
出错:

Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is javax.naming.NoInitialContextException:

此错误是在测试类里测试applicationContext.xml文件是否有错的时候在控制台报的错。代码本身是没有问题的,意思是少了一个包。

解决方法:

将commons-pool.jar此包拷贝到lib下,就Ok了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐