tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lazar Kirchev <lazar.kirc...@gmail.com>
Subject Re: Using ServletContainerInitializer for 2.5 applications
Date Wed, 11 Apr 2012 12:23:14 GMT
I want the ServletContainerInitializer to be called for all applications I
deploy, not only with web.xml version 3.0, but also with lower version. Is
this possible?

On Wed, Apr 11, 2012 at 3:17 PM, Mikolaj Rydzewski <miki@ceti.pl> wrote:

> On 11.04.2012 14:10, Lazar Kirchev wrote:
>
>  In servlet 3.0 specification ServletContainerInitilizer class is defined
>> to
>> allow programatic addition of servlet/filters/listeners. I am using a
>> ServletContextInitializer to add a ServletContextListener to the
>> ServletContext. I use Tomcat 7.0.25. This works fine if the web.xml major
>> version is 3, but if it is 2 it does not work. I checked the
>> org.apache.catalina.startup.**ContextConfig code and it seems that
>> ServletContainerInitializers are added to the StandardContext only if the
>> major version is >= 3 (in an if-statement in the webConfig() method).
>> Could
>> you help me with this?
>>
>
> Help with what? What is the problem?
>
> --
> Mikolaj Rydzewski <miki@ceti.pl>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<users-unsubscribe@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message