休止状態 – C3P0ConnectionProviderが見つかりませんでした
問題
“http://sourceforge.net/projects/c3p0/[c3p0]”接続プールを使用するようにHibernateを設定しましたが、警告を受けてヒットします:
….//…
2011-04-25__12:18:37.190 WARN o.h.c.ConnectionProviderFactory –
c3p0 properties is specificed, but could not find
org.hibernate.connection.C3P0ConnectionProvider from the classpath,
these properties are going to be ignored.
2011-04-25__12:18:37.191 INFO o.h.c.DriverManagerConnectionProvider –
Using Hibernate built-in connection pool (not for production use!)//…
"org.hibernate.connection.C3P0ConnectionProvider`"のように見えませんか? === 解決策 Hibernate v3.3(間違いでない場合)は、 "** C3P0ConnectionProvider ** "を別のjarファイル "** hibernate-c3p0.jar ** "に移動します。 Hibernateにc3p0接続プールをサポートさせるためには、それをインクルードする必要があります。 JBossパブリックリポジトリから "** hibernate-c3p0.jar ** "をダウンロードできます。 __File:pom.xml__
<project …>
<repositories> <repository> <id>JBoss repository</id> <url>http://repository.jboss.org/nexus/content/groups/public/</url> </repository> </repositories>
<dependencies>
<!-- Hibernate c3p0 connection pool --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-c3p0</artifactId> <version>3.6.3.Final</version> </dependency>
</dependencies> </project>
** 注意** この詳細ガイド - 「Hibernateでのc3p0接続プールの設定方法」 - 「hibernate/how-to-c3p0-connection-pool-in-hibernate/」を参照してください。 === リファレンス . http://docs.jboss.org/hibernate/core/3.3/api/org/hibernate/connection/C3P0ConnectionProvider.html . http://sourceforge.net/projects/c3p0/ link://タグ/hibernate/[hibernate]