I have a Groovy script at the root of my web application that is served by Tomcat 7.0.22. The script is served by GroovyServlet from Groovy 1.8.4. When I launch the application through the Tomcat "manager" application, I can send a script request and return 200. Without changing anything, I can send a second request and return 404. Each request after the first request leads to 404 until I restart the application. The only thing that is recorded in the Catalina.out log is:
GroovyServlet Error: script: '/test.groovy': Script not found, sending 404.
How can I either 1) solve this problem, or 2) go about debugging? I looked at the GroovyServlet source code for any possible web.xml configuration options for debugging, but I can't see them.
To be clear, my application web directory:
/test.groovy /WEB-INF/lib/*.jar /WEB-INF/groovy/classes*.groovy /WEB-INF/web.xml
source share