-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: c3p0 properties are going to be ignored.
PostPosted: Tue Jan 18, 2011 2:55 pm 
Newbie

Joined: Tue Jan 18, 2011 2:38 pm
Posts: 2
Hello,

We recently moved to the following environment.

java version "1.6.0_23"
jboss-6.0.0.Final
hibernate 3.6.0.Final

I am seeing this warning message on the jboss console and want to take appropriate action.

c3p0 properties is specificed, but could not find org.hibernate.connection.C3P0ConnectionProvider from the classpath, these properties are going to be ignored.

Following is sample cfg.xml file from our application.

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<property name="hibernate.connection.datasource">java:AutomationDS</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.jdbc.use_streams_for_binary">true </property>
<property name="hibernate.jdbc.batch_size">0</property>
<property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<property name="hibernate.cache.use_minimal_puts">true</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.max_size">100</property>
<property name="c3p0.timeout">10</property>
<property name="c3p0.acquireRetryAttempts">30</property>
<property name="c3p0.acquireIncrement">5</property>
<property name="c3p0.idleConnectionTestPeriod">300</property>
<property name="c3p0.initialPoolSize">20</property>
<property name="c3p0.maxPoolSize">100</property>
<property name="c3p0.maxIdleTime">300</property>
<property name="c3p0.maxStatements">50</property>
<property name="c3p0.minPoolSize">10</property>
<!--Mapping files -->
<mapping resource="config/hibernate/AutomationResult.hbm.xml" />
</session-factory>
</hibernate-configuration>

We are using the following hibernate jars.

hibernate-commons-annotations.jar
hibernate-core.jar
hibernate-entitymanager.jar
hibernate-jpa-2.0-api.jar
hibernate-validator.jar
hibernate-validator-legacy.jar
mysql-connector-java-5.1.14-bin.jar

I tried using c3p0-0.9.1.jar in our application but it further breaks the application with more exceptions. As of now, we are not using it.


Last edited by vayamauser on Wed Feb 09, 2011 7:18 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: c3p0 properties are going to be ignored.
PostPosted: Sat Jan 29, 2011 6:49 am 
Newbie

Joined: Tue Jun 01, 2010 10:18 am
Posts: 15
You have to use hibernate-c3po and include this into your classpath!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.