tags:

views:

52

answers:

2

Hi,

I am using Grails 1.3.4. Using grails WAR command, I build the war and deploy it to Tomcat 6.0.20. When tomcat is started, the war gets exploded and application works fine as required.

The questions, if I make any changes to say for example a .js file in the exploded war package , the change never gets reflected in the front end even after restarting tomcat. It is the same case for .gsp pages. So every time I have to build the war again (including my changes) and redeploy it again.

Is there anything I am missing or something I am doing wrong?

Cheers! jAY

A: 

are you deleting the war file before restarting the application server? If not tomcat will just explode it again and it will over write your changes

Aaron Saunders
Deleted the war. Made changes to .js file, refreshed page. Change is reflected! But changes to .gsp pages does not get reflected! I have also deleted the work and tmp folders, but no luck!
Jay Chandran
+1  A: 

This is slightly related to http://stackoverflow.com/questions/2760735/modifying-groovy-code-at-runtime-in-grails-application

For GSP at least you can set grails.gsp.enable.reload=true But if you it more often you will eventually get OutOfMemory exception. So be careful with that.

Paras
Thanks for that.
Jay Chandran