Hey Charlie, I found the error.
APPARENTLY, on my JSP pages, I had <%@ page contentType="text/html"%> THIS seemed to push a refresh every single time I load the page. anyways, I removed it, my filters don't run twice, cuz the page doesn't open TWICE. Thanks for trying to help though. From: "Cox, Charlie" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: 'Tomcat Users List' <[EMAIL PROTECTED]> Subject: RE: Filters running twice!!! Date: Tue, 12 Feb 2002 10:07:57 -0500 MIME-Version: 1.0 Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id MHotMailBE327AFE005D400431D6C0123183E0F30; Tue, 12 Feb 2002 07:08:47 -0800 Received: (qmail 17519 invoked by uid 97); 12 Feb 2002 15:08:24 -0000 Received: (qmail 17506 invoked from network); 12 Feb 2002 15:08:23 -0000 >From tomcat-user-return-10670-t3szeto Tue, 12 Feb 2002 07:10:38 -0800 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Post: <mailto:[EMAIL PROTECTED]> List-Id: "Tomcat Users List" <tomcat-user.jakarta.apache.org> Delivered-To: mailing list [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> X-Mailer: Internet Mail Service (5.5.2654.89) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N you may want to use accesslogvalve to see if you are getting 2 requests to tomcat. This can help distinguish if its a tomcat problem or a browser(frames?) issue. are all your pages called twice or just the filters? what version of tc4? I am using filters with a mapping of '/abc/*' (not '/*') without this problem on 4.0.1 standalone. Charlie > -----Original Message----- > From: Terrence Szeto [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 12, 2002 9:23 AM > To: [EMAIL PROTECTED] > Subject: RE: Filters running twice!!! > > > Hey Charlie. > > Yes actually dblogFilter does run twice, as does the other > filters I have > running. > > I've been running the webapp on Netscape 6.2.1. I've tried > it on IE, same > deal. I'm not sure what exactly is going wrong. > > I wrote the dbLogFilter to log things within the database, I > don't think > AccessValueLog does that. > > > Terrence Szeto > Cybermation > Web Architect > > > > From: "Cox, Charlie" <[EMAIL PROTECTED]> > Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > To: 'Tomcat Users List' <[EMAIL PROTECTED]> > Subject: RE: Filters running twice!!! > Date: Tue, 12 Feb 2002 08:01:03 -0500 > MIME-Version: 1.0 > Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id > MHotMailBE325D3C001D40043893C012318382690; Tue, 12 Feb 2002 > 05:01:49 -0800 > Received: (qmail 28187 invoked by uid 97); 12 Feb 2002 13:01:30 -0000 > Received: (qmail 28155 invoked from network); 12 Feb 2002 > 13:01:30 -0000 > From tomcat-user-return-10647-t3szeto Tue, 12 Feb 2002 05:02:44 -0800 > Mailing-List: contact [EMAIL PROTECTED]; > run by ezmlm > Precedence: bulk > List-Unsubscribe: <mailto:[EMAIL PROTECTED]> > List-Subscribe: <mailto:[EMAIL PROTECTED]> > List-Help: <mailto:[EMAIL PROTECTED]> > List-Post: <mailto:[EMAIL PROTECTED]> > List-Id: "Tomcat Users List" <tomcat-user.jakarta.apache.org> > Delivered-To: mailing list [EMAIL PROTECTED] > Message-ID: > <[EMAIL PROTECTED]> > X-Mailer: Internet Mail Service (5.5.2654.89) > X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > 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:[EMAIL PROTECTED]] > > Sent: Monday, February 11, 2002 4:18 PM > > To: [EMAIL PROTECTED] > > 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:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
