Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.7-beta-2
-
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
}
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.