atom feed4 messages in org.codehaus.grails.devRe: [grails-dev] Problem with Tomcat ...
FromSent OnAttachments
Peter LedbrookAug 24, 2009 2:36 am 
Graeme RocherAug 24, 2009 2:39 am 
Peter LedbrookAug 24, 2009 3:13 am 
Robert FletcherAug 24, 2009 4:35 am 
Subject:Re: [grails-dev] Problem with Tomcat plugin and plugin resources
From:Graeme Rocher (
Date:Aug 24, 2009 2:39:12 am

Hi Peter,

The tomcat plugin creates aliases to the directories so you shouldn't need the copying. If this is not working there may be a bug, but it works locally for the plugins I'm using


On Mon, Aug 24, 2009 at 11:36 AM, Peter Ledbrook<> wrote:


I tried the Nimble plugin with Grails 1.2-SNAPSHOT recently and discovered that its pages weren't being displayed correctly. Apparently, the server couldn't find any of the plugin's CSS, JS, and image files. Why? Because the Tomcat plugin doesn't copy the plugin resources into the application's "web-app" directory.

The quick fix would be to make the Tomcat plugin do what the Jetty one does: call packagePluginsForWar() from the GenerateWebXmlEnd event. However, maybe a better solution is to make run-app call packagePluginsForWar()? Is there a reason that Grails leaves the work to the plugins?