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

GroovyServlets does not find groovlets in web application core under tomcat6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.7-beta-2
    • 1.7-rc-1
    • Groovlet / GSP
    • None
    • fedora 11/tomcat 6/
      OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-29.b16.fc11-x86_64)
      OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

    Description

      I create web application, which can be simplicified to 'groovy-all-1.7-beta2.jar' in lib, web.xml with standard
      GroovyServlet definition:
      ---------------------------
      <servlet>
      <servlet-name>Groovy</servlet-name>
      <servlet-class>groovy.servlet.GroovyServlet</servlet-class>
      </servlet>

      <servlet-mapping>
      <servlet-name>Groovy</servlet-name>
      <url-pattern>*.groovy</url-pattern>
      </servlet-mapping>
      ------------------------------

      and x.groovy with next text:
      --------------------------
      import java.util.Date
      import groovy.xml.MarkupBuilder

      def expr="";
      def result="";
      if (request.getParameter("expr")!=null) {
      expr=request.getParameter("expr");
      }
      html.html{
      body{
      form(id:"console_form", method:"post"){
      table{
      tr{
      td{textarea(name:"expr",cols:120, rows:6, "${expr}")}
      }
      tr{
      td

      {input(type:"submit")}

      }
      tr{
      td{textarea(name:"result",cols:120, rows:10, disabled:true,
      "${result}")}
      }
      }
      }
      }
      }
      ----------------------------------

      than, ater typing url: http://127.0.0.1:8080/ifs/x.groovy
      at first type, form is show, after submit (which must go on same URL) I see 404 page
      with message in catalina.out:
      INFO: GroovyServlet Error: script: '/x.groovy': Script not found, sending 404.
      GroovyServlet Error: script: '/x.groovy': Script not found, sending 404.

      Note, that bug is specific to 1.7-beta-2. in 1.6.1 all work as expected.

      If more information is needed, I can prepare war file with stripped-down application.

      Attachments

        1. 3888_v17x.txt
          1 kB
          Roshan Dawrani

        Activity

          People

            roshandawrani Roshan Dawrani
            rssh Ruslan Shevchenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: