[ 
https://issues.apache.org/jira/browse/DELTASPIKE-661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14055952#comment-14055952
 ] 

Gerhard Petracek edited comment on DELTASPIKE-661 at 7/9/14 11:04 AM:
----------------------------------------------------------------------

please configure the value
  quartz
(instead of "quartz.properties")
for key: deltaspike.scheduler.quartz_config-file
in apache-deltaspike.properties


was (Author: gpetracek):
changed to minor, because a workaround is available.
( override #loadCustomQuartzConfig in a subclass of QuartzScheduler and 
register it as scheduler via 
/META-INF/services/org.apache.deltaspike.scheduler.spi.Scheduler )

> No custom quartz-config file found after upgrade to 1.0.0
> ---------------------------------------------------------
>
>                 Key: DELTASPIKE-661
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-661
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Scheduler
>    Affects Versions: 1.0.0
>            Reporter: Piotr Dudkiewicz
>            Assignee: Gerhard Petracek
>            Priority: Minor
>             Fix For: 1.0.1
>
>
> After upgrade to 1.0.0 my custom quartz config won't load anymore (it used to 
> work before with 0.7 version).
> In logs  I'm getting this message:
> {noformat}
> no custom quartz-config file found. falling back to the default config 
> provided by quartz.
> {noformat}
> Using debugger I've found that caught exception is:
> {noformat}
> java.util.MissingResourceException: Can't find bundle for base name 
> quartz.properties, locale en_US
> {noformat}
> I think that bug is caused by this change: 
> https://github.com/apache/deltaspike/commit/c62ce6cf34539b864eed4118bb67f75a945cd2bf
> deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/QuartzScheduler.java
> {noformat}
> -            String configFile =
>  -                
> ConfigResolver.getPropertyValue("deltaspike.scheduler.quartz_config-file", 
> "quartz.properties");
>  -            schedulerFactory = new StdSchedulerFactory(configFile);
> ...
> +    protected ResourceBundle loadCustomQuartzConfig()
>  +    {
>  +        String configFile =
>  +            
> ConfigResolver.getPropertyValue("deltaspike.scheduler.quartz_config-file", 
> "quartz.properties");
>  +        return PropertyFileUtils.getResourceBundle(configFile);
>  +    }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to