tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: Tomcat 4.0.4 Performance - PROBLEM
Date Wed, 26 Jun 2002 17:39:37 GMT
yep that's there, did not change that one. 
-r

> -----Original Message-----
> From: Victor Popiol [mailto:vpopiol@douwantit.com]
> Sent: 26. júní 2002 17:46
> To: Tomcat Users List
> Subject: RE: Tomcat 4.0.4 Performance - PROBLEM
> 
> 
> One more question:
> do you have naming-factory.jar in your tomcat4.0.4/lib? It 
> was originally there.
> 
> Thanks
> Victor
> 
> -----Original Message-----
> From: Reynir Hübner [mailto:reynir@hugsmidjan.is]
> Sent: Wednesday, June 26, 2002 1:20 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.0.4 Performance - PROBLEM
> 
> 
> I have an idea of what may be wrong there..
> 
> I had to move commons-collection.jar from the tc4.1.3 dist to 
> my tc.4.0.3. common/lib
> you say u're running struts apps, so that may produce the 
> possibility that you have a wrong version of this jar-file, 
> as it is distributed with struts too.
> 
> just an idea.
> hope it helps
> reynir@hugsmidjan.is
> 
> 
> 
> > -----Original Message-----
> > From: Victor Popiol [mailto:vpopiol@douwantit.com]
> > Sent: 26. júní 2002 17:22
> > To: Tomcat Users List
> > Subject: RE: Tomcat 4.0.4 Performance - PROBLEM
> > 
> > 
> > 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:tcw00lfel@yahoo.com]
> > 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 <vpopiol@douwantit.com> 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:peter.lin@labs.gte.com]
> > > 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: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)page
> > Context.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: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>
> 
> 

--
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