log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.MySQlDialect
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:81)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:42)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:378)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:110)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1174)
at ch3.hibernate.Test.main(Test.java:12)这是什么问题啊
我只是写了一个简单的测试类都出这么多错误?
log4j:WARN Please initialize the log4j system properly.
org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.MySQlDialect
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:81)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:42)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:378)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:110)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1174)
at ch3.hibernate.Test.main(Test.java:12)这是什么问题啊
我只是写了一个简单的测试类都出这么多错误?
解决方案 »
- bat文件启动java项目,怎样自动打开ie浏览器进入登陆页面
- GoogleMap v3 API详解
- 高手指点一下怎样提高性能,主要是设计思路
- 关于动态插入WordML内容的问题
- execute
- 企业级应用系统,持久层框架选型。hibernate还是mybatis?
- hibernate+struts入门教学录像,要的留下e-mail!
- 最低成本问题!
- 在APPLET中,怎么样获取串行借口所获得的外部设备数据,100分在线等待中!!!
- 【求助】deploytool不能连上localhost??
- 路线查询系统
- connection.prepareStatement(sql,PrepareStatement.RETURN_GENERATED_KEYS)异常
L大写,你小写了。
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration>
<session-factory> <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/myproject</property>
<property name="connection.username">root</property>
<property name="connection.password">admin</property>
<property name="connection.pool_size">1</property>
<property name="dialect">org.hibernate.diaLect.MySQlDialect</property>
<property name="current_session_context_class">thread</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="show_sql">true</property>
<property name="hbm2ddl.auto">create</property>
<property name="ch3/hibernate/User.hbm.xml"></property></session-factory>
</hibernate-configuration>
这是我的配置文件
全部放进去了
#hibernate.dialect org.hibernate.dialect.MySQLInnoDBDialect
#hibernate.dialect org.hibernate.dialect.MySQLMyISAMDialect
#hibernate.connection.driver_class com.mysql.jdbc.Driver
#hibernate.connection.url jdbc:mysql:///test
#hibernate.connection.username gavin
#hibernate.connection.password