The servlet tag:
******************
   <servlet>
      <servlet-name>home</servlet-name>
      <servlet-class>home</servlet-class>
      <load-on-startup>1</load-on-startup>
   </servlet>
***************************
is just something I came up with after reading the Chapter 5 document on
moreservlets.com. This solved the slowness problem for me (NOTE: my app is
all servlets and no JSP's, so I don't know how this affects JSP's).

My solution may be violating all kinds of security issues...I am a novice
with Tomcat and am just feeling my way as I go along (actually I expected to
be thrashed by someone ;-) who is more expert). I am still in the process of
reading the rest of Ch. 5.

RE: but I do not see why the servlet-mapping tag is there:
Ron you are correct...I did this as my first solution and it worked. I
subsequently read that it can be done globally, rather than in each
individual web.xml, but I haven't got around to changing it yet (and may
never change it, as the current solution works and I agree with Shakespeare:
"Striving to better, oft we mar what's well."

Scott Murray

----- Original Message -----
From: "micael" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, November 30, 2002 3:53 PM
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


> Okay, Murray, give it up!
>
> At 02:45 PM 11/30/2002 -0600, you wrote:
> >I didn't figure it out, Scott Murray did, I'm waiting for his
explanation.
> >
> >Ron
> >
> >-----Original Message-----
> >From: micael [mailto:[EMAIL PROTECTED]]
> >Sent: Saturday, November 30, 2002 2:38 PM
> >To: Tomcat Users List
> >Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
> >
> >
> >How did you ever figure this out, Ron?
> >
> >At 02:30 PM 11/30/2002 -0500, you wrote:
> > >Ron,
> > >
> > >I had the same problem, and fixed it with this same web.xml for all my
apps
> > >(this goes in the WEB-INF dir of each app):
> > >
> > >*****************************
> > ><?xml version="1.0" encoding="ISO-8859-1"?>
> > >
> > ><!DOCTYPE web-app
> > >     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > >     "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > ><web-app>
> > >   <servlet>
> > >      <servlet-name>home</servlet-name>
> > >      <servlet-class>home</servlet-class>
> > >      <load-on-startup>1</load-on-startup>
> > >   </servlet>
> > >  <servlet-mapping>
> > >   <servlet-name>invoker</servlet-name>
> > >    <url-pattern>/servlet/*</url-pattern>
> > >  </servlet-mapping>
> > ></web-app>
> > >**************************
> > >
> > >I found that if I preloaded the first servlet (in my case, home)
everything
> > >ran OK after that.
> > >
> > >Scott
> > >
> > >
> > >-----Original Message-----
> > >From: Ron Day [mailto:[EMAIL PROTECTED]]
> > >Sent: Saturday, November 30, 2002 11:03 AM
> > >To: Tomcat Users List
> > >Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
> > >
> > >
> > >What does this have to do with my problem .
> > >
> > >I am getting tired of seeing your pleas for help. Please buy a book !!
> > >
> > >R
> > >
> > >-----Original Message-----
> > >From: Steven Burrus [mailto:[EMAIL PROTECTED]]
> > >Sent: Saturday, November 30, 2002 12:36 AM
> > >To: Tomcat Users List
> > >Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3
> > >
> > >
> > >  I need some help/assistance right away with trying to see a JSP in my
> > >browser!! All that I get for my efforts is a cryptic server error msg.
> > >[404] message saying that the requested resource couldn't be found!
> > >
> > >
> > >On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day <[EMAIL PROTECTED]> wrote:
> > >
> > > > I just installed Tomcat 4.1.12.
> > > >
> > > > But now my tomcat 4.0.3 webapps run about 10 times slower.
> > > >
> > > > Anyone have any ideas as to why this may be.
> > > >
> > > > I did not change anything, and it happens for jsp's and servlets !!!
> > > >
> > > > ron
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:   <mailto:tomcat-user->
> > > [EMAIL PROTECTED]>
> > > > For additional commands, e-mail: <mailto:tomcat-user->
> > > [EMAIL PROTECTED]>
> > > >
> > > >
> > >
> > >
> > >
> > >--
> > >Steven Burrus
> > >
> > >--
> > >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]>
> > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> > >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >
> >Micael
> >
> >-------------------------------------------------------
> >
> >This electronic mail  transmission and any accompanying documents contain
> >information belonging to the sender which may be confidential and legally
> >privileged.  This information is intended only for the use of the
> >individual or entity to whom this electronic mail transmission was sent
as
> >indicated above. If you are not the intended recipient, any disclosure,
> >copying, distribution, or action taken in reliance on the contents of the
> >information contained in this transmission is strictly prohibited.  If
you
> >have received this transmission in error, please delete the message.
Thank
> >you
> >
> >
> >
> >--
> >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]>
>
> Micael
>
> -------------------------------------------------------
>
> This electronic mail  transmission and any accompanying documents contain
> information belonging to the sender which may be confidential and legally
> privileged.  This information is intended only for the use of the
> individual or entity to whom this electronic mail transmission was sent as
> indicated above. If you are not the intended recipient, any disclosure,
> copying, distribution, or action taken in reliance on the contents of the
> information contained in this transmission is strictly prohibited.  If you
> have received this transmission in error, please delete the message.
Thank you
>
>
>
> --
> 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]>

Reply via email to