Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 59998 invoked by uid 500); 23 Sep 2001 22:31:00 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 51532 invoked from network); 23 Sep 2001 22:14:50 -0000 Subject: Re: error using application under Tomcat 4.0 To: tomcat-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: michael.brohl@lynx.de Date: Wed, 19 Sep 2001 09:01:07 +0200 X-MIMETrack: Serialize by Router on LNA01BI/Lynx/DE(Release 5.0.8 |June 18, 2001) at 19.09.2001 09:03:35 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi , thanks for your reply. I'm sending you the source of the servlet , maybe you can see what's causing the error? (The application runs well under Tomcat 3.2) -- cut ------------------------------------------------------------------------------------------- package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.apache.jasper.runtime.*; public class errorpage$jsp extends HttpJspBase { static { } public errorpage$jsp( ) { } private static boolean _jspx_inited = false; public final void _jspx_init() throws org.apache.jasper.runtime.JspException { } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; Throwable exception = (Throwable) request.getAttribute ("javax.servlet.jsp.jspException"); ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; String _value = null; try { if (_jspx_inited == false) { synchronized (this) { if (_jspx_inited == false) { _jspx_init(); _jspx_inited = true; } } } _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, "", true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); // HTML // begin [file="/lynx/de/errorpage.jsp";from=(0,51);to =(1,0)] out.write("\r\n"); // end // HTML // begin [file="/lynx/de/errorpage.jsp";from=(1,30);to =(4,7)] out.write("\r\n\r\n\r\nError: "); // end // begin [file="/lynx/de/errorpage.jsp";from=(4,10);to=(4,33)] out.print(exception.getMessage() ); // end // HTML // begin [file="/lynx/de/errorpage.jsp";from=(4,35);to =(7,0)] out.write("\r\n\r\n\r\n"); // end } catch (Throwable t) { if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } } } -- cut ------------------------------------------------------------------------------------------- Regards Michael Brohl "Craig R. McClanahan" To: Subject: Re: error using application under Tomcat 4.0 Sent by: 18.09.2001 18:58 Please respond to tomcat-user The problem is happening at line 63 of the generated servlet for your "errorpage.jsp" page. It would be useful to look at that file (under the "work" directory) to see what is really going on. Craig