課程
/后端開發(fā)
/Java
/使用Struts2+Hibernate開發(fā)學(xué)生信息管理功能
在junit4測試成功了部署在tomcat7上運行就報錯
2015-12-09
源自:使用Struts2+Hibernate開發(fā)學(xué)生信息管理功能
正在回答
<!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 name="connection.username">XXX</property>
<property name="connection.password">123</property>
<property name="connection.driver_class">
oracle.jdbc.driver.OracleDriver
<property name="dialect">
org.hibernate.dialect.OracleDialect
<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
? ? ? ??
? ? ? ? <mapping resource="entity/Students.hbm.xml"/>
? ? ? ? <mapping resource="entity/Users.hbm.xml"/>
</session-factory>
</hibernate-configuration>
你可以貼一下相應(yīng)的配置文件,
NoClassDefFoundError: 一般是定義的類找不到
? ? ? ? ? ??
qq_海盜_3 提問者
圖片在這里
_瀟瀟暮雨
肯定是沒有加載好jar包。
舉報
Strust2+Hibernate整合開發(fā)案例,Java Web開發(fā)技能更上一層樓
2 回答登錄總是錯誤,信息Struts has detected an unhandled exception: Messages: org/hibernate/cfg/Configuration File: db/MyHibernateSessionFactory.java
1 回答java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
2 回答java.lang.NoClassDefFoundError: org/apache/log4j/LogManager
2 回答struts2和hibernate問題
1 回答關(guān)于hibernate版本問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
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>
2015-12-09
你可以貼一下相應(yīng)的配置文件,
NoClassDefFoundError: 一般是定義的類找不到
? ? ? ? ? ??
2015-12-09
圖片在這里
2015-12-09
肯定是沒有加載好jar包。