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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.1, 1.8-beta-1
    • Component/s: Groovlet / GSP
    • Labels:
      None
    • Environment:
      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. web.xml
          0.9 kB
          Tom Comer
        2. test.war
          4.30 MB
          Tom Comer
        3. localhost.2010-02-15.log
          183 kB
          Tom Comer
        4. AbstractHttpServlet.java
          16 kB
          Tom Comer

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: