tomcat启动报错。spring+struts2+hibernate
启动报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
applicationContext.xml中的代码如下:
<?xml version="1.0" encoding="UTF-8"?>hibernate struts spring tomcat --------------------编程问答--------------------
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="oracle.jdbc.OracleDriver">
</property>
<property name="url"
value="jdbc:oracle:thin:@localhost:1521:orcl">
</property>
<property name="username" value="face"></property>
<property name="password" value="123"></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.Oracle9Dialect
</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>com/faclook/entity/FacelookUser.hbm.xml</value>
<value>com/faclook/entity/FacelookPhoto.hbm.xml</value>
<value>
com/faclook/entity/FacelookComment.hbm.xml
</value>
<value>com/faclook/entity/FacelookAlbum.hbm.xml</value>
<value>com/faclook/entity/FacelookMark.hbm.xml</value>
<value>
com/faclook/entity/FacelookActivity.hbm.xml
</value></list>
</property></bean></beans>
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception;
nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
补充:Java , Java相关