Permalink
Browse files

fixed bug in play 1.2.4, apparently cannot use system classloader to …

…trigger jobs.
  • Loading branch information...
1 parent 8272803 commit 3d0a5a3c0f131bf9c2114d5d8b273f71b6c09fd3 @alokito alokito committed Aug 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/play/modules/jobs/PlayJobsService.java
@@ -120,7 +120,7 @@ public void triggerJob(String jobClass, Integer instances) {
// Trigger Job(s)
try {
// Define Class
- Class clazz = Class.forName(jobClass);
+ Class clazz = Play.classloader.getClassIgnoreCase(jobClass);
if (clazz == null) {
throw new RuntimeException("Invalid Job Class: " + jobClass);
}

0 comments on commit 3d0a5a3

Please sign in to comment.