我提交表单时报一下信息,是怎么回事?

tianxyz1988 2010-10-05 05:28:10
99297 [http-8080-1] INFO cfg.SettingsFactory - RDBMS: MySQL, version: 5.0.22-community-nt
99312 [http-8080-1] INFO cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.10 ( $Date: 2005/05/19 15:52:23 $, $Revision: 1.1.2.2 $ )
99422 [http-8080-1] INFO dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect
99453 [http-8080-1] INFO transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
99469 [http-8080-1] INFO transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
99469 [http-8080-1] INFO cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
99469 [http-8080-1] INFO cfg.SettingsFactory - Automatic session close at end of transaction: disabled
99469 [http-8080-1] INFO cfg.SettingsFactory - JDBC batch size: 15
99469 [http-8080-1] INFO cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
99469 [http-8080-1] INFO cfg.SettingsFactory - Scrollable result sets: enabled
99469 [http-8080-1] INFO cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
99469 [http-8080-1] INFO cfg.SettingsFactory - Connection release mode: auto
99469 [http-8080-1] INFO cfg.SettingsFactory - Maximum outer join fetch depth: 2
99469 [http-8080-1] INFO cfg.SettingsFactory - Default batch fetch size: 1
99469 [http-8080-1] INFO cfg.SettingsFactory - Generate SQL with comments: disabled
99469 [http-8080-1] INFO cfg.SettingsFactory - Order SQL updates by primary key: disabled
99469 [http-8080-1] INFO cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
99500 [http-8080-1] INFO ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
99500 [http-8080-1] INFO cfg.SettingsFactory - Query language substitutions: {}
99500 [http-8080-1] INFO cfg.SettingsFactory - Second-level cache: enabled
99500 [http-8080-1] INFO cfg.SettingsFactory - Query cache: disabled
99500 [http-8080-1] INFO cfg.SettingsFactory - Cache provider: org.hibernate.cache.EhCacheProvider
99516 [http-8080-1] INFO cfg.SettingsFactory - Optimize cache for minimal puts: disabled
99516 [http-8080-1] INFO cfg.SettingsFactory - Structured second-level cache entries: disabled
99578 [http-8080-1] INFO cfg.SettingsFactory - Echoing all SQL to stdout
99578 [http-8080-1] INFO cfg.SettingsFactory - Statistics: disabled
99578 [http-8080-1] INFO cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
99578 [http-8080-1] INFO cfg.SettingsFactory - Default entity-mode: pojo
99703 [http-8080-1] INFO impl.SessionFactoryImpl - building session factory
99734 [http-8080-1] WARN config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/DEV/.metadata/.plugins/com.genuitec.eclipse.easie.tomcat.myeclipse/tomcat/webapps/MyProject/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
101281 [http-8080-1] INFO impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
Hibernate:
select
user0_.ID as ID0_,
user0_.USER_NAME as USER2_0_,
user0_.PASSWORD as PASSWORD0_,
user0_.EMAIL as EMAIL0_,
user0_.TEL as TEL0_
from
my_db.user user0_
where
user0_.USER_NAME=?



配置文件:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>

<session-factory>

<property name="connection.url">jdbc:mysql://localhost:3306/my_db</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="myeclipse.connection.profile">com.mysql.jdbc.Driver</property>
<property name="connection.username">root</property>
<property name="connection.password">123</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<mapping resource="com/project/user/po/User.hbm.xml" />
</session-factory>

</hibernate-configuration>
...全文
136 点赞 收藏 11
写回复
11 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
tianxyz1988 2010-10-08
[Quote=引用 3 楼 hbu_zhy 的回复:]
连接数据库出问题了吧!
[/Quote]
就是找不出来了,请大家帮忙,我也不知道哪里出了问题
回复
hbu_zhy 2010-10-08
连接数据库出问题了吧!
回复
tianxyz1988 2010-10-08
[Quote=引用 1 楼 snawg 的回复:]
<property name="myeclipse.connection.profile">com.mysql.jdbc.Driver</property>这里改下
[/Quote]

那个地方要改成什么?
回复
tianxyz1988 2010-10-08
还是没解决掉
回复
BearKin 2010-10-08
99734 [http-8080-1] WARN config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/DEV/.metadata/.plugins/com.genuitec.eclipse.easie.tomcat.myeclipse/tomcat/webapps/MyProject/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml

就这断有点不对 别的没啥特殊的感觉阿

如果看这讨厌就把别输出info级别的日志了嘛
回复
stone1116 2010-10-08
好像驱动版本太低
回复
EsayHade 2010-10-08
路过!!学习下!
回复
tubage408 2010-10-08
<session-factory>

<property name="connection.url">jdbc:mysql://localhost:3306/my_db</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="myeclipse.connection.profile">com.mysql.jdbc.Driver</property>
<property name="connection.username">root</property>
<property name="connection.password">123</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<mapping resource="com/project/user/po/User.hbm.xml" />
</session-factory>
回复
狂想者 2010-10-08
学习了啊!!!!!!!
回复
java_news 2010-10-08
你hibernate配置连接数据库的那里错了,改下连接mysql
<property name="myeclipse.connection.profile">com.mysql.jdbc.Driver</property>这里改下
回复
snawg 2010-10-05
<property name="myeclipse.connection.profile">com.mysql.jdbc.Driver</property>这里改下
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2010-10-05 05:28
社区公告
暂无公告