Odd.

Can't explain why the error was about QuartzSchedulerManager. The changed
contribution

    public void contributeSchedulerFactory(OrderedConfiguration<URL>
configuration) {
        Resource configResource = new
ClasspathResource("quartz.properties");
        configuration.add("configuration", configResource.toURL());
    }

works and the contribution to

    public static void contributeQuartzSchedulerManager(OKxAdImporter
oKxAdImporter,
            ConfigurationService configurationService,
OrderedConfiguration<JobSchedulingBundle> configuration) {
        configuration.add("oKxAdImporter", new
OKxAdImporterBundle(oKxAdImporter, configurationService));
    }

stays the same.

So, problem solved.

-Borut

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
>

Reply via email to