Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4061

Error trying to configure GroovyServlet to point to single groovy file for all URLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.1, 1.8-beta-1
    • Groovlet / GSP
    • None
    • Tomcat 6 / JDK 6

    Description

      When trying to configure the GroovyServlet to direct all request to a single groovy script to be able to have dynamic RESTful URLs, a java.lang.StackOverflowError is thrown. What seems to be happening is something is recursively calling the getResource() method on the AbstractHttpServlet over and over always appending BeanInfo onto the name of the file. I've attached a simple war file that demonstrates this. I've also included the log file as well.

      Attachments

        1. AbstractHttpServlet.java
          16 kB
          Tom Comer
        2. test.war
          4.30 MB
          Tom Comer
        3. web.xml
          0.9 kB
          Tom Comer
        4. localhost.2010-02-15.log
          183 kB
          Tom Comer

        Activity

          People

            roshandawrani Roshan Dawrani
            tcomer Tom Comer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: