Commons-dpcp jar& javax.servlet-api问题

时间:2014-02-21 14:34:24

标签: java servlets apache-commons-dbcp

我是初学者,通过做一些样本来学习弹簧MVC。我在commons-dpcpjavax.servlet-api jar问题中收到jar问题但未正确加载。我尝试从不同的网站下载但仍然收到错误。请有人帮我解决这个问题。

Error creating bean with name 'contactsDAOImpl': Injection of autowired dependencies 
failed; nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private org.hibernate.SessionFactory 
com.spring.hib.dao.ContactsDAOImpl.sessionFactory; nested exception is 
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class 
[org.apache.commons.dpcp.BasicDataSource] for bean with name 'dataSource' defined in 
ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is 
java.lang.ClassNotFoundException: org.apache.commons.dpcp.BasicDataSource

0 个答案:

没有答案