Monday, September 19, 2011

grails tomcat plugin sym links

create scripts/Event.groovy:

eventConfigureTomcat = {tomcat ->
def ctx = tomcat.host.findChild(serverContextPath)
ctx.allowLinking = true
}

However when grails.app.context = "/", this doesn't work because the TomcatServer.groovy replaces "/" with ""


therefore, must change tomcat.host.findChild(serverContextPath) to tomcat.host.findChild("")

No comments: