I'm trying to put C3P0 up & running. http://www.datanucleus.org/products/accessplatform/rdbms/c3p0.html
I have These as Plugins (app runs fine):
- datanucleus-connectionpool-1.0.2.jar
- datanucleus-core-1.1.0.m3.jar
- datanucleus-enhancer-1.1.0.m1.jar
- datanucleus-rdbms-1.1.0.m3.jar
I added (to the classpath): c3p0-0.9.1.2.jar
And the parameter (to the PMF init): "datanucleus.connectionPoolingType", "C3P0"
I GET:
24/Jan/2010 19:50:35 org.datanucleus.PersistenceConfiguration setProperty
INFO: Property datanucleus.rdbms.dateTimezone unknown - will be ignored
24/Jan/2010 19:50:35 org.datanucleus.ObjectManagerFactoryImpl logConfiguration
INFO: ================= Persistence Configuration ===============
24/Jan/2010 19:50:35 org.datanucleus.ObjectManagerFactoryImpl logConfiguration
INFO: DataNucleus Persistence Factory - Vendor: "DataNucleus" Version: "1.1.0.m3"
24/Jan/2010 19:50:35 org.datanucleus.ObjectManagerFactoryImpl logConfiguration
INFO: DataNucleus Persistence Factory initialised for datastore URL="jdbc:postgresql://localhost/rcp5" driver="org.postgresql.Driver" userName="postgres"
24/Jan/2010 19:50:35 org.datanucleus.ObjectManagerFactoryImpl logConfiguration
INFO: ===========================================================
javax.jdo.JDOFatalInternalException: Error creating transactional connection factory
at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:485)
at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.ja
va:550)
at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerF
actory.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.jdo.JDOHelper$16.run(JDOHelper.java:1891)
at java.security.AccessController.doPrivileged(Native Method)
at javax.jdo.JDOHelper.invoke(JDOHelper.java:1886)
at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1156)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:800)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:715)
at rcpcolibri.dao.PersistenceManager.getPersistenceManagerFactoryInstance(PersistenceManager.java:85)
at rcpcolibri.Colibri.initColibriBD(Colibri.java:181)
at rcpcolibri.loginpage.LoginAction.login(LoginAction.java:54)
at rcpcolibri.loginpage.LoginShell.actionLogin(LoginShell.java:555)
at rcpcolibri.loginpage.LoginShell.access$2(LoginShell.java:552)
at rcpcolibri.loginpage.LoginShell$3.widgetSelected(LoginShell.java:507)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at rcpcolibri.loginpage.LoginShell.open(LoginShell.java:138)
at rcpcolibri.Application.executeLogin(Application.java:111)
at rcpcolibri.Application.start(Application.java:52)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
NestedThrowablesStackTrace:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.datanucleus.plugin.EclipsePluginRegistry.createExecutableExtension(EclipsePluginRegistry.java:19
3)
at org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:324)
at org.datanucleus.store.AbstractStoreManager.<init>(AbstractStoreManager.java:190)
at org.datanucleus.store.mapped.MappedStoreManager.<init>(MappedStoreManager.java:123)
at org.datanucleus.store.rdbms.RDBMSManager.<init>(RDBMSManager.java:264)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.datanucleus.plugin.EclipsePluginRegistry.createExecutableExtension(EclipsePluginRegistry.java:19
3)
at org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:300)
at org.datanucleus.store.FederationManager.initialiseStoreManager(FederationManager.java:166)
at org.datanucleus.store.FederationManager.<init>(FederationManager.java:68)
at org.datanucleus.ObjectManagerFactoryImpl.initialiseStoreManager(ObjectManagerFactoryImpl.java:152)
at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.ja
va:532)
at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerF
actory.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.jdo.JDOHelper$16.run(JDOHelper.java:1891)
at java.security.AccessController.doPrivileged(Native Method)
at javax.jdo.JDOHelper.invoke(JDOHelper.java:1886)
at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1156)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:800)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:715)
at rcpcolibri.dao.PersistenceManager.getPersistenceManagerFactoryInstance(PersistenceManager.java:85)
at rcpcolibri.Colibri.initColibriBD(Colibri.java:181)
at rcpcolibri.loginpage.LoginAction.login(LoginAction.java:54)
at rcpcolibri.loginpage.LoginShell.actionLogin(LoginShell.java:555)
at rcpcolibri.loginpage.LoginShell.access$2(LoginShell.java:552)
at rcpcolibri.loginpage.LoginShell$3.widgetSelected(LoginShell.java:507)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at rcpcolibri.loginpage.LoginShell.open(LoginShell.java:138)
at rcpcolibri.Application.executeLogin(Application.java:111)
at rcpcolibri.Application.start(Application.java:52)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/ComboPooledDataSource
at org.datanucleus.store.rdbms.datasource.c3p0.C3P0DataSourceFactory.makePooledDataSource(C3P0DataSourc
eFactory.java:79)
at org.datanucleus.store.rdbms.ConnectionFactoryImpl.initDataSourceTx(ConnectionFactoryImpl.java:144)
at org.datanucleus.store.rdbms.ConnectionFactoryImpl.<init>(ConnectionFactoryImpl.java:91)
... 57 more
Help is needed.
Thanks...!
marco