You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by "Blohm, Henning" <he...@sap.com> on 2000/11/06 18:18:37 UTC
different servlet names in web.xml but same class
Hi everybody,
When using Tomcat 3.1 and specifying two different <servlet>s in a web.xml
deployment descriptor that point to the same servlet class it seems that
that class gets loaded only once. This prevents using the same servlet class
in two different settings specified by init parameters in the deployment
descriptor. Should this be considered a bug or something to be done? Does
anybody know a practical workaround?
This is particularly desirable when developing Turbine Applications using
Tomcat where the class is always Turbine (resp. org.apache.Turbine) but the
applications are set up differently by pointing to different
TurbineResources.properties files using init parameters.
Thanks,
Henning
Re: different servlet names in web.xml but same class
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Ed Smierciak wrote:
> This particular bug is a major inconvenience -- where is it on the priority list?
>
In terms of fixing it in 3.1, it's not on the priority list at all. The focus is on
fixing things in 3.2 so that we can release it. Could you please give your test case
a try with the latest beta and confirm that it is working correctly (or not) there?
>
> Ed Smierciak
>
Craig McClanahan
Re: different servlet names in web.xml but same class
Posted by Ed Smierciak <es...@enduden.com>.
I can confirm this behavior.
I don't see this bug in earlier releases of 3.1 either. Unfortunately, I haven't
figured out a workaround for it. The only thing that has occurred to me is is to
put the second servlet in a separate Context (i.e. a separate JVM), provided your
two servlets don't need a common application context.
This particular bug is a major inconvenience -- where is it on the priority list?
Ed Smierciak
Rick Beaubien wrote:
> I believe that this is another manifestation of the 3.1 bug I reported as
> bug #170. I am not sure what the status is, however. Oddly, the problem
> was not apparent in the earliest releases of 3.1, but introduced later.
>
> Rick Beaubien
>
> At 06:18 PM 11/06/2000 +0100, you wrote:
> >Hi everybody,
> >
> > When using Tomcat 3.1 and specifying two different <servlet>s in a web.xml
> >deployment descriptor that point to the same servlet class it seems that
> >that class gets loaded only once. This prevents using the same servlet class
> >in two different settings specified by init parameters in the deployment
> >descriptor. Should this be considered a bug or something to be done? Does
> >anybody know a practical workaround?
> >
> >This is particularly desirable when developing Turbine Applications using
> >Tomcat where the class is always Turbine (resp. org.apache.Turbine) but the
> >applications are set up differently by pointing to different
> >TurbineResources.properties files using init parameters.
> >
> >Thanks,
> >
> > Henning
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: general-help@jakarta.apache.org
> >
> >
> >
>
> -----------------------------------------------------
> Rick Beaubien
>
> Software Engineer: Research and Development
> Library Systems Office
> Rm 386 Doe Library
> University of California
> Berkeley, CA 94720-6000
> 510-643-9776
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
Re: different servlet names in web.xml but same class
Posted by Rick Beaubien <rb...@library.berkeley.edu>.
I believe that this is another manifestation of the 3.1 bug I reported as
bug #170. I am not sure what the status is, however. Oddly, the problem
was not apparent in the earliest releases of 3.1, but introduced later.
Rick Beaubien
At 06:18 PM 11/06/2000 +0100, you wrote:
>Hi everybody,
>
> When using Tomcat 3.1 and specifying two different <servlet>s in a web.xml
>deployment descriptor that point to the same servlet class it seems that
>that class gets loaded only once. This prevents using the same servlet class
>in two different settings specified by init parameters in the deployment
>descriptor. Should this be considered a bug or something to be done? Does
>anybody know a practical workaround?
>
>This is particularly desirable when developing Turbine Applications using
>Tomcat where the class is always Turbine (resp. org.apache.Turbine) but the
>applications are set up differently by pointing to different
>TurbineResources.properties files using init parameters.
>
>Thanks,
>
> Henning
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: general-help@jakarta.apache.org
>
>
>
-----------------------------------------------------
Rick Beaubien
Software Engineer: Research and Development
Library Systems Office
Rm 386 Doe Library
University of California
Berkeley, CA 94720-6000
510-643-9776