|
Hi all,
I've searched high and low (including a search of my .grails directory) but I cannot find any of the tomcat configuration files... can any one help? I want to enable symbolic links inside my webapp structure so that I don't have to store large libraries inside my code repository. Note I'm talking about enabling sym links in the development tomcat server that runs when I execute grails run-app Thanks! |
|
On 11.01.2010 08:52, sub wrote:
Hi all, I've searched high and low (including a search of my .grails directory) but I cannot find any of the tomcat configuration files... can any one help? I want to enable symbolic links inside my webapp structure so that I don't have to store large libraries inside my code repository. Note I'm talking about enabling sym links in the development tomcat server that runs when I execute grails run-app Thanks! There is no server.xml , but you can configure the embedded Tomcat by hooking to the eventConfigureTomcat event. Here's an example of adding an alias to the embedded Tomcat: Create _Events.groovy in your /scripts directory of your project: eventConfigureTomcat = {tomcat ->This blog article might help too:http://krollrich.blogspot.com/2009/12/run-java-web-application-within-grails.html Source code of Tomcat plugin: http://fisheye.codehaus.org/browse/grails/trunk/grails-plugins/grails-tomcat/trunk/src/groovy/org/grails/tomcat/TomcatServer.groovy Regards, Lari |
|
In reply to this post by sub
That's what I put in _Events.groovy:
eventConfigureTomcat = {tomcat -> def ctx=tomcat.host.findChild(serverContextPath) ctx.allowLinking = true } This seems to work - had 404s before, but not anymore. cu Michael
|
|
In reply to this post by Lari Hotari
Thanks very much for both posts - no wonder I couldn't find server.xml :)
There is obviously much for me to learn - though I have to say I could not find any documentation describing how the plugin works. Cheers
|
| Powered by Nabble | See how NAML generates this page |
