is it not possible to define a global filter for all web applications? If I
add

  <filter>
    <filter-name>Logger</filter-name>
    <filter-class>filters.LoggerFilter</filter-class>
    <init-param>
      <param-name>localTimeout</param-name>
      <param-value>480</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>Logger</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

to conf/web.xml Tomcat gives SERVERE warnings at startup

14.11.2008 12:34:57 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
14.11.2008 12:34:57 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 576 ms
14.11.2008 12:34:58 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
14.11.2008 12:34:58 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
14.11.2008 12:34:58 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
14.11.2008 12:34:58 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error filterStart

while when using the WEB-INF/web.xml is starts just fine

Thanks again

-----Ursprüngliche Nachricht-----
Von: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 14. November 2008 09:42
An: Tomcat Users List
Betreff: Re: AW: Different session timeout for local and external users


Ehlers, Kolja wrote:
> Thanks for the speedy answer to my question. Is this the only possibility?
> Since the filter will be called for each request, maybe this will slow
down
> my web application
>
Maybe. But not likely. Search the web for 'premature optimization' ;-)

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt
Amtsgericht Köln HRB 32356
Steuer-Nr.: 217/5717/0536
Ust.Id.-Nr.: DE 204051920
--
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that any disclosure, copying, printing,
distribution or use of this transmission is strictly prohibited. If you
have received this transmission in error, please immediately notify the
sender by telephone or return email and delete the original transmission
and its attachments without reading or saving in any manner.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to