.groovy extension mapped in web.xml and .groovy script located in WEB-INF/groovy
First call to test.groovy works
INFO: Groovy servlet initialized on groovy.util.GroovyScriptEngine@6f03de90.
Oct 8, 2012 1:52:39 PM org.apache.catalina.core.ApplicationContext log
All subsequent calls return 404
INFO: Server startup in 773 ms
GroovyServlet Error: script: '/test.groovy': Script not found, sending 404.
Note the .groovy mapping works corrected in Groovy 1.8.4 through 2.0.1 but appears to have broken as 2.0.2 through 2.0.5.
Attached sample WAR removed the groovy jar which was originally packed as "WEB-INF/lib/groovy-all-2.0.5.jar"
Related discussion can be found here: