Hi, Chris, Hi, Michael: If I understand correctly, the CactifyWar task automatically adds the FilterTestRedirector information to your cactified war file (provided you are using J2EE1.3), i.e., it will generate a new web.xml combining the web.xml you provided and some default cactus-related items, including servlet, jsp and filter redirectors, if they are not defined in your original web.xml. Basically, you do not need to write redirector info. in your own web.xml. If you use the right Cactus jar, class org.apache.cactus.server.FilterTestRedirector should be included. I had a similar problem when I customized a bit of the Cactus-1.5-beta1.jar, in which the org/apache/cactus/server/jspRedirector.jsp was missing. Things went fine when I recovered the original jar file. Hope this helps.
Qing ----- Original Message ----- From: "Christopher Lenz" <[EMAIL PROTECTED]> To: "Cactus Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 07, 2003 6:46 AM Subject: Re: Extraneous reference to FilterTestRedirector in web.xml > Hi Michael, > > is it possible that you're using the Cactus JAR for J2EE 1.2 but cactifying > a WAR that is declared as J2EE 1.3 (as specified by the DOCTYPE in the web.xml)? > > -chris > > Michael Silverstein wrote: > > I am running into a problem deploying a 'cactified' application on > > Tomcat 4 with the cactus 1.5 beta. The build process keeps putting a > > reference to org.apache.cactus.server.FilterTestRedirector into my > > web.xml, even thought that class is not included in > > cactus-1.5-beta1.jar, so I get a class not found exception starting > > Tomcat. Here is what it looks like: > > > > <filter> > > <filter-name>FilterRedirector</filter-name> > > > > <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-clas > > s> > > </filter> > > <filter-mapping> > > <filter-name>FilterRedirector</filter-name> > > <url-pattern>/FilterRedirector</url-pattern> > > </filter-mapping> > > > > Oddly, when I build and run the sample servlet tests it does not put > > that into the web.xml file so it is fine. My build.xml file is derived > > from and nearly identical to the sample servlet build.xml file. If, > > after running the ant build, I remove the above from the generated > > web.xml everything is fine. > > > > I tried searching all the files in the cactus distribution to see if > > there are any explicit references to that code and only found it in > > \integration\ant\src\confs\j2ee13\web.xml. I commented it out and still > > get the reference in my build.xml. > > > > There is something that specifies whether to put that reference in the > > web.xml but I can't figure out what so I can turn it off. > > > > What am I doing wrong? > > > > Thanks, Mike > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
