tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: Filters running twice!!!
Date Tue, 12 Feb 2002 13:01:03 GMT
does your dbfilterLog filter run twice also? 

I know that IE can sometimes make a "HEAD" request, but I'm not sure if that
would get to the filter or not(anyone know?). If from the "HEAD" request it
determines that it needs to reload the page, it will make a new request.

if you are just logging page accesses, you can use the AccessLogValve
instead. 

Charlie

> -----Original Message-----
> From: Terrence Szeto [mailto:t3szeto@hotmail.com]
> Sent: Monday, February 11, 2002 4:18 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Filters running twice!!!
> 
> 
> Well, I checked my server.xml file.
> I don't have any other Context with a docBase of "ROOT".  I just have
> 
> <Context path="" docBase="ROOT" debug="0"/>
> and
> <Context path="/examples" docBase="examples" debug="0" 
> reloadable="true"  
> crossContext="true">
> 
> Anyways, this is something I pulled up from the 
> localhost_log.2002-02-11.txt 
> file.  Does this help?
> 
> It it shows that the logFilter (which dumps some logging into 
> that file) 
> executes twice.
> 
> Thanks,
> 
> 
> Terrence Szeto
> Cybermation
> Web Architect
> 
> 
> 2002-02-11 16:13:05 WebappLoader[]: Deploying class 
> repositories to work 
> directory C:\jakarta-tomcat-4.0\work\localhost\_
> 2002-02-11 16:13:05 WebappLoader[]: Deploy class files 
> /WEB-INF/classes to 
> C:\jakarta-tomcat-4.0\webapps\ROOT\WEB-INF\classes
> 2002-02-11 16:13:05 StandardManager[]: Seeding random number 
> generator class 
> java.security.SecureRandom
> 2002-02-11 16:13:05 StandardManager[]: Seeding of random 
> number generator 
> has been completed
> 2002-02-11 16:13:05 ContextConfig[]: Configured an 
> authenticator for method 
> FORM
> 2002-02-11 16:13:05 StandardWrapper[:default]: Loading 
> container servlet 
> default
> 2002-02-11 16:13:05 default: init
> 2002-02-11 16:13:05 StandardWrapper[:invoker]: Loading 
> container servlet 
> invoker
> 2002-02-11 16:13:05 invoker: init
> 2002-02-11 16:13:05 jsp: init
> 2002-02-11 16:13:05 HostConfig[localhost]: Deploying configuration 
> descriptor manager.xml
> 2002-02-11 16:13:05 WebappLoader[/manager]: Deploying class 
> repositories to 
> work directory C:\jakarta-tomcat-4.0\work\localhost\manager
> 2002-02-11 16:13:05 WebappLoader[/manager]: Deploy JAR 
> /WEB-INF/lib/jasper-compiler.jar to 
> C:\jakarta-tomcat-4.0\webapps\..\server\webapps\manager\WEB-IN
> F\lib\jasper-compiler.jar
> 2002-02-11 16:13:05 WebappLoader[/manager]: Deploy JAR 
> /WEB-INF/lib/jasper-runtime.jar to 
> C:\jakarta-tomcat-4.0\webapps\..\server\webapps\manager\WEB-IN
> F\lib\jasper-runtime.jar
> 2002-02-11 16:13:05 StandardManager[/manager]: Seeding random number 
> generator class java.security.SecureRandom
> 2002-02-11 16:13:05 StandardManager[/manager]: Seeding of 
> random number 
> generator has been completed
> 2002-02-11 16:13:06 ContextConfig[/manager]: Configured an 
> authenticator for 
> method BASIC
> 2002-02-11 16:13:06 StandardWrapper[/manager:default]: 
> Loading container 
> servlet default
> 2002-02-11 16:13:06 default: init
> 2002-02-11 16:13:06 StandardWrapper[/manager:invoker]: 
> Loading container 
> servlet invoker
> 2002-02-11 16:13:06 invoker: init
> 2002-02-11 16:13:06 jsp: init
> 2002-02-11 16:13:06 HostConfig[localhost]: Deploying configuration 
> descriptor admin.xml
> 2002-02-11 16:13:12 HostConfig[localhost]: Deploying web application 
> directory tomcat-docs
> 2002-02-11 16:13:12 StandardHost[localhost]: Installing web 
> application at 
> context path /tomcat-docs from URL 
> file:C:\jakarta-tomcat-4.0\webapps\tomcat-docs
> 2002-02-11 16:13:12 WebappLoader[/tomcat-docs]: Deploying 
> class repositories 
> to work directory C:\jakarta-tomcat-4.0\work\localhost\tomcat-docs
> 2002-02-11 16:13:12 StandardManager[/tomcat-docs]: Seeding 
> random number 
> generator class java.security.SecureRandom
> 2002-02-11 16:13:12 StandardManager[/tomcat-docs]: Seeding of 
> random number 
> generator has been completed
> 2002-02-11 16:13:12 StandardWrapper[/tomcat-docs:default]: 
> Loading container 
> servlet default
> 2002-02-11 16:13:12 default: init
> 2002-02-11 16:13:12 StandardWrapper[/tomcat-docs:invoker]: 
> Loading container 
> servlet invoker
> 2002-02-11 16:13:12 invoker: init
> 2002-02-11 16:13:12 jsp: init
> 2002-02-11 16:13:12 HostConfig[localhost]: Deploying web application 
> directory webdav
> 2002-02-11 16:13:12 StandardHost[localhost]: Installing web 
> application at 
> context path /webdav from URL 
> file:C:\jakarta-tomcat-4.0\webapps\webdav
> 2002-02-11 16:13:12 WebappLoader[/webdav]: Deploying class 
> repositories to 
> work directory C:\jakarta-tomcat-4.0\work\localhost\webdav
> 2002-02-11 16:13:12 StandardManager[/webdav]: Seeding random number 
> generator class java.security.SecureRandom
> 2002-02-11 16:13:12 StandardManager[/webdav]: Seeding of 
> random number 
> generator has been completed
> 2002-02-11 16:13:13 StandardWrapper[/webdav:default]: Loading 
> container 
> servlet default
> 2002-02-11 16:13:13 default: init
> 2002-02-11 16:13:13 StandardWrapper[/webdav:invoker]: Loading 
> container 
> servlet invoker
> 2002-02-11 16:13:13 invoker: init
> 2002-02-11 16:13:13 jsp: init
> 2002-02-11 16:13:13 HostConfig[localhost]: Deploying web application 
> directory bookstore
> 2002-02-11 16:13:13 StandardHost[localhost]: Installing web 
> application at 
> context path /bookstore from URL 
> file:C:\jakarta-tomcat-4.0\webapps\bookstore
> 2002-02-11 16:13:13 WebappLoader[/bookstore]: Deploying class 
> repositories 
> to work directory C:\jakarta-tomcat-4.0\work\localhost\bookstore
> 2002-02-11 16:13:13 WebappLoader[/bookstore]: Deploy class files 
> /WEB-INF/classes to 
> C:\jakarta-tomcat-4.0\webapps\bookstore\WEB-INF\classes
> 2002-02-11 16:13:13 StandardManager[/bookstore]: Seeding 
> random number 
> generator class java.security.SecureRandom
> 2002-02-11 16:13:13 StandardManager[/bookstore]: Seeding of 
> random number 
> generator has been completed
> 2002-02-11 16:13:13 StandardWrapper[/bookstore:default]: 
> Loading container 
> servlet default
> 2002-02-11 16:13:13 default: init
> 2002-02-11 16:13:13 StandardWrapper[/bookstore:invoker]: 
> Loading container 
> servlet invoker
> 2002-02-11 16:13:13 invoker: init
> 2002-02-11 16:13:13 jsp: init
> 2002-02-11 16:13:16 127.0.0.1 tried to access 
> http://localhost/ on Mon Feb 
> 11 16:13:16 EST 2002. (Reported by logFilter.)
> 2002-02-11 16:13:16 127.0.0.1 tried to access 
> http://localhost/index.jsp on 
> Mon Feb 11 16:13:16 EST 2002. (Reported by logFilter.)
> 2002-02-11 16:13:16 jsp: init
> 2002-02-11 16:13:17 127.0.0.1 tried to access 
> http://localhost/index.jsp on 
> Mon Feb 11 16:13:17 EST 2002. (Reported by logFilter.)
> 2002-02-11 16:13:18 127.0.0.1 tried to access 
> http://localhost/login.jsp on 
> Mon Feb 11 16:13:18 EST 2002. (Reported by logFilter.)
> 2002-02-11 16:13:19 jsp: init
> 2002-02-11 16:13:19 127.0.0.1 tried to access 
http://localhost/login.jsp on 
Mon Feb 11 16:13:19 EST 2002. (Reported by logFilter.)
2002-02-11 16:13:22 127.0.0.1 tried to access http://localhost/main.jsp on 
Mon Feb 11 16:13:22 EST 2002. (Reported by logFilter.)
2002-02-11 16:13:22 jsp: init
2002-02-11 16:13:22 127.0.0.1 tried to access http://localhost/main.jsp on 
Mon Feb 11 16:13:22 EST 2002. (Reported by logFilter.)
2002-02-11 16:13:24 127.0.0.1 tried to access 
http://localhost/protected/supported.jsp on Mon Feb 11 16:13:24 EST 2002. 
(Reported by logFilter.)
2002-02-11 16:13:24 jsp: init
2002-02-11 16:13:25 127.0.0.1 tried to access 
http://localhost/protected/supported.jsp on Mon Feb 11 16:13:25 EST 2002. 
(Reported by logFilter.)
2002-02-11 16:13:26 127.0.0.1 tried to access 
http://localhost/protected/faqs.jsp on Mon Feb 11 16:13:26 EST 2002. 
(Reported by logFilter.)
2002-02-11 16:13:26 jsp: init
2002-02-11 16:13:26 127.0.0.1 tried to access 
http://localhost/protected/faqs.jsp on Mon Feb 11 16:13:26 EST 2002. 
(Reported by logFilter.)
2002-02-11 16:13:27 127.0.0.1 tried to access 
http://localhost/protected/supported.jsp on Mon Feb 11 16:13:27 EST 2002. 
(Reported by logFilter.)
2002-02-11 16:13:27 127.0.0.1 tried to access 
http://localhost/protected/supported.jsp on Mon Feb 11 16:13:27 EST 2002. 
(Reported by logFilter.)
2002-02-11 16:13:28 127.0.0.1 tried to access http://localhost/index.jsp on 
Mon Feb 11 16:13:28 EST 2002. (Reported by logFilter.)
2002-02-11 16:13:28 127.0.0.1 tried to access http://localhost/index.jsp on 
Mon Feb 11 16:13:28 EST 2002. (Reported by logFilter.)
2002-02-11 16:13:29 127.0.0.1 tried to access http://localhost/index.jsp on 
Mon Feb 11 16:13:29 EST 2002. (Reported by logFilter.)
2002-02-11 16:13:32 StandardHost[localhost]: Removing web application at 
context path /examples
2002-02-11 16:13:32 StandardHost[localhost]: Removing web application at 
context path /webdav
2002-02-11 16:13:32 StandardHost[localhost]: Removing web application at 
context path /tomcat-docs
2002-02-11 16:13:32 StandardHost[localhost]: Removing web application at 
context path /bookstore
2002-02-11 16:13:32 StandardHost[localhost]: Removing web application at 
context path /admin
2002-02-11 16:13:32 StandardHost[localhost]: Removing web application at 
context path /manager
2002-02-11 16:13:32 StandardHost[localhost]: Removing web application at 
context path


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message