今天搭建ssh框架时报了这个错误,请大神分析一下,下面贴出代码,谢谢了
严重: action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
xml代码:<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd" >
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost:3306/db_database07"></property>
<property name="username" value="root"></property>
<property name="password" value="111"></property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>com/lwy/dto/Userlogin.hbm.xml</value>
<value>com/lwy/dto/Specialty.hbm.xml</value></list>
</property></bean>
<!-- 定义事务管理器 -->


<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean> <!--定义注释驱动-->
<tx:annotation-driven transaction-manager="transactionManager" /> <bean id="userLoginDao" class="com.lwy.dao.UserLoginDao">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<bean id="specialtyDao" class="com.lwy.dao.SpecialtyDao">
<property name="sessionFactory" ref="sessionFactory" />
</bean> <bean name="/reg" class="com.lwy.action.RegAction">
      <property name="userLoginDao" ref="userLginDao"></property>
      <property name="specialtyDao" ref="specialtyDao"></property>
</bean>
</beans>