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

-------------Problems Reply------------

This is slightly related to

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.

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

Category:grails Views:1 Time:2010-09-17
Tags: grails

Related post

  • An issue with deploying grails war file 2012-03-01

    Using grails 2.0.2 I created a war file for my application and placed in the web apps directory of a jetty instance. I get this error. The application works fine in local testing with grails run-app. What am I doing wrong? 2012-03-01 18:12:14.151:WAR

  • Grails war file deployment on Tomcat 2012-03-22

    When I deploy Grails application (war file) on Tomcat 7 I start it with *server_ip:8080/war_file_name-0.1* How can I make this server_ip/war_file/ --------------Solutions------------- Just change the name of the war file. You can change the name gene

  • Create grails war without version number 2008-10-02

    How do I create a grails war file so that it doesn't have the version number (e.g. foo-0.1.war) attached to the end when I execute the 'grails war' command? --------------Solutions------------- I think you can specify the war name in the war command.

  • Grails war causes memory leak in Tomcat? 2011-11-11

    I recently deployed a Grails war-file using tomcat. I then wanted to deploy a new version, I stopped/undeployed the old one and tried to deploy the new version. This was all done using the manager pages. When I clicked on deploy tomcat gave me an err

  • How to exclude a resource from the war file in Grails 2.0? 2011-12-19

    I have some test data with some special content (images, videos, etc.) in my Grails 2 application that should not be included when building the war. At development time, these files are stored in web-app/content/. So the question is, how do I exclude

  • Grails shell on WAR file deployment 2009-06-11

    I am maintaining a Grails application that I did not write(I have no experience with Groovy/Grails, actually :)) and it currently has a bug on one of the environments it's deployed on, but not others. In order to debug this, I want to jump into the g

  • war file generated by Grails ignores dataSource URL 2009-09-12

    Grails version :1.1 Tomcat version: 5.5 The problem: The application doesn't use the URL data sources. It seems like - it is using some other data source- but it doesn't seem to be in memory DB- since I can see the data persisted between sessions. I

  • Grails 1.3.4 / Terracotta 3.5.1: Deploying a .war file fails 2011-06-14

    We have a Grails (1.3.4) app running with Terracotta Ehcache 3.3. We are trying to update our Terracotta installation to the latest one, 3.5.1. I added these lines in the BuildConfig.groovy: inherits("global") { // uncomment to disable ehcache // exc

  • Grails - how to load .properties file after deploying WAR file 2011-06-16

    So I am loading the file using grails.config.locations = ["file:${basedir}/web-app/WEB-INF/"] But when I deploy by creating a WAR file, it has a different directory structure, where the file is under WEB-IN

  • Problem with Grails 'war' command which is trying to read the config file 2011-08-04

    I store the configuration for my Grails application (such as DB configuration) in an XML config file. My DataSource.groovy is using the config file to get the Database information. Unfortunately, when I'm building the War file for my test environment

  • Deploying a simple grails (1.3.7) WAR file to JBoss 7.0.1 2011-08-26

    We are trying to get a simple grails (1.3.7) war file deployed onto JBoss 7.0.1. But we are running into this exception that prevents the application from deploying. $ sudo bin/ ===========================================================

  • Deploying Grails app inside another Java EE web app as ONE war file 2011-09-15

    I have existing Java EE web applications. And I also have a new Grails 1.3.7 application. The requirement is to embedded this Grails app inside an existing Java EE app and deploy it in one war file. Please let me know if that would be possible. -----

  • What's the simplest way to deploy a Grails-generated WAR file? 2012-03-21

    I've been having persistent problems (for several weeks) getting Tomcat to deploy a WAR file. I'm looking for a simple server. It does not need to have a lot of functionality-it just needs to be simple to set up. In particular I'm looking for a progr

  • jboss seems to load my war file but gives a 404 page, and how can I fix this? 2012-04-11

    I am trying to evaluate if I can upgragde to jboss 7.1.1 I created the war file of my grails application: grails war then I put the war file inside the jboss standalone deployment directory. It seems to be picked up by the server since I see in the o

  • Maven dependency exclusion for War file, but inclusion for tests 2008-09-25

    I have a maven POM file for a web service. For one of the dependencies I have to specify several exclusions for jar files that are already kept at a higher-level in the web-application server (accessible to all web-applications, not just this particu

  • How can I automate (script) creating a war file in eclipse? 2008-11-16

    It's 5 button clicks to get eclipse to create a deployable war file for my eclipse project, I figure there's probably some eclipse command line option to do the same thing, so I can just write it into a script, but I'm not seeing it. --------------So

  • How do I push an update to a war file to clients? 2009-01-15

    Assuming my clients are running my J2EE WAR application on their intranet, and I have an update for them... how do I push the updated war file to them? I'd like it to be automatic and require no human interaction on the client's side. Can this be don

  • Is it possible to create dynamically pluggable GWT widgets/portlets in separate war files? 2009-05-02

    Is it possible to create widgets / portlets in GWT that can be dynamically loaded and added to a GWT web application, and where the GWT widgets can reside in a separate war files? To clarify my question: JSR168/JSR286 compliant portals make it possib

  • Groovy: deploying a war file 2009-06-16

    Hi I have a groovy application running locally on my desktop. Apparently it runs error free. At least all unit tests I wrote are fulfilled. I want to deploy the application using a war file. For this I use the command grails war in the home directory

Copyright (C), All Rights Reserved.

processed in 0.124 (s). 11 q(s)