Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 79552 invoked from network); 26 Jun 2002 15:04:25 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by 209.66.108.5 with SMTP; 26 Jun 2002 15:04:25 -0000 Received: (qmail 14200 invoked by uid 97); 26 Jun 2002 15:03:59 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 14170 invoked by uid 97); 26 Jun 2002 15:03:58 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 14158 invoked by uid 98); 26 Jun 2002 15:03:58 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D19D854.DCB785CF@labs.gte.com> Date: Wed, 26 Jun 2002 11:05:56 -0400 From: peter lin X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat 4.0.4 Performance - PROBLEM References: <821DB854BE062D4A83FE8012AA0CCB1F045532@server3.corp.douwantit.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N hi victor, there is a bug, which is already patched I believe. basically if you delete the working folder while tomcat is running, jasper2 doesn't recompile the dependent pages. you can get around that by restarting, or creating the missing folder manually. it should be fixed with the next alpha release of 4.1.6. peter Victor Popiol wrote: > > I did delete the working folders. > > This is how I set up Jasper2 on Tomcat 4.0.4: > - Copied the following files to $catalina_home$/lib: ant.jar, commos-collections.jar, commons-logging.jar, jasper-compiler.jar, jasper-runtime.jar > - Also tried as an alternative to move those files to $catalina_home$/common/lib to no avail. > > Is that how you set it up? > > Thanks > Victor > > -----Original Message----- > From: peter lin [mailto:peter.lin@labs.gte.com] > Sent: Wednesday, June 26, 2002 10:50 AM > To: Tomcat Users List > Subject: Re: Tomcat 4.0.4 Performance - PROBLEM > > hi victor, > > it worked fine for me with tomcat 4.0.3 and jasper2 on win2k. It looks > like it couldn't load something. Did you delete the working folders > maybe? Here is the generated file I got. > > peter > > ------------------------------------------------------------ > package org.apache.jsp; > > import javax.servlet.*; > import javax.servlet.http.*; > import javax.servlet.jsp.*; > import org.apache.jasper.runtime.*; > > public class date$jsp extends HttpJspBase { > > private static java.util.Vector _jspx_includes; > > public java.util.List getIncludes() { > return _jspx_includes; > } > > public void _jspService(HttpServletRequest request, > HttpServletResponse response) > throws java.io.IOException, ServletException { > > JspFactory _jspxFactory = null; > javax.servlet.jsp.PageContext pageContext = null; > ServletContext application = null; > ServletConfig config = null; > JspWriter out = null; > Object page = this; > JspWriter _jspx_out = null; > > try { > _jspxFactory = JspFactory.getDefaultFactory(); > response.setContentType("text/html;ISO-8859-1"); > pageContext = _jspxFactory.getPageContext(this, request, response, > null, false, 8192, true); > application = pageContext.getServletContext(); > config = pageContext.getServletConfig(); > out = pageContext.getOut(); > _jspx_out = out; > > out.write("\r\n"); > out.write("\r\n\r\n"); > out.write("\r\n\r\n"); > out.write("\r\n"); > dates.JspCalendar clock = null; > synchronized (pageContext) { > clock = (dates.JspCalendar) pageContext.getAttribute("clock", > PageContext.PAGE_SCOPE); > if (clock == null){ > try { > clock = (dates.JspCalendar) > java.beans.Beans.instantiate(this.getClass().getClassLoader(), > "dates.JspCalendar"); > } catch (ClassNotFoundException exc) { > throw new InstantiationException(exc.getMessage()); > } catch (Exception exc) { > throw new ServletException("Cannot create bean of class " + > "dates.JspCalendar", exc); > } > pageContext.setAttribute("clock", clock, > PageContext.PAGE_SCOPE); > } > } > out.write("\r\n\r\n"); > out.write("\r\n"); > out.write("
    \r\n"); > out.write("
  • \tDay of month: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDayOfMonth()))); > out.write("\r\n"); > out.write("
  • \tYear: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getYear()))); > out.write("\r\n"); > out.write("
  • \tMonth: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getMonth()))); > out.write("\r\n"); > out.write("
  • \tTime: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getTime()))); > out.write("\r\n"); > out.write("
  • \tDate: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDate()))); > out.write("\r\n"); > out.write("
  • \tDay: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDay()))); > out.write("\r\n"); > out.write("
  • \tDay Of Year: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDayOfYear()))); > out.write("\r\n"); > out.write("
  • \tWeek Of Year: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getWeekOfYear()))); > out.write("\r\n"); > out.write("
  • \tera: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getEra()))); > out.write("\r\n"); > out.write("
  • \tDST Offset: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDSTOffset()))); > out.write("\r\n"); > out.write("
  • \tZone Offset: is "); > > out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getZoneOffset()))); > out.write("\r\n"); > out.write("
\r\n"); > out.write("
\r\n\r\n"); > out.write("\r\n"); > out.write("\r\n"); > } catch (Throwable t) { > out = _jspx_out; > if (out != null && out.getBufferSize() != 0) > out.clearBuffer(); > if (pageContext != null) pageContext.handlePageException(t); > } finally { > if (_jspxFactory != null) > _jspxFactory.releasePageContext(pageContext); > } > } > } > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: