Hibernate – 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接続プールをサポートするようにするには、これを含める必要があります。
「hibernate-c3p0.jar」はJBossパブリックリポジトリからダウンロードできます。
ファイル:pom.xml
JBoss repository http://repository.jboss.org/nexus/content/groups/public/ org.hibernate hibernate-c3p0 3.6.3.Final
Note
この詳細ガイドを参照してください–「http://www.example.com/hibernate/how-to-configure-the-c3p0-connection-pool-in-hibernate/ [構成方法Hibernateのc3p0接続プール] "。