I just reinstalled tomcat 4.0.4, tested it, it worked, copied jasper2 jars from tomcat 4.1.3 to tomcat/lib, copied ant.jar from tomcat 4.1.3 to tomcat/lib and get the same JSP problems.
My question is, where did you get your jasper2 jars from? Again my problem is that I can not get the sample jsps to work. I get the error below. I can't get this to work! Thanks Victor -----Original Message----- From: Peter Lin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 11:31 AM To: Tomcat Users List Subject: RE: Tomcat 4.0.4 Performance - PROBLEM the only thing different is I have jaxp-api.jar which is uused by JSTL. I don't have classes12 since I don't use Oracle. check your web.xml file under examples/WEB-INF/ it could be corrupted or wrong for some unknown reason. peter --- Victor Popiol <[EMAIL PROTECTED]> wrote: > It does recreate the examples folder but it does not > create any content inside the folder. > > I made shure that tomcat/lib contains > jasper-compiler.jar, jasper-runtime.jar and ant.jar > plus naming-factory.jar and still doesn't work. What > do you have in your tomcat/common/lib? I have the > following: > activation.jar > classes12_01.jar --> Oracle > jdbc2_0-stdext.jar > jndi.jar > jta-spec1_0_1.jar > mail.jar > naming-common.jar > naming-resources.jar > servlet.jar > tyrex-0.9.7.0.jar > tyrex.license > xerces.jar > > > Thanks > Victor > > > -----Original Message----- > From: peter lin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 26, 2002 11:16 AM > To: Tomcat Users List > Subject: Re: Tomcat 4.0.4 Performance - PROBLEM > > > > victor, > > do you see tomcat re-create the examples folder > under work/localhost/? > > I only have jasper-compiler.jar, jasper-runtime.jar > and ant.jar in my > tomcat/lib/ directory. other than that I didn't use > any other 4.1.5 > jars. I hope that helps. > > peter > > > > Victor Popiol wrote: > > > > 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:[EMAIL PROTECTED]] > > 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:[EMAIL PROTECTED]] > > > 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()))); > === message truncated === __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
