You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Borut Bolčina <bo...@gmail.com> on 2010/11/18 12:54:20 UTC

chenillekit-quartz 1.3.0 Service 'QuartzSchedulerManager'

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

Re: chenillekit-quartz 1.3.0 Service 'QuartzSchedulerManager'

Posted by Borut Bolčina <bo...@gmail.com>.
But the error is not with contributeSchedulerFactory.


2010/11/18 Sven Homburg <ho...@googlemail.com>

> 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 <bo...@gmail.com>:
> > 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: chenillekit-quartz 1.3.0 Service 'QuartzSchedulerManager'

Posted by Sven Homburg <ho...@googlemail.com>.
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 <bo...@gmail.com>:
> 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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: chenillekit-quartz 1.3.0 Service 'QuartzSchedulerManager'

Posted by Borut Bolčina <bo...@gmail.com>.
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 <bo...@gmail.com>

> 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
>