2

After building project in Grails 2.5.1 reloading is not working. After some changes in controller, service or in my own groovy classes, I've to restart the application to see the changes. I've used this answer, but having the same behaviour.

In the console I'm getting an error-

plugins.AbstractGrailsPluginManager - Plugin [controllers:2.5.1] could not reload changes to file [***.groovy]: Cannot get property 'cacheOperationSource' on null object.

Have any ideas?

Community
  • 1
  • 1
Hhovhann
  • 511
  • 1
  • 6
  • 22
  • 1
    maybe it depend's on cache:1.1.8 plugin? – Hhovhann Oct 01 '15 at 06:04
  • Have grails in your package or naming convention : https://groups.google.com/forum/#!topic/grails-dev-discuss/u5gvuwWXoTk ...... In the app you sent me you had the package name for the Service class as package: grails.slow2 Now if I am corrent, it seems that grails has a plugin manager that caches all files in a grails.* package name or folder to make reloads faster. Hence your service class was cached since the package name had grails keyword in the name. .. change the package name ...and the reload worked just perfectly. Please test this on your side and confirm this for me. – V H Oct 01 '15 at 18:40
  • in my all packages i haven't package grails... – Hhovhann Oct 02 '15 at 05:23
  • Same problem i am facing. Have you found any solution.Even "grails -reloading run-app" is not working and forked execution is available by default. – Shashank.gupta40 Jan 01 '16 at 13:35

0 Answers0