Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError c3p0 ComboPooledDataSource #301

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments
Closed

NoClassDefFoundError c3p0 ComboPooledDataSource #301

GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1. Install Probe 2.3.1
2. Access Probe Datasources
3. Receive NCDF exception in probe.log

What is the expected result?
Display datasource infos

What happens instead?
Exception error in probe.log

What version of Probe are you using?
2.3.1

What environment (browser version, Tomcat version, JVM version, server OS)?
Linux CentOS 5.7, Tomcat 6.0.14, java version "1.5.0_22"

Please provide any additional information below.
(Attach logs or stack traces as files instead of pasting the contents
here.)

10 Jul 2012 17:58:00 [scheduler_Worker-9] ERROR 
com.googlecode.psiprobe.beans.ResourceResolverBean  - Failed to lookup: myDS
java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/ComboPooledDataSource
    at com.googlecode.psiprobe.beans.C3P0DatasourceAccessor.canMap(C3P0DatasourceAccessor.java:51)
    at com.googlecode.psiprobe.beans.C3P0DatasourceAccessor.getInfo(C3P0DatasourceAccessor.java:27)
    at com.googlecode.psiprobe.beans.ResourceResolverBean.lookupResource(ResourceResolverBean.java:152)
    at com.googlecode.psiprobe.beans.ResourceResolverBean.getApplicationResources(ResourceResolverBean.java:112)
    at com.googlecode.psiprobe.beans.ContainerWrapperBean.getPrivateDataSources(ContainerWrapperBean.java:172)
    at com.googlecode.psiprobe.beans.ContainerWrapperBean.getDataSources(ContainerWrapperBean.java:161)
    at com.googlecode.psiprobe.beans.stats.collectors.DatasourceStatsCollectorBean.collect(DatasourceStatsCollectorBean.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)


Original issue reported on code.google.com by robertos...@gmail.com on 10 Jul 2012 at 4:13

@GoogleCodeExporter
Copy link
Contributor Author

Do you have c3p0 on your Tomcat classpath?  If so, what version?

Original comment by MALfunct...@gmail.com on 10 Jul 2012 at 6:26

  • Changed state: NeedInfo

@GoogleCodeExporter
Copy link
Contributor Author

c3p0 is not on the tomcat classpath but delivered in one of the installed web 
applications. Therefore, it would be great if you can deliver the lib with 
psi-probe.

Original comment by robertos...@gmail.com on 16 Aug 2012 at 1:04

@GoogleCodeExporter
Copy link
Contributor Author

As a rule, we don't include database drivers in PSI Probe because of the 
occasionally incompatible licensing restrictions.

If you want it available to PSI Probe, you need to put it in your Tomcat 
classpath.  Sorry.

Original comment by MALfunct...@gmail.com on 16 Aug 2012 at 2:35

  • Changed state: ExternalFix

@GoogleCodeExporter
Copy link
Contributor Author

You also might consider adding c3p0 to probe.war yourself if you don't like the 
idea of putting it on the Tomcat classpath.

Original comment by MALfunct...@gmail.com on 16 Aug 2012 at 2:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants