1

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?

Community
  • 1
  • 1
Laxmi Salunkhe
  • 509
  • 1
  • 4
  • 19
  • what have you changed since it last worked? are you running forked? – cfrick Apr 23 '15 at 12:33
  • Possible duplicate of `http://stackoverflow.com/questions/18882589/grails-2-3-0-auto-reloading-not-working` – ABC Apr 23 '15 at 13:07
  • @cfrick I am not running forked mode. In previous grails version 2.3.5 it was reloading properly but in upgraded grails 2.4.3 it's failed to reload. By the way, my colleague's have same grails app with 2.4.3 version and JDK 1.7.0_55 installed. Their app is reloading properly. Is there any system software related issue? – Laxmi Salunkhe Apr 24 '15 at 03:04

2 Answers2

1

grails -reloading run-app

after this your application starts reloading automatically.

0

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)
Community
  • 1
  • 1
Laxmi Salunkhe
  • 509
  • 1
  • 4
  • 19