Jay Chandran
Jay Chandran

Reputation: 382

Grails: WAR file question

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

Upvotes: 2

Views: 1158

Answers (2)

Paras
Paras

Reputation: 824

This is slightly related to 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.

Upvotes: 2

Aaron Saunders
Aaron Saunders

Reputation: 33345

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

Upvotes: 0

Related Questions