Hello everyone,
My hibernate.cfg.xml as follows:
Code:
<?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.username">zzflash</property>
<property name="connection.url">
jdbc:mysql://59.64.180.132:3306/CommuPlatform?autoReconnect=true
</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="myeclipse.connection.profile">
CommuPlatform
</property>
<property name="connection.password">zzflash</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="connection.provider_class">
org.hibernate.connection.C3P0ConnectionProvider
</property>
<property name="c3p0.minPoolSize">5</property>
<property name="c3p0.maxPoolSize">30</property>
<property name="c3p0.initialPoolSize">10</property>
<property name="c3p0.automaticTestTable">Test</property>
<property name="c3p0.maxIdleTime">25000</property>
<property name="c3p0.acquireIncrement">5</property>
<property name="c3p0.maxStatements">0</property>
<property name="c3p0.idleConnectionTestPeriod">18000</property>
<property name="c3p0.acquireRetryAttempts">10</property>
<property name="c3p0.breakAfterAcquireFailure">false</property>
<property name="c3p0.testConnectionOnCheckout">true</property>
<property name="c3p0.testConnectionOnCheckin">true</property>
<property name="cache.use_second_level_cache">false</property>
<property name="cache.use_query_cache">false</property>
<mapping resource="com/serviceinall/db/notice/Notice.hbm.xml" />
<mapping resource="com/serviceinall/db/project/Project.hbm.xml" />
<mapping resource="com/serviceinall/db/file/File.hbm.xml" />
<mapping resource="com/serviceinall/db/task/Task.hbm.xml" />
<mapping resource="com/serviceinall/db/user/User.hbm.xml" />
<mapping
resource="com/serviceinall/db/groupuser/Groupuser.hbm.xml" />
<mapping resource="com/serviceinall/db/ugroup/Ugroup.hbm.xml" />
</session-factory>
</hibernate-configuration>
but when starting the log report as follows:
Code:
Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@317af5c1
[
connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@2b00958d
[
acquireIncrement -> 1,
acquireRetryAttempts -> 30,
acquireRetryDelay -> 1000,
autoCommitOnClose -> false,
automaticTestTable -> null,
breakAfterAcquireFailure -> false,
checkoutTimeout -> 0,
connectionCustomizerClassName -> null,
connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester,
debugUnreturnedConnectionStackTraces -> false,
factoryClassLocation -> null,
forceIgnoreUnresolvedTransactions -> false,
identityToken -> z8kflt7own60on1osw421|135133,
idleConnectionTestPeriod -> 0,
initialPoolSize -> 1,
maxAdministrativeTaskTime -> 0,
maxConnectionAge -> 0,
maxIdleTime -> 0,
maxIdleTimeExcessConnections -> 0,
maxPoolSize -> 100,
maxStatements -> 0,
maxStatementsPerConnection -> 0,
minPoolSize -> 1,
nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@e698dfdf
[
description -> null,
driverClass -> null,
factoryClassLocation -> null,
identityToken -> z8kflt7own60on1osw421|1a3aa2c,
jdbcUrl -> jdbc:mysql://59.64.180.132:3306/CommuPlatform?autoReconnect=true,
properties ->
{
user=******,
password=******,
release_mode=on_close
}
],
preferredTestQuery -> null,
propertyCycle -> 0,
testConnectionOnCheckin -> false,
testConnectionOnCheckout -> false,
unreturnedConnectionTimeout -> 0,
usesTraditionalReflectiveProxies -> false;
userOverrides: {}
],
dataSourceName -> null,
factoryClassLocation -> null,
identityToken -> z8kflt7own60on1osw421|1588325,
numHelperThreads -> 3
]
All cofiguration uses the default values, is there anywhere I misconfigured or something?
Please help, Thanks very much!