tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michael.br...@lynx.de
Subject Re: error using application under Tomcat 4.0
Date Wed, 19 Sep 2001 07:01:07 GMT

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<html>\r\n<body bgcolor=\"white\">\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</body>\r\n</html>\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:     <tomcat-user@jakarta.apache.org>  
                               
                    <craigmcc@apac       cc:                                          
                            
                    he.org>              Subject:     Re: error using application under
Tomcat 4.0                 
                    Sent by:                                                             
                         
                    <craigmcc@lynx                                                    
                            
                    .de>                                                              
                            
                                                                                         
                         
                                                                                         
                         
                    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






Mime
View raw message