给Grails应用打上“分布式”标记,即在工程的web.xml文件中添加:<distributable/>;请注意,不要直接去修改Grails工程下web-app\WEB-INF里的web.xml。要修改该文件,先运行“grails install-templates”,然后进入工程的src/templates/war/去修改。
转自:http://www.groovyq.net/content/tomcat%E4%B8%AD%E7%9A%84grails%E5%BA%94%E7%94%A8%E9%9B%86%E7%BE%A4