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了
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了
相关文章推荐
- Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml]:
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'UserManger' defined in class path resource [user/applicationContext.x
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]:
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocatio
- 一、Error creating bean with name 'hsFactory' defined in class path resource [xxx.xml]:
- Error creating bean with name 'bookBizImpl' defined in class path resource [applicationContext.xml]
- Error creating bean with name 'userService' defined in class path resource [beans.xml]: Unsatisfied dependency expressed through
- Error creating bean with name 'sessionFactory' defined in class path resource
- Error creating bean with name 'StuService' defined in ServletContext resource [/WEB-INF/applicationC
- Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error registering bean with name 'dataSource' defined in class path resource
- Error creating bean with name 'dataSource' defined in ServletContext resource
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- creating bean with name 'dataSource' defined in class path resource错误的解决办法