Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 82513 invoked from network); 9 Feb 2000 02:16:14 -0000 Received: from mercury.sun.com (192.9.25.1) by locus.apache.org with SMTP; 9 Feb 2000 02:16:14 -0000 Received: from taller.eng.sun.com ([129.144.174.34]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id SAA00208 for ; Tue, 8 Feb 2000 18:16:13 -0800 (PST) Received: from eng.sun.com (d-ucup02-252-249 [129.144.252.249]) by taller.eng.sun.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id SAA24729 for ; Tue, 8 Feb 2000 18:16:13 -0800 (PST) Message-ID: <38A0B3ED.7C408B0C@eng.sun.com> Date: Tue, 08 Feb 2000 18:25:17 -0600 From: Arun Jamwal Reply-To: Arun.Jamwal@eng.sun.com X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: Re: Tomcat 3.0.1 rc build a testing References: <38A0AFE8.E55CF6E1@eng.sun.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" %> Kanji Test $B%G!%?%9%H%"(B 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 --------- <%! String s = "say"; int i = s.length(); %> out.println(i + s + (new String(s)).length()); <%@include file="buffer.jsp" %> 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 >