But the error is not with contributeSchedulerFactory.
2010/11/18 Sven Homburg <[email protected]> > try this > > /** > * configuring the quartz scheduler. > * > * @param configuration configuration map > */ > public void contributeSchedulerFactory(OrderedConfiguration<URL> > configuration) > { > String fileName = applConfigDir + "/quartz.properties"; > File file = new File(fileName); > if (!file.canRead()) > throw new RuntimeException(String.format("can't read > file '%s'", > file.toURI())); > > try > { > configuration.add("configuration", > file.toURI().toURL()); > } > catch (MalformedURLException e) > { > throw new RuntimeException(e); > } > } > > > with regards > Sven Homburg > Founder of the Chenille Kit Project > http://chenillekit.codehaus.org > > > > > > 2010/11/18 Borut Bolčina <[email protected]>: > > Hi, > > > > I am using Tapestry 5.2.2 with chenillekit-quartz 1.3.0 > > > > With this (per documentation) > > > > public static void > > contributeSchedulerFactory(MappedConfiguration<String, Resource> > > configuration) { > > Resource configResource = new > > ClasspathResource("quartz.properties"); > > configuration.add("quartz.properties", configResource); > > } > > > > public static void contributeQuartzSchedulerManager(OKxAdImporter > > oKxAdImporter, ConfigurationService configurationService, > > OrderedConfiguration<JobSchedulingBundle> configuration) { > > configuration.add("oKxAdImporter", new > > OKxAdImporterBundle(oKxAdImporter, configurationService)); > > } > > > > I get > > > > [2010/11/18 12:02:39.556] ERROR [ioc.Registry:log]: Service > > 'QuartzSchedulerManager' is configured using > > org.apache.tapestry5.ioc.OrderedConfiguration, not > > org.apache.tapestry5.ioc.MappedConfiguration. > > [2010/11/18 12:02:39.556] ERROR [ioc.Registry:log]: Operations trace: > > [2010/11/18 12:02:39.556] ERROR [ioc.Registry:log]: [ 1] Realizing > service > > QuartzSchedulerManager > > [2010/11/18 12:02:39.557] ERROR [ioc.Registry:log]: [ 2] Invoking > > > org.chenillekit.quartz.ChenilleKitQuartzModule.buildQuartzSchedulerManager(Logger, > > SchedulerFactory, List) (at ChenilleKitQuartzModule.java:119) > > [2010/11/18 12:02:39.557] ERROR [ioc.Registry:log]: [ 3] Determining > > injection value for parameter #3 (java.util.List) > > [2010/11/18 12:02:39.557] ERROR [ioc.Registry:log]: [ 4] Collecting > ordered > > configuration for service QuartzSchedulerManager > > [2010/11/18 12:02:39.558] ERROR [ioc.Registry:log]: [ 5] Invoking method > > > si.planet9.maps.services.AppModule.contributeQuartzSchedulerManager(OKxAdImporter, > > ConfigurationService, MappedConfiguration) (at AppModule.java:47). > > [2010/11/18 12:02:39.558] ERROR [ioc.Registry:log]: [ 6] Determining > > injection value for parameter #3 > > (org.apache.tapestry5.ioc.MappedConfiguration) > > [2010/11/18 12:02:39.560] ERROR > > [ChenilleKitQuartzModule.QuartzSchedulerManager:createObject]: > Construction > > of service QuartzSchedulerManager failed: Error invoking service builder > > method > > > org.chenillekit.quartz.ChenilleKitQuartzModule.buildQuartzSchedulerManager(Logger, > > SchedulerFactory, List) (at ChenilleKitQuartzModule.java:119) (for > service > > 'QuartzSchedulerManager'): Error invoking service contribution method > > > si.planet9.maps.services.AppModule.contributeQuartzSchedulerManager(OKxAdImporter, > > ConfigurationService, MappedConfiguration): Service > 'QuartzSchedulerManager' > > is configured using org.apache.tapestry5.ioc.OrderedConfiguration, not > > org.apache.tapestry5.ioc.MappedConfiguration. > > java.lang.RuntimeException: Error invoking service builder method > > > org.chenillekit.quartz.ChenilleKitQuartzModule.buildQuartzSchedulerManager(Logger, > > SchedulerFactory, List) (at ChenilleKitQuartzModule.java:119) (for > service > > 'QuartzSchedulerManager'): Error invoking service contribution method > > > si.planet9.maps.services.AppModule.contributeQuartzSchedulerManager(OKxAdImporter, > > ConfigurationService, MappedConfiguration): Service > 'QuartzSchedulerManager' > > is configured using org.apache.tapestry5.ioc.OrderedConfiguration, not > > org.apache.tapestry5.ioc.MappedConfiguration. > > at > > > org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:76) > > > > > > > > The above contribution used to work with chenillekit-quartz 1.0.0. > > > > Any hint appreciated, > > Borut > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
