I'm trying to integrate Quartz in Castle Windsor. I'm using Quartz 2.2.3. and Windsor.QuartzIntegration 0.3.1.
Windsor is version 3.2.1.
But I'm getting the following error.
An exception of type 'Quartz.SchedulerException' occurred in Quartz.dll but was not handled in user code
Additional information: SchedulerPlugin of type '' could not be instantiated.
InnerException:
Cannot instantiate null
Parameter name: type
I have already tried for over a day to solve this issue, but I don't have a clue how to fix this anymore. Does anyone have a solution for this problem?
Quartz config
<quartz>
<add key="quartz.scheduler.instanceName">XmlConfiguredInstance</add>
<add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" />
<add key="quartz.threadPool.threadCount">5</add>
<add key="quartz.threadPool.threadPriority">2</add>
<add key="quartz.jobStore.misfireThreshold">60000</add>
<add key="quartz.jobStore.type" value="Quartz.Simpl.RAMJobStore, Quartz" />
<add key="quartz.plugin.xml.type" value="Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin, Quartz" />
<add key="quartz.plugin.xml.fileNames" value="~/quartz_jobs.xml" />
<add key="quartz.plugin.xml.ScanInterval">10</add>
</quartz>
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
Stacktrace:at Quartz.Impl.StdSchedulerFactory.Instantiate() in c:\Work\OpenSource\Quartz.NET\quartznet\src\Quartz\Impl\StdSchedulerFactory.cs:line 748
at Quartz.Impl.StdSchedulerFactory.GetScheduler() in c:\Work\OpenSource\Quartz.NET\quartznet\src\Quartz\Impl\StdSchedulerFactory.cs:line 1118
at Castle.Facilities.QuartzIntegration.QuartzNetScheduler..ctor(IDictionary`2 props, IJobFactory jobFactory, IKernel kernel) in g:\prg\QuartzNetIntegration.gitsvn\QuartzNetIntegration\QuartzNetIntegration\QuartzNetScheduler.cs:line 38This is the full configuration for Castle.<castle>
<facilities>
<facility id="startable.facility" type="Castle.Facilities.Startable.StartableFacility, Castle.Windsor" />
<facility id="quartznet" type="Castle.Facilities.QuartzIntegration.QuartzFacility, Castle.Facilities.QuartzIntegration">
<schedulerListeners>
<listener>${schedulerListener}</listener>
</schedulerListeners>
<jobListeners>
<job name="defaultJob">
<listener>${jobListener}</listener>
</job>
</jobListeners>
<triggerListeners>
<trigger name="defaultTrigger">
<listener>${triggerListener}</listener>
</trigger>
</triggerListeners>
<quartz>
<add key="quartz.scheduler.instanceName" value="QuartzScheduler" />
<add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz">
<add key="quartz.threadPool.threadCount">5</add>
<add key="quartz.threadPool.threadPriority">2</add>
<add key="quartz.jobStore.misfireThreshold">60000</add>
<add key="quartz.jobStore.type" value="Quartz.Simpl.RAMJobStore, Quartz" />
<add key="quartz.plugin.xml.type" value="Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin, Quartz" />
<add key="quartz.plugin.xml.fileNames" value="~/quartz_jobs.xml" />
<add key="quartz.plugin.xml.ScanInterval">10</add>
</quartz>
</facility>
</facilities>
<components>
<component id="jobListener" type="HelpLine.Application.WebAPI.Quartz.SampleJobListener, HelpLine.Application.WebAPI" />
<component id="triggerListener" type="HelpLine.Application.WebAPI.Quartz.SampleTriggerListener, HelpLine.Application.WebAPI" />
<component id="schedulerListener" type="HelpLine.Application.WebAPI.Quartz.SampleSchedulerListener, HelpLine.Application.WebAPI" />
</components>
</castle>
Op woensdag 14 mei 2014 09:24:03 UTC+2 schreef Jonathon Rossi:
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-users+unsub...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
--
Jono
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
...
A first chance exception of type 'Castle.MicroKernel.ComponentNotFoundException' occurred in Castle.Windsor.dll
A first chance exception of type 'Quartz.SchedulerException' occurred in Quartz.dll
<?xml version="1.0" encoding="utf-8" ?>
<job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="2.0">
<processing-directives>
<overwrite-existing-data>true</overwrite-existing-data>
</processing-directives>
<schedule>
<job>
<name>defaultJob</name>
<description>test job</description>
<job-type>HelpLine.Application.WebAPI.Quartz.SampleJob, HelpLine.Application.WebAPI</job-type>
<durable>true</durable>
<recover>true</recover>
</job>
<trigger>
<cron>
<name>defaultTrigger</name>
<job-name>defaultJob</job-name>
<cron-expression>0 0/1 * * * ?</cron-expression>
</cron>
</trigger>
</schedule>
</job-scheduling-data>
I'm pretty sure it is because some of those items you've got in your configuration have a empty XML element value, the facility uses the XML element's value not a "value" attribute. If you look at the example configuration on the page I linked to in my previous reply you'll see the items it defines as an example.
...
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
<job-type>HelpLine.Application.WebAPI.Quartz.SampleJob, HelpLine.Application.WebAPI</job-type>
container.Register(Component.For<IJob>().ImplementedBy<SampleJob>().LifestyleTransient());
...<add key="quartz.threadPool.threadCount">5<font co
...</<font color="#a31515" face="C
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.
container.Register(Component.For<SampleJob>().ImplementedBy<SampleJob>());
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.