Hi, i'am using hibernate with WebSphere Application Server Community Edition. Everytime my application start always fail cause:
Code:
19:27:27,453 FATAL [C3P0ConnectionProvider] could not instantiate C3P0 connection pool
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at com.mchange.v2.c3p0.DataSources.pooledDataSource(DataSources.java:314)
at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:159)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:410)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
the hibernate.cfg.xml is normal:
Code:
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">10</property>
<property name="hibernate.c3p0.timeout">1800</property>
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.acquireRetryAttempts">50</property>
<property name="hibernate.c3p0.acquireRetryDelay">3000</property>
Need help with this exception :)
Thank you
Yahya