grailsspring-loaded

Grails 2.4.3 app auto reloading not working


Unable to reload grails application at runtime, My current development environment: Grails app version 2.4.3 JDK: 1.7.0_21

I have added following setting in my BuildConfig file grails.servlet.version = "3.0" grails.reload.enabled = true

Some links

After going through different stack overflow links such as,

What is affecting to reload app at runtime?


Solution

  • After lots many debugging and checking online resources I succeeded to reload my app

    Solution: While running my grails app, I come across some java ioexception (user limit of inotify watches reached) which was restricting reloading of my grails app.

    1. Updated system inotify watch limit link
    2. Replaced springloaded jar shipped with grails 2.4.3 with snapshot version (Check this link https://jira.grails.org/browse/GRAILS-11728)