Title: RE: Maybe Linux Bug

Ideas:
- Did you change <%@ page session="true"%> into <%@ page session="false"%>  ?
- Did you check if the JSP was generated and compiled after this change ?

    -----Message d'origine-----
    De:     SongDongsheng [SMTP:[EMAIL PROTECTED]]
    Date:   jeudi 31 mai 2001 10:56
    �:      [EMAIL PROTECTED]
    Objet:  Maybe Linux Bug

    Hi,
    �
    I use apache 1.3.19 and jakarta-tomcat-4.0-20010530.tar.gz under linux, the test.jsp is:
    ***************************************************************************************
    <%@ page session="false"%>
    <html>
    <head>
    <title>JSP Test Page</title>
    </head>

    �
    <body>
    <%
    �out.println("Hello, World !");�%>
    </body>
    ������������
    </html>
    ***************************************************************************************

    and _0002ftest_jsp.java(Tomcat gerenated) is:
    ***************************************************************************************
    package org.apache.jsp;
    �
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import org.apache.jasper.runtime.*;

    �

    public class _0002ftest_jsp extends HttpJspBase {
    �

    ��� static {
    ��� }
    ��� public _0002ftest_jsp( ) {
    ��� }
    �
    ��� private static boolean _jspx_inited = false;
    �
    ��� public final void _jspx_init() throws org.apache.jasper.JasperException {
    ��� }
    �
    ��� public void _jspService(HttpServletRequest request, HttpServletResponse� response)
    ������� throws java.io.IOException, ServletException {
    �
    ������� JspFactory _jspxFactory = null;
    ������� PageContext pageContext = null;
    ������� HttpSession session = null;
    ������� 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;charset=ISO-8859-1");
    ����������� pageContext = _jspxFactory.getPageContext(this, request, response,
    ���"", true, 8192, true);
    �
    ����������� application = pageContext.getServletContext();
    ����������� config = pageContext.getServletConfig();
    ����������� session = pageContext.getSession();
    ����������� out = pageContext.getOut();
    �
    ����������� // HTML // begin [file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(0,27);to=(1,0)]
    ��������������� out.write("\r\n");
    �
    ����������� // end
    ����������� // HTML // begin [file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(1,32);to=(9,0)]
    ��������������� out.write("\r\n\r\n<html>\r\n<head>\r\n<title>JSP Test Page</title>\r\n</head>\r\n\r\n<body>\r\n");
    �
    ����������� // end
    ����������� // begin [file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(9,2);to=(13,0)]
    ���������������
    ���������������
    ��������������� out.println("Hello, World !");
    ���������������
    ����������� // end
    ����������� // HTML // begin [file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(13,2);to=(17,0)]
    ��������������� out.write("\r\n</body>������������ \r\n������������ \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);
    ������� }
    ��� }
    }
    ***************************************************************************************

    and Tomcat-Apache WarpConnector log is:
    ***************************************************************************************

    2001-05-31 16:43:12 WarpContext[/jsp]: Mapping contextPath='/jsp' with requestURI='/jsp/test.jsp' and relativeURI='/test.jsp'
    2001-05-31 16:43:12 WarpContext[/jsp]: Decoded relativeURI='/test.jsp'
    2001-05-31 16:43:12 WarpContext[/jsp]:
    �� Trying exact match
    2001-05-31 16:43:12 WarpContext[/jsp]:
    �� Trying prefix match
    2001-05-31 16:43:12 WarpContext[/jsp]:
    �� Trying extension match
    2001-05-31 16:43:12 WarpContext[/jsp]:
    � Mapped to servlet 'jsp' with servlet path '/test.jsp' and path info 'null' and update=true
    2001-05-31 16:43:15 jsp: init
    2001-05-31 16:43:15 JspFactoryImpl: Exception initializing page context - java.lang.IllegalStateException: Page needs a session and none is available
    �at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:141)
    �at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:114)
    �at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:175)
    �at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154)
    �at org.apache.jsp._0002ftest_jsp._jspService(_0002ftest_jsp.java:47)
    �at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    �at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    �at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)
    �at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
    �at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
    �at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    �at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    �at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    �at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)
    �at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    �at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    �at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    �at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225)
    �at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    �at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    �at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    �at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252)
    �at org.apache.catalina.connector.warp.WarpContext.invoke(WarpContext.java:99)
    �at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    �at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    �at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    �at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    �at org.apache.catalina.connector.warp.WarpHost.invoke(WarpHost.java:111)
    �at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
    �at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    �at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    �at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    �at org.apache.catalina.connector.warp.WarpEngine.invoke(WarpEngine.java:115)
    �at org.apache.catalina.connector.warp.WarpRequestHandler.process(WarpRequestHandler.java:165)
    �at org.apache.catalina.connector.warp.WarpHandler.run(WarpHandler.java:156)
    �at java.lang.Thread.run(Thread.java:484)
    ***************************************************************************************
    �
    Is there something wrong ?
    �
    thanks for anvance.
    �

Reply via email to