Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-661

No custom quartz-config file found after upgrade to 1.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • Scheduler
    • None

    Description

      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:

      no custom quartz-config file found. falling back to the default config provided by quartz.
      

      Using debugger I've found that caught exception is:

      java.util.MissingResourceException: Can't find bundle for base name quartz.properties, locale en_US
      

      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

      -            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);
       +    }
      

      Attachments

        Issue Links

          Activity

            People

              gpetracek Gerhard Petracek
              p.dudkiewicz Piotr Dudkiewicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: