I have configured the URLRewrite filter for the default web application "ROOT". I just placed the jar in the WEB-INF\lib location and the configuration file in WEB-INF. The filter seems to load once, find my context that I would like to map to then load a second time only NOT finding the context the second time. Any idea what Tomcat is doing?
Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.utils.Log DEBUG: logLevel set to TRACE Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: confPath set to /WEB-INF/urlrewrite.xml Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: XML builder factory is: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: XML Parser: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: about to parse conf Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.ConfHandler DEBUG: Resolving to DTD /org/tuckey/web/filters/urlrewrite/dtds/urlrewrite3.2.dtd Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: now initialising conf Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: loaded rule Rule 0 (/test/status/, %{context-path}/rewrite-status 0) Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.NormalRule DEBUG: loaded rule Rule 0 (/test/status/, %{context-path}/rewrite-status 0) Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: rule match type is wildcard Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: loaded rule Rule 1 (/NASApp/DealSearch/**, /DealsWeb/$1 1) Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.NormalRule DEBUG: loaded rule Rule 1 (/NASApp/DealSearch/**, /DealsWeb/$1 1) Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.NormalRule DEBUG: looking for context DealsWeb Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.NormalRule DEBUG: got context ok Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: loaded rule null Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.OutboundRule DEBUG: loaded outbound rule Outbound Rule 0 (/rewrite-status, /test/status/) Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: conf status true Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: inited with 2 rules Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: conf is ok Jul 26, 2010 10:13:33 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok) Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.utils.Log DEBUG: logLevel set to TRACE Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: confPath set to /WEB-INF/urlrewrite.xml Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: XML builder factory is: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: XML Parser: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: about to parse conf Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.ConfHandler DEBUG: Resolving to DTD /org/tuckey/web/filters/urlrewrite/dtds/urlrewrite3.2.dtd Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: now initialising conf Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: loaded rule Rule 0 (/test/status/, %{context-path}/rewrite-status 0) Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.NormalRule DEBUG: loaded rule Rule 0 (/test/status/, %{context-path}/rewrite-status 0) Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: rule match type is wildcard Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: loaded rule Rule 1 (/NASApp/DealSearch/**, /DealsWeb/$1 1) Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.NormalRule DEBUG: loaded rule Rule 1 (/NASApp/DealSearch/**, /DealsWeb/$1 1) Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.NormalRule DEBUG: looking for context DealsWeb Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.NormalRule ERROR: Rule Rule 1 had error: could not get servlet context DealsWeb Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase ERROR: could not get servlet context DealsWeb Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: loaded rule null Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.OutboundRule DEBUG: loaded outbound rule Outbound Rule 0 (/rewrite-status, /test/status/) Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.Conf DEBUG: conf status false Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: inited with 2 rules Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: conf is NOT ok Jul 26, 2010 10:13:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ERROR: Conf failed to load