老师,出现这个问题root cause java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
在junit4测试成功了部署在tomcat7上运行就报错
在junit4测试成功了部署在tomcat7上运行就报错
2015-12-09
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="myeclipse.connection.profile">
OracelDriver
</property>
<property name="connection.url">
jdbc:oracle:thin:@127.0.0.1:1521:XE
</property>
<property name="connection.username">XXX</property>
<property name="connection.password">123</property>
<property name="connection.driver_class">
oracle.jdbc.driver.OracleDriver
</property>
<property name="dialect">
org.hibernate.dialect.OracleDialect
</property>
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<property name="hbm2ddl.auto">update</property>
<property name="hibernate.current_session_context_class">
thread
</property>
<mapping resource="entity/Students.hbm.xml"/>
<mapping resource="entity/Users.hbm.xml"/>
</session-factory>
</hibernate-configuration>
举报