working projects are attached

This simple code works in Groovy project:
{code}
KieServices ks = KieServices.Factory.get();
KieRepository kr = ks.getRepository();
KieFileSystem kfs = ks.newKieFileSystem();

// String drl = new File("rules/r1.drl").getText()
// kfs.write("src/main/resources/org/kie/example5/HAL5.drl", drl);

KieBuilder kb = ks.newKieBuilder(kfs);

kb.buildAll(); // kieModule is automatically deployed to KieRepository if successfully built.
{code}

but it fails with error if executed in Grails 2.2.4 application
{code}
  1. ERROR errors.GrailsExceptionResolver  - ClassNotFoundException occurred when processing request: [GET] /grails-drools6/drools/index
  2. org.drools.compiler.kie.builder.impl.KieModuleCache$KModuleCache. Stacktrace follows:
  3. Message: org.drools.compiler.kie.builder.impl.KieModuleCache$KModuleCache
  4.     Line | Method
  5. ->>  366 | run                       in java.net.URLClassLoader$1
  6. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  7. |    355 | run                       in     ''
  8. |    354 | findClass . . . . . . . . in java.net.URLClassLoader
  9. |    424 | loadClass                 in java.lang.ClassLoader
  10. |    357 | loadClass . . . . . . . . in     ''
  11. |   2521 | privateGetDeclaredMethods in java.lang.Class
  12. |   1845 | getDeclaredMethods . . .  in     ''
  13. |     46 | getLocked                 in org.codehaus.groovy.util.LazyReference
  14. |     33 | get . . . . . . . . . . . in     ''
  15. |     64 | loadEngine                in grails.drools6.DroolsService
  16. |      8 | index . . . . . . . . . . in grails.drools6.DroolsController
  17. |    195 | doFilter                  in grails.plugin.cache.web.filter.PageFragmentCachingFilter
  18. |     63 | doFilter . . . . . . . .  in grails.plugin.cache.web.filter.AbstractFilter
  19. |   1145 | runWorker                 in java.util.concurrent.ThreadPoolExecutor
  20. |    615 | run . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  21. ^    724 | run                       in java.lang.Thread

{code}

do I need to configure custom (Grails) class loader to Kie ?