[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Scheduler won't start - java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/ComboPooledDataSource  XML
Forum Index -> Quartz
Author Message
mc7290

neo

Joined: 04/13/2011 14:35:31
Messages: 2
Offline

Having what is likely some kind of newbie problem. Just started with Quartz (using 2.0.0).

When this code is executed:
Code:
 	SchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory();
 	try {
 	    sched = schedFact.getScheduler();
 

I get:

Code:
 Exception in thread "main" java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/ComboPooledDataSource
 	at org.quartz.utils.PoolingConnectionProvider.initialize(PoolingConnectionProvider.java:197)
 	at org.quartz.utils.PoolingConnectionProvider.<init>(PoolingConnectionProvider.java:118)
 	at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:971)
 	at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1432)
 ....
 


My quartz.properties file is defined as a System property and I've verified that Quartz sees the file.

Code:
 org.quartz.dataSource.myDS.driver = com.mysql.jdbc.Driver
 org.quartz.dataSource.myDS.URL = jdbc:mysql://sol:3306/vortex_test1
 org.quartz.dataSource.myDS.user = UUUUU
 org.quartz.dataSource.myDS.password = XXXX
 org.quartz.jobStore.dataSource = myDS
 
 org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
 org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
 


Any suggestions would be most appreciated.
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

You need c3p0 jar in your classpath http://repo2.maven.org/maven2/c3p0/c3p0/0.9.1/
mc7290

neo

Joined: 04/13/2011 14:35:31
Messages: 2
Offline

Thanks. Adding c3po.jar did the trick. I don't recall seeing that mentioned as a dependency in the docs. Then again I often miss the little details. :-)
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

That's not a Quartz dependency. Seems like you're using it somewhere without noticing.

Could have been from your Hibernate config
gkeim

ophanim

Joined: 12/05/2006 10:22:37
Messages: 685
Location: Terracotta, Inc.
Offline

Actually, c3p0 is a Quartz dependency:

org.quartz-scheduler:quartz:jar:2.1.0-SNAPSHOT
+- javax.activation:activation:jar:1.1:provided
+- javax.mail:mail:jar:1.4.1:provided
+- javax.transaction:jta:jar:1.1:compile
+- javax.jms:jms:jar:1.1:provided
+- javax.servlet:servlet-api:jar:2.5:provided
+- org.apache.openejb:javaee-api:jar:5.0-2:provided
+- c3p0:c3p0:jar:0.9.1.1:compile
+- org.slf4j:slf4j-api:jar:1.6.1:compile
+- org.slf4j:slf4j-log4j12:jar:1.6.1:runtime
+- log4j:log4j:jar:1.2.14:runtime
+- junit:junit:jar:3.8.2:test
\- asm:asm:jar:3.2:test

Gary Keim (terracotta developer) Want to post to this forum? Join the Terracotta Community
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team