Thanks for the quick reply Thiago!

I have already tried what you suggested and I get a stack trace:

public static void
contributeQuartzSchedulerManager(OrderedConfiguration<JobSchedulingBundle>
configuration, @InjectService("DataSource") IDataSource pDataSource) {
                configuration.add("importEmailToArchive", new
ImportEmailToArchiveBundle(new EmailArchiveImporter(pDataSource)));
        }

Stack trace:

SEVERE: An error occured instantiating job to be executed. job=
'DEFAULT.ImportEmailToArchive'
org.quartz.SchedulerException: Problem instantiating class
'student.tracking.quartz.EmailArchiveImporter' [See nested exception:
java.lang.InstantiationException:
student.tracking.quartz.EmailArchiveImporter]
        at org.quartz.simpl.SimpleJobFactory.newJob(SimpleJobFactory.java:57)
        at org.quartz.core.JobRunShell.initialize(JobRunShell.java:132)
        at
org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:358)
Caused by: java.lang.InstantiationException:
student.tracking.quartz.EmailArchiveImporter
        at java.lang.Class.newInstance0(Class.java:340)
        at java.lang.Class.newInstance(Class.java:308)
        at org.quartz.simpl.SimpleJobFactory.newJob(SimpleJobFactory.java:55)
        ... 2 more
30-Mar-2009 20:07:00 org.quartz.simpl.RAMJobStore triggeredJobComplete
INFO: All triggers of Job DEFAULT.ImportEmailToArchive set to ERROR state.

Quartz is trying to instantiate my class it seems.  I'm following
http://www.chenillekit.org/chenillekit-quartz/index.html

Any ideas?  It's just the service injection part thats tripping me up.

Cheers,
Daniel

-- 
View this message in context: 
http://www.nabble.com/T5---Chenillekit-Quartz---Services-tp22787045p22790830.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to