jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith R. Davis <keith.da...@zunisoft.com>
Subject Re: Glassfish and FilterRedirector
Date Wed, 04 Jun 2008 12:18:56 GMT
Let's try the build.xml part again:

     <!-- Cactify the WAR -->
    <target name="cactify-war" depends="-copy-cactus-tests,dist">
        <cactifywar destfile="${dist.dir}/${cactus.war}"
srcfile="${dist.war}">
            <servletredirector/>
            <servletredirector name="${cactus.servlet.redirector}"
mapping="/${cactus.servlet.redirector}" roles="test,admin"/>
            <filterredirector
mapping="/${cactus.webapp.context}/${cactus.filter.redirector}"/>
            <jspredirector
mapping="/${cactus.webapp.context}/${cactus.jsp.redirector}"/>
        </cactifywar>
        <delete failonerror="false" includeEmptyDirs="true">
            <fileset dir="${basedir}" includes="cactus*"/>
        </delete>
    </target>

On Wed, 04 Jun 2008 06:15:18 -0600, Keith R. Davis
<keith.davis@zunisoft.com> wrote:
> 
> 
>  Thanks for the quick response!  See my answers below and here is the
> important bit of my build.xml and as I said before, the task never
> inserts the filterredirector:
> 
>  	*   	*       	*           	*               	*               	*
>          	*               	*           	*           	*
> 	*           	*
>   -- Begin properties for the above --
> 
>  cactus.host = http://localhost cactus.port = 8080
> cactus.webapp.context = openeprs-svcs cactus.service = RUN_TEST
> cactus.servlet.redirector = ServletRedirectorSecure
> cactus.jsp.redirector = JspRedirector cactus.filter.redirector =
> FilterRedirector cactus.war = cactus-test.war
> 
>  -- End properties for the above --
> 
>  What is your Cactus version that you use? 1.8.0 (binary dist from
> Apache)
>  What version of Ant you use? 1.7.0
>  What is your JVM version and operating System? Ubuntu Linux 8.04
> with JDK 1.6.0_06
>  On Wed, 4 Jun 2008 09:41:25 +0300, "Petar Tahchiev"  wrote:   Hi
> Keith,
>  the short answer is Yes. You
> should be able to test Filters with
> Servlet API 2.5.
>  We do it in the sample projects that come with Cactus.
>  What is your Cactus version that you use?
>  What version of Ant you use?
>  What is your JVM version and operating System?
>  Please post your build.xml here to see what is wrong with it.
>  Also have a look at the Cactus SVN repository - we have sample
> applications that execute filter tests, and they work.
>  Thanks, Petar.
>   2008/6/4 Keith R. Davis :
>   All,
>  I am using Glassfish V2UR2 and my web application is using version
> 2.5 of the servlet API.  I have basic Cactus servlet tests working,
> however I cannot get filter tests to work.  I think this has to do
> with the cactifywar ant task not adding the filter redirector to the
> web.xml.  I have one defined in the task, but it doesn't show up when
> the war is cactified.
>  The short question, can I test filters with 2.5 of the servlet API?
> Everything else seems to work fine except filters.  I did see older
> threads on the list that
> servlets using 2.4 and greater of the API
> were not supported. Has this been updated?
>  Finally if I am being an idiot and it is not supported, is there a
> workaround or another tool that can test filters in container with the
> newest servlet APIs.
>  Thanks!
> 
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> [2]
>  For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> [3]
>  --
>  Regards, Petar!
>  Karlovo, Bulgaria.
>  - - - - - - - -
>  | Author @ Manning Publications.
>  | Technical Consultant @ HP
>  | BGJUG-Bulgarian Java User Group Leader.
>  | Apache Jakarta PMC member.
>  | Jakarta Cactus Lead Developer.
>  | Blogger: http://weblogs.java.net/blog/paranoiabla/ [4]
>  - - - - - - - -
>  Public PGP Key at:
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
> [5]
>  Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
> 
> 
> 
> Links:
> ------
> [1]
> mailto:keith.davis@zunisoft.com
> [2] mailto:cactus-user-unsubscribe@jakarta.apache.org
> [3] mailto:cactus-user-help@jakarta.apache.org
> [4] http://weblogs.java.net/blog/paranoiabla/
> [5]
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611


Mime
View raw message