You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Arun Jamwal <Ar...@eng.sun.com> on 2000/02/09 01:08:08 UTC

Tomcat 3.0.1 rc build a testing

Here's the summary of the test results:

                    JDK1.2.2                      JDK1.3
-----------------------------------------------------------
Tomcat tests
------------
WinNT4.0        All tests passed            3 tests failed

SunOS 5.7       All tests passed            3 tests failed
-----------------------------------------------------------
Watchdog tests
---------------
WinNT4.0        All tests passed            3 tests failed

SunOS 5.7       All tests passed            3 tests failed
-----------------------------------------------------------

I'll investigate the failure cases further to make sure these are not
due to bad test cases.

Thanks,
Arun.

----------------TOMCAT Test suite
failures----------------------------------------
E:\jakarta\build\tomcat\test>runtest

testing 19 modules

    Welcome Test                        : FAIL - Server didn't forward
to /welcome/

        Test 57 : GET /jsp/pageContent3.jsp HTTP/1.0
        Test 58 : GET /jsp/xml.jsp HTTP/1.0


------------------WATCHDOG test suite
failures----------------------------

Script started on Tue Feb 08 14:48:30 2000
/home/arunj/jakarta/build/watchdog( 42 )% runtest.sh

"file:/home/arunj/jakarta/build/watchdog/webapps/jsp-tests/WEB-INF/web.xml"

    checkRequest                        : FAIL
    positiveSetPropSingleQuotes         : FAIL

    implicitImportServlet               : FAIL

SRGetAttributeNamesTest: init
    GetAttributeNames                   : OK - Problem getting
AttributeNames






Re: Tomcat 3.0.1 rc build a testing

Posted by Arun Jamwal <Ar...@eng.sun.com>.
Here are the details of Tomcat test failure cases.

========================================================================
    Welcome Test                        : FAIL -
                              sc!=302, Server didn't forward to /welcome/

WelcomeFileTest.java  excerpts: (see attachment for complete code)
----------------------------
.....
.....
try {
         URL url = URLHelper.getURL("/welcome");
         HttpURLConnection con = (HttpURLConnection)url.openConnection();
         con.setFollowRedirects(false);
         con.connect();
         int sc = con.getResponseCode();
         if (sc != 302) {
          testResult.setStatus(false);
          testResult.setMessage("sc!=302, Server didn't forward to /welcome/");

          return testResult;
         }
         String loc = con.getHeaderField("Location");
         if (loc == null || !loc.endsWith("/welcome/")) {
          testResult.setStatus(false);
          testResult.setMessage("Server didn't forward to /welcome/");
          return testResult;
         }
.....
.....
.....
=========================================================================
Request:
--------
GET http://localhost:8080/jsp/pageContent3.jsp HTTP/1.0

pageContent3.jsp
-----------------
<%@ page contentType="text/html;charset=iso-2022-jp" %>
<html>
<head>
<title>Kanji Test</title>
</head>
<body>
$B%G!%?%9%H%"(B
</body>
</html>

Server response:
----------------
Error: 500

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPwork\8080\_0005cjsp_0005cpageContent_00033_0002ejsppageContent3_jsp_0.java:1:
The source file encoding may be different with this platform encoding. Please
use -encoding option to adjust file encoding, or apply native2ascii utility to
make source file ASCII encoding.


1 error

        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:248)
        at org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:227)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:137)

        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:148)

        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at
org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)

        at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)

        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
        at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)

        at
org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:304)
        at java.lang.Thread.run(Thread.java:488)

================================================================
Request:
--------
GET http://localhost:8080/jsp/xml.jsp HTTP/1.0

xml.jsp
---------
<jsp:directive scope="page" /jsp:directive>
<HTML>
<BODY>
<!-- following line does not work
<jsp:declaration> String s = "say"; int i = s.length(); </jsp:declaration>
<jsp:declaration> <! [CDATA[ String s = "say"; int i = s.length(); ]]>
</jsp:declaration>
-->
<%! String s = "say"; int i = s.length(); %>
<jsp:scriptlet>
    out.println(i + s + (new String(s)).length());
</jsp:scriptlet>

<%@include file="buffer.jsp" %>

<jsp:include page="implicitPage.jsp" flush="true" />

<jsp:directive.include file="implicitOut.jsp" />

</BODY>
</HTML>

Server Response
----------------

Error: 500

Internal Servlet Error:

org.apache.jasper.compiler.ParseException: E:\jsp\xml.jsp(4,16) Attribute
aration has no value
        at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:454)
        at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:570)
        at
org.apache.jasper.compiler.Parser$Declaration.accept(Parser.java:448)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1056)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1031)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1027)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:172)
        at org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:227)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:137)

        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:148)

        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at
org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)

        at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)

        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
        at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)

        at
org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:304)
        at java.lang.Thread.run(Thread.java:488)

Arun Jamwal wrote:

> Here's the summary of the test results:
>
>                     JDK1.2.2                      JDK1.3
> -----------------------------------------------------------
> Tomcat tests
> ------------
> WinNT4.0        All tests passed            3 tests failed
>
> SunOS 5.7       All tests passed            3 tests failed
> -----------------------------------------------------------
> Watchdog tests
> ---------------
> WinNT4.0        All tests passed            3 tests failed
>
> SunOS 5.7       All tests passed            3 tests failed
> -----------------------------------------------------------
>
> I'll investigate the failure cases further to make sure these are not
> due to bad test cases.
>
> Thanks,
> Arun.
>
> ----------------TOMCAT Test suite
> failures----------------------------------------
> E:\jakarta\build\tomcat\test>runtest
>
> testing 19 modules
>
>     Welcome Test                        : FAIL - Server didn't forward
> to /welcome/
>
>         Test 57 : GET /jsp/pageContent3.jsp HTTP/1.0
>         Test 58 : GET /jsp/xml.jsp HTTP/1.0
>