You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2014/07/09 18:23:07 UTC

[jira] [Resolved] (DELTASPIKE-661) No custom quartz-config file found after upgrade to 1.0.0

     [ https://issues.apache.org/jira/browse/DELTASPIKE-661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek resolved DELTASPIKE-661.
-----------------------------------------

    Resolution: Fixed

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