tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Popiol" <vpop...@douwantit.com>
Subject RE: Tomcat 4.0.4 Performance - PROBLEM
Date Wed, 26 Jun 2002 15:10:15 GMT
That doesn't seem to be the problem I'm experiencing, though. I stopped tomcat, deleted the
work folder, restarted it and still get the error running the example jsps.

I am very puzzled by this since our web application, which uses struts, works perfectly.

Thanks
Victor

-----Original Message-----
From: peter lin [mailto:peter.lin@labs.gte.com]
Sent: Wednesday, June 26, 2002 11:06 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.0.4 Performance - PROBLEM



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("<html>\r\n");
>       out.write("<!--\r\n  Copyright (c) 1999 The Apache Software
> Foundation.  All rights \r\n  reserved.\r\n-->\r\n\r\n");
>       out.write("\r\n\r\n");
>       out.write("<body bgcolor=\"white\">\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("<font size=4>\r\n");
>       out.write("<ul>\r\n");
>       out.write("<li>\tDay of month: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDayOfMonth())));
>       out.write("\r\n");
>       out.write("<li>\tYear: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getYear())));
>       out.write("\r\n");
>       out.write("<li>\tMonth: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getMonth())));
>       out.write("\r\n");
>       out.write("<li>\tTime: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getTime())));
>       out.write("\r\n");
>       out.write("<li>\tDate: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDate())));
>       out.write("\r\n");
>       out.write("<li>\tDay: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDay())));
>       out.write("\r\n");
>       out.write("<li>\tDay Of Year: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDayOfYear())));
>       out.write("\r\n");
>       out.write("<li>\tWeek Of Year: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getWeekOfYear())));
>       out.write("\r\n");
>       out.write("<li>\tera: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getEra())));
>       out.write("\r\n");
>       out.write("<li>\tDST Offset: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getDSTOffset())));
>       out.write("\r\n");
>       out.write("<li>\tZone Offset: is  ");
> 
> out.print(JspRuntimeLibrary.toString((((dates.JspCalendar)pageContext.findAttribute("clock")).getZoneOffset())));
>       out.write("\r\n");
>       out.write("</ul>\r\n");
>       out.write("</font>\r\n\r\n");
>       out.write("</body>\r\n");
>       out.write("</html>\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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message