title: Quartz: Based on configured schedule, the given trigger will never fire
body: <p>I am getting the "Based on configured schedule, the given trigger will never fire" error when scheduling my job. I have tried adding ".startNow()" to the trigger, but that didn't solve it. I don't understand what I have done wrong.</p>
  
  <pre><code>JobDetail jobDetail = newJob(DeploymentJob.class)
          .withIdentity(scheduleName)
          .usingJobData("uploadLocation", deployment.getUploadDir())
          .build();
  
  // Add the job to the Scheduler
  scheduler.addJob(jobDetail, true);
  
  // Create the trigger with cron expression
  Trigger trigger = newTrigger()
         .withIdentity(scheduleName)
         .withSchedule(cronSchedule(cron))
         .forJob(jobDetail)
         .build();
  
  // Tell quartz to schedule the job using our trigger
  scheduler.scheduleJob(jobDetail, trigger);                  &lt;--- Problem line.
  
  scheduler.start();
  </code></pre>
  
  <p>Thanks in advance for the answers! Much appreciated!</p>