<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.jakarta.cactus.user">
    <title>gmane.comp.jakarta.cactus.user</title>
    <link>http://blog.gmane.org/gmane.comp.jakarta.cactus.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6833"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6831"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6830"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6829"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6828"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6826"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6825"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6824"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6819"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6818"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6817"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6818"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6817"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6816"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6815"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6814"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6812"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6811"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6809"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6808"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6833">
    <title>Using cactus with maven</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6833</link>
    <description>&lt;pre&gt;Hello,
I know cactus have been moved to the Attic but my supervisor has given me the job to make he project work using this plugin with maven 3.0.3.
We are using Jenkins for CI and the idea is to run cactus from there (we already run junit tests as it's possible to invoke top-level maven targets just writing the goals).
Right now I'm testing cactus with the project in which we run the junit tests (no worries, several VM's and snapshots -and not touching the base project-  just in case I screw something). But here are several thing I don't really understand. I'll only write some questions and, if I get any feedback will go on with the questions:
- I'm using "mvn cactus:cactifyear" as the idea is to create an EAR and get it deployed in Websphere using WAS6 plugin for maven. The thing is I don't really understand what does cactifyear do or how it works. I have no idea what to use as srcfile. Here you have what I have in my pom.xml:
&amp;lt;project&amp;gt;
   ...
    &amp;lt;dependencies&amp;gt;
        &amp;lt;dependency&amp;gt;
          &amp;lt;groupId&amp;gt;org.apache.cactus&amp;lt;/groupId&amp;gt;
          &amp;lt;artifactId&amp;gt;cactus.integration.maven2&amp;lt;/artifactId&amp;gt;
          &amp;lt;version&amp;gt;1.8.1&amp;lt;/version&amp;gt;
        &amp;lt;/dependency&amp;gt;
      ...
    &amp;lt;/dependencies&amp;gt;
     ....
    &amp;lt;build&amp;gt;
       ...
        &amp;lt;pluginManagement&amp;gt;
           ...
            &amp;lt;plugin&amp;gt;
                &amp;lt;groupId&amp;gt;org.apache.cactus&amp;lt;/groupId&amp;gt;
                &amp;lt;artifactId&amp;gt;cactus.integration.maven2&amp;lt;/artifactId&amp;gt;
                &amp;lt;version&amp;gt;1.8.1&amp;lt;/version&amp;gt;
                &amp;lt;configuration&amp;gt;
                   &amp;lt;srcFile&amp;gt;/PATH/TO/FILE/file.ear&amp;lt;/srcFile&amp;gt;
                   &amp;lt;desttFile&amp;gt;cactifiedByMaven2.ear&amp;lt;/destFile&amp;gt;
                   &amp;lt;cactusWar&amp;gt;
                       &amp;lt;context&amp;gt;/&amp;lt;/context&amp;gt;
                       &amp;lt;version&amp;gt;2.3&amp;lt;/version&amp;gt;
                   &amp;lt;/cactusWar&amp;gt;
                &amp;lt;/configuration&amp;gt;
                &amp;lt;executions&amp;gt;
                    &amp;lt;execution&amp;gt;
                      &amp;lt;id&amp;gt;cactus-cactifyear&amp;lt;/id&amp;gt;
                       &amp;lt;phase&amp;gt;pre-integration-test&amp;lt;/phase&amp;gt;
                       &amp;lt;goals&amp;gt;
                          &amp;lt;goal&amp;gt;cactifyear&amp;lt;/goal&amp;gt;
                       &amp;lt;/goals&amp;gt;
                    &amp;lt;/execution&amp;gt;
                &amp;lt;/executions&amp;gt;
            &amp;lt;/plugin&amp;gt;
           ...
        &amp;lt;/pluginManagement&amp;gt;
       ...
    &amp;lt;/build&amp;gt;
    ...
&amp;lt;/project&amp;gt;

For what is the /PATH/TO/FILE/file.ear used? I tried with one EAR in my project and got one cactifiedByMaven2.ear in each of the modules of my project plus one cactifiedByMaven2.ear and one empty folder named cactusAND_A_NUMBER.dir for each module in the project root directory. The output while running was something like this:
[INFO] Building application1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- cactus.integration.maven2:1.8.1:cactifyear (default-cli) &amp;lt; at &amp;gt; my.company.application1 ---
[info] Adding: aspectjrt-1.5.3.jar
[info] Adding: cactus.core.framework.uberjar.javaEE.14-1.8.1.jar
[info] Adding: commons-logging-1.1.jar
[info] Adding: commons-httpclient-3.1.jar
[info] Adding: junit-3.8.2.jar
[INFO] Building war: /PROJECT/ROOT//DIRECTORY/application1/cactus892519517cactus.war
[INFO] Building ear: /PROJECT/ROOT//DIRECTORY/application1/cactifiedByMaven2.ear
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building application2 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- cactus.integration.maven2:1.8.1:cactifyear (default-cli) &amp;lt; at &amp;gt; com.kana.sem.applications2 ---
[info] Adding: aspectjrt-1.5.3.jar
[info] Adding: cactus.core.framework.uberjar.javaEE.14-1.8.1.jar
[info] Adding: commons-logging-1.1.jar
[info] Adding: commons-httpclient-3.1.jar
[info] Adding: junit-3.8.2.jar
[INFO] Building war: /PROJECT/ROOT//DIRECTORY/application1/cactus892519517cactus.war
[INFO] Building ear: /PROJECT/ROOT//DIRECTORY/application1/cactifiedByMaven2.ear
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building application3 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------

The srcfile is like a schema to create an EAR for each module?

Thanks,
 JUAN JOSÉ ARAGONÉS

[cid:image001.jpg&amp;lt; at &amp;gt;01CCBF05.6053FB40]&amp;lt;http://www.lagan.com/&amp;gt;BUILD'N'RELEASE ENGINEER

e : jaragones&amp;lt; at &amp;gt;kana.com&amp;lt;mailto:jaragones&amp;lt; at &amp;gt;kana.com&amp;gt;

EMEA Headquarters
209 Airport Road West
Belfast, Northern Ireland BT3 9EZ


SOLUTIONS&amp;lt;http://www.lagan.com/our-solutions.aspx&amp;gt; | CASE STUDIES&amp;lt;http://www.lagan.com/resource-library.aspx&amp;gt; | KANA.COM&amp;lt;http://www.kana.com/home/home.php&amp;gt; | LAGAN.COM&amp;lt;http://www.lagan.com/&amp;gt;

[cid:image002.gif&amp;lt; at &amp;gt;01CCBF05.6053FB40]&amp;lt;http://www.lagan.com/rss/feeds.aspx&amp;gt;

[cid:image003.gif&amp;lt; at &amp;gt;01CCBF05.6053FB40]&amp;lt;http://www.facebook.com/home.php#%21/pages/Lagan-Technologies/174507632593437&amp;gt;

[cid:image004.gif&amp;lt; at &amp;gt;01CCBF05.6053FB40]&amp;lt;http://www.twitter.com/lagan_business&amp;gt;

[cid:image005.gif&amp;lt; at &amp;gt;01CCBF05.6053FB40]&amp;lt;http://www.linkedin.com/companies/lagan-technologies&amp;gt;



The information in this email and any attachments is confidential and intended solely for the attention and use of the named addressee(s). It may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorized to and must not disclose, copy, distribute, or retain this message or any part of it, and should notify us immediately

&lt;/pre&gt;</description>
    <dc:creator>Juan Jose Aragones Guillen</dc:creator>
    <dc:date>2011-12-20T11:36:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6831">
    <title>Failed to recognize cactifywar</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6831</link>
    <description>&lt;pre&gt;Hello group,

I am working on cactus and running test remotely on TeamCity server.  I get
following errors.  Could someone please help me with these, so that I can
remove them and run my tests successfully.

BUILD FAILED
/homes/build-jmp/JMP/release-branches/R11.4/CEMS/buildSpace.xml:262: The
following error occurred while executing this line:
/homes/build-jmp/JMP/release-branches/R11.4/CEMS/remoteTestSetup.xml:131:
Problem: failed to create task or type cactifywar
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any &amp;lt;presetdef&amp;gt;/&amp;lt;macrodef&amp;gt; declarations have taken place.

&lt;/pre&gt;</description>
    <dc:creator>Vinay Nagrik</dc:creator>
    <dc:date>2011-11-21T19:22:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6830">
    <title>failed to create cactify war</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6830</link>
    <description>&lt;pre&gt;Hello group,

I am working on cactus and running test remotely on TeamCity server.  I get
following errors.  Could someone please help me with these, so that I can
remove them and run my tests successfully.

BUILD FAILED
/homes/build-jmp/JMP/release-branches/R11.4/CEMS/buildSpace.xml:262: The
following error occurred while executing this line:
/homes/build-jmp/JMP/release-branches/R11.4/CEMS/remoteTestSetup.xml:131:
Problem: failed to create task or type cactifywar
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any &amp;lt;presetdef&amp;gt;/&amp;lt;macrodef&amp;gt; declarations have taken place.

&lt;/pre&gt;</description>
    <dc:creator>Vinay Nagrik</dc:creator>
    <dc:date>2011-11-18T22:04:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6829">
    <title>Need pointers on Cactus integration with Webshphere commerce server.</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6829</link>
    <description>&lt;pre&gt;Hi,

 

I am using Cactus for the first time and finding it difficult for
setting up cactus and integrating with websphere commerce server.

Any pointers/documentation on the same will be very helpful.

 

Appreciate you help on this aspect.

 

Thanks,

Ram.



-----------------------------------------
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or
entity to which it is addressed. If the reader of this e-mail is
not the intended recipient or his or her authorized agent, the
reader is hereby notified that any dissemination, distribution or
copying of this e-mail is prohibited. If you have received this
e-mail in error, please notify the sender by replying to this
message and delete this e-mail immediately.&lt;/pre&gt;</description>
    <dc:creator>Ramakrishna Dulam</dc:creator>
    <dc:date>2011-10-18T16:38:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6828">
    <title>Jakarta Cactus moving to the Attic</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6828</link>
    <description>&lt;pre&gt;A heads up for the Jakarta Cactus user community that the Cactus project has
been 'moved to the Attic'. This means that the Jakarta developers (more
formally its Project Management Committee) have voted to retire Cactus
and move the responsibility for its oversight over to the Attic project.

Loosely speaking this means that the projects resources will be moved to a
read-only state.

You can read more about the Apache Attic and the process of moving to the
Attic at http://attic.apache.org.

You can follow this process in JIRA:

  https://issues.apache.org/jira/browse/ATTIC-120

Thanks,

Henri Yandell on behalf of Jakarta Cactus + the Attic.
&lt;/pre&gt;</description>
    <dc:creator>Henri Yandell</dc:creator>
    <dc:date>2011-08-06T07:25:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6826">
    <title>tests in separate ear</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6826</link>
    <description>&lt;pre&gt;Can test be put into separate ear, or they should be put in the same ear as
tested ejb3 ?

Can I access local session beans from separate ear (but deployed in the same
jboss) ?
&lt;/pre&gt;</description>
    <dc:creator>Jakub 1983</dc:creator>
    <dc:date>2011-04-21T12:47:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6825">
    <title>Cactus issues with JBoss 5.1.0</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6825</link>
    <description>&lt;pre&gt;

Hi fellow Cactus users.  We've been using Cactus 1.7.2 running in JBoss 4.2.1 for a couple years now without any problems.  We recently upgraded to JBoss 5.1.0 and now our ear is failing to deploy.  We use the Ant target cactifyear to modify our product ear to include the cactus.war with our tests.  The ear deploys fine if we don't cactify it.  We haven't changed anything with regards to cactus.

I was wondering if anyone else has moved to JBoss 5.1.0 and has some suggestions on steps I can take to get our ear working?

Errors I see in the JBoss log:

2011-02-25 18:20:59,969 ERROR [org.apache.catalina.core.StandardContext] (main) Context [/cactus] startup failed due to previous errors
java.lang.RuntimeException: could not find &amp;lt;ejb-local-ref&amp;gt;'s local interface com.adobe.idp.um.businesslogic.directoryservices.DirectorySynchronizationManager in web.xml of cactus.war
..
2011-02-25 18:20:59,969 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.web.deployment:war=/cactus state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: URL file:/C:/JBoss/jboss-eap-5.1/jboss-as/server/all/tmp/49w4e61-bha6j0-gklwl62p-1-gklwmczu-av/cactus.war/ deployment failed
..
2011-02-25 18:21:03,282 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfszip:/C:/JBoss/jboss-eap-5.1/jboss-as/server/all/deploy/TitanCactusTests_Platform.ear/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: URL file:/C:/JBoss/jboss-eap-5.1/jboss-as/server/all/tmp/49w4e61-bha6j0-gklwl62p-1-gklwmczu-av/cactus.war/ deployment failed
..


Thanks for any assistance,
Shay


______________________________________________________________________________

Shay Thompson - Lead Computer Scientist
Adobe Systems, Inc. - AES Foundation

&lt;/pre&gt;</description>
    <dc:creator>Shay Thompson</dc:creator>
    <dc:date>2011-02-27T21:07:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6824">
    <title>Problem with Cookie Manager: Not adding all cookies to next request</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6824</link>
    <description>&lt;pre&gt;Hello!

I'm having a problem with cookie manager, which I can't understand. The
cookie manager is working well in all other situation, but once it is not
"parsing" all cookies for the next request. The only different I can see is
that that cookie is much longer then other cookies. I tried to change cookie
policies, but without any help. The only different is that this
missing cookie is set to different path then others. My next URL address is
still to that path.

Any ideas what could be the problem?


Best regards,
Matti



*Response from url X*

Response headers:
HTTP/1.1 302 Moved Temporarily
Date: Tue, 18 Jan 2011 14:10:57 GMT
Server: Apache-Coyote/1.1
Cache-Control: private
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: must-revalidate
Cache-Control: max-age=0
Pragma: no-cache
Expires: 0
Set-Cookie: uas.master=_8539ca8a89456809f7478481447a10bdca9faf8c; Path=/has;
Secure
Set-Cookie:
a3b51706c02ca92e=LQVEOrnybFdHdNaC43ozMdEKhbcIp8oRwUHL5LbpOHCTNbJhw4r0-O5UafBgWsE1FlQ0BfFRZNZvbGPXJLXqI5MPh94ilfcXG9s2GBv1TPzgLMO3o_mPx4uFgXAhW5bapeQH7Ufe5C2X47B_lr7Ww9DjKtvZbMky88PCtmjv99TSLlCxB-B5k-0dPXAqreje0Jaox9vHLD7YIAe-V-o_LmkgZVLNiG7iR4BnWrmW6VQAy02e-XakKKoPVxQSkCC6IOTlGvFnciC6xYsUkCxNS1Aeoil2nR6LfqnFJfJT3qNSG4TCKN1LpPUcLSoA2oK5f6p-Ej3l-HtKSbqf5I-INHtO2kpMWMPie-f6HSMx5_Pg2Rd1BP7rhM6eorMaU25VGy76l-FYsofr8GYs9H2ftp1zljJzPwL3H9DoVnELN5mKdHC3MOvhco-gsByOmGjzUNn-77umim2FbEn9INGtuS73oo2QZWv2Tk68JwMp_uG8mGLmpcS7xMbHj1_sahzLNULCRaXHh4JfVwXNKrro7YbFrFNeUyIgLQcbg3cyA_hXZLKlr0ygViZMgL_dP337DKit2oMm4dLI7t_6nNoDAlWEUzd8_lLjEZ0tBYqNLSrFTyJ37rU6-MP7Hy8pOy8cZ8SdeWEqYDVBS2PDilauFK_1luH7FtbCxKA7r7zlJA7jg_MFbIPcJcTx47p1-9VYmmlG8mn3KW_ff8B9h4MlTG2v5nCC2lanJxBHnHJEyK7XsyP6_6XJnFoCCcHjl57PaeVTB--lauumxMOto472SV7fokNgP5HLnpcftnPLa-AhdF-t8X5pfUpAOdKIv-eyxf2IkdM9I5V769ncdCBwegEplz02xdb6dUah2qgmr-eb2lkwo9B_SaYDMt0Rrk-r3XN4dW29HSMvChq2QovzEaE6C2Ll0OCz;
Path=/has/s2/a3b51706c02ca92e; Secure
Set-Cookie: JSESSIONID=C8FEC1DADA71CDA008A6B662B095A285; Path=/has; Secure
Location:
https://XXX.YYY/has/s2/a3b51706c02ca92e/select?method=password.sql.1
Content-Type: text/html;charset=utf-8
Content-Length: 0


*Request for url Y after url X*


GET https://XXX.YYY/has/s2/a3b51706c02ca92e/select?method=password.sql.1
Cookie Data:
$Version=0; has.master=_8539ca8a89456809f7478481447a10bdca9faf8c;
$Path=/has; JSESSIONID=C8FEC1DADA71CDA008A6B662B095A285; $Path=/has
---MISSING cookie "a3b51706c02ca92e"---

Request Headers:
Accept-Language: fi-FI,en-GB;q=0.7,en-US;q=0.3
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0;
SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media
Center PC 6.0; .NET CLR 1.1.4322; Tablet PC 2.0; MS-RTC LM 8)
Accept: */*
Pragma: no-cache
&lt;/pre&gt;</description>
    <dc:creator>Matti Simperi</dc:creator>
    <dc:date>2011-01-18T14:19:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6819">
    <title>Cactus tutorial needs updating</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6819</link>
    <description>&lt;pre&gt;The Cactus tutorial needs to be updated. It talks about Tomcat 4 (which 
you can't even get anymore). The real issue, though, is it says this:

----------------------------
Copy the following jars to [tomcat-root]/common/lib: 
cactus.jar 
commons-httpclient.jar 
commons-logging.jar 
junit.jar 
aspectjrt.jar 
----------------------------

First, there is no common/lib directory in Tomcat 6, and second, those 
JARs do not exist in the Cactus 1.8.1 distribution. Here are the JARs that 
are there now:

aspectjrt-1.5.3.jar
cactus.core.framework.uberjar.javaEE.14-1.8.1.jar
cactus.integration.ant-1.8.1.jar
cactus.integration.shared.api-1.8.1.jar
cargo-ant-1.0-beta-2.jar
cargo-core-container-jonas-1.0-beta-2.jar
cargo-core-uberjar-1.0-beta-2.jar
commons-discovery-0.4.jar
commons-httpclient-3.1.jar
commons-logging-1.1.jar
geronimo-ejb_2.1_spec-1.1.jar
geronimo-j2ee-management_1.0_spec-1.1.jar
httpunit-1.6.jar
jasper-compiler-5.5.9.jar
jasper-runtime-5.5.9.jar
junit-3.8.2.jar
mx4j-3.0.2.jar
mx4j-remote-3.0.2.jar
nekohtml-1.9.6.jar
org.mortbay.jetty-5.1.9.jar
servlet-api-2.4.jar

I can guess the right JARs to use for everything but "cactus.jar". Can 
someone please explain what JARs are needed for Cactus now, and where they 
should go?

Jim Babka
Senior S/W Engineer and Team Lead, Context Aware Dynamic Selection
(512)286-5195, tie line 363-5195
babka at us.ibm.com&lt;/pre&gt;</description>
    <dc:creator>Jim Babka</dc:creator>
    <dc:date>2010-11-10T00:00:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6818">
    <title>Cactus 1.8.0 &amp; HttpComponents (HttpClient 4.0)</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6818</link>
    <description>&lt;pre&gt;Hi,

I've upgraded to HttpComponents in my application http://hc.apache.org/ since
Commons HttpClient 3.x is nearing the end of life. All my cactus tests are
failing with the exception, java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/HttpMethod. Is there a way to get cactus
running with HttpComponents?
I doubt it's safe to have both HttpComponents and HttpClient 3.x in my
classpath. Please help.

Thanks,
Cory
&lt;/pre&gt;</description>
    <dc:creator>Cory Lum</dc:creator>
    <dc:date>2010-10-21T14:16:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6817">
    <title>ServletTestRunner, multiple Web Applications</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6817</link>
    <description>&lt;pre&gt;I seem to have the same problem as in 

http://www.mail-archive.com/cactus-user&amp;lt; at &amp;gt;jakarta.apache.org/msg05465.html


plus maybe a different variation. The problem as stated in the old
message seems to persist.

This is on 1.8.1

What happens is the following

a) When running several instances of ServletTestRunner they will share
one cactus.contextURL. There seems to be no way to make them use
different urls.
b) We use some tests also on production systems (integrity tests). The
UI will be invoked using an https url (SSL!) but cactus computes a http
(no SSL!) URL as contextURL. That would be 
acceptable, if it would use localhost for that but ServletTestRunner
does

                    System.setProperty(
                        BaseConfiguration.CACTUS_CONTEXT_URL_PROPERTY,
                        "http://" + theRequest.getServerName() + ":"
                        + theRequest.getServerPort()
                        + theRequest.getContextPath());


and hence uses the external name. 

It would be great, if

1. cactus.contextURL could be set as a servlet init param (avoiding the
system property problems alltogether)
2. ServletTestRunner could be configured to not create an HTTP request
at all but rather invoke the test cases directly.

Thanks,
  Henning

&lt;/pre&gt;</description>
    <dc:creator>Henning Blohm</dc:creator>
    <dc:date>2010-10-18T13:51:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6818">
    <title>Cactus 1.8.0 &amp; HttpComponents (HttpClient 4.0)</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6818</link>
    <description>&lt;pre&gt;Hi,

I've upgraded to HttpComponents in my application http://hc.apache.org/ since
Commons HttpClient 3.x is nearing the end of life. All my cactus tests are
failing with the exception, java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/HttpMethod. Is there a way to get cactus
running with HttpComponents?
I doubt it's safe to have both HttpComponents and HttpClient 3.x in my
classpath. Please help.

Thanks,
Cory
&lt;/pre&gt;</description>
    <dc:creator>Cory Lum</dc:creator>
    <dc:date>2010-10-21T14:16:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6817">
    <title>ServletTestRunner, multiple Web Applications</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6817</link>
    <description>&lt;pre&gt;I seem to have the same problem as in 

http://www.mail-archive.com/cactus-user&amp;lt; at &amp;gt;jakarta.apache.org/msg05465.html


plus maybe a different variation. The problem as stated in the old
message seems to persist.

This is on 1.8.1

What happens is the following

a) When running several instances of ServletTestRunner they will share
one cactus.contextURL. There seems to be no way to make them use
different urls.
b) We use some tests also on production systems (integrity tests). The
UI will be invoked using an https url (SSL!) but cactus computes a http
(no SSL!) URL as contextURL. That would be 
acceptable, if it would use localhost for that but ServletTestRunner
does

                    System.setProperty(
                        BaseConfiguration.CACTUS_CONTEXT_URL_PROPERTY,
                        "http://" + theRequest.getServerName() + ":"
                        + theRequest.getServerPort()
                        + theRequest.getContextPath());


and hence uses the external name. 

It would be great, if

1. cactus.contextURL could be set as a servlet init param (avoiding the
system property problems alltogether)
2. ServletTestRunner could be configured to not create an HTTP request
at all but rather invoke the test cases directly.

Thanks,
  Henning

&lt;/pre&gt;</description>
    <dc:creator>Henning Blohm</dc:creator>
    <dc:date>2010-10-18T13:51:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6816">
    <title>Test reports in PDF form?</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6816</link>
    <description>&lt;pre&gt;Can I get get test reports in PDF format?
&lt;/pre&gt;</description>
    <dc:creator>Igor Grinfeld</dc:creator>
    <dc:date>2010-09-20T12:44:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6815">
    <title>Question about JettyTestSetup.setConfigFile</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6815</link>
    <description>&lt;pre&gt;Hi

I utilize cactus to test a servlet. Testing is executed with the help of jetty extension. Because my servlet has correlated with other jsp in forward (ie. request.getRequestDispatcher("Geoworkflow/wpsCapabilitiesList.jsp").forward(request, response);), I had to set context message while in jetty server starup.

I use  JettyTestSetup.setConfigFile(new File ("/web.xml");) to set Jetty's config file as web.xml which is actually in Tomcat (The file path is valid). However, there comes the error message:  org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null".

What does the error message mean?  How can I fix this problem? Thanks!

                                                                                                                                                     KOP



全国最低价，天天在家冲照片，24小时发货上门！&lt;/pre&gt;</description>
    <dc:creator>kljxm</dc:creator>
    <dc:date>2010-09-17T08:15:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6814">
    <title>Question about JettyTestSetup.setConfigFile</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6814</link>
    <description>&lt;pre&gt;Hi

I utilize cactus to test a servlet. Testing is executed with the help of jetty extension. Because my servlet has correlated with other jsp in forward (ie. request.getRequestDispatcher("Geoworkflow/wpsCapabilitiesList.jsp").forward(request, response);), I had to set context message while in jetty server starup.

I use  JettyTestSetup.setConfigFile(new File ("/web.xml");) to set Jetty's config file as web.xml which is actually in Tomcat (The file path is valid). However, there comes the error message:  org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null".

What does the error message mean?  How can I fix this problem? Thanks!

                                                                                                                                                     KOP
&lt;/pre&gt;</description>
    <dc:creator>kljxm</dc:creator>
    <dc:date>2010-09-16T06:18:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6812">
    <title>Cactus 1.8 with Tomcat 7</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6812</link>
    <description>&lt;pre&gt;
I have been successfully using Cactus 1.8 with a Tomcat 5.5 installation
for some time and am in the process of upgrading to Tomcat 7.0.2.  I'm
having trouble getting it to work.   Tomcat 7.x launches fine from the
command line, so I know I have all the jars that I need in the right
place, etc.  However, when launched as part of a &amp;lt;cactus&amp;gt; from ant, it
fails.  I'm wondering if the &amp;lt;cactus&amp;gt; doesn't support Tomcat 7, or if
there's something subtle that I'm missing.

The normal reason for this NoClassDefFoundError is missing bootstrap.jar
or tomcat-juli.jar.  But like I said, it launches OK from command line
so I know they are present.  I think I'm making them visible via the
&amp;lt;classpath&amp;gt; (see below), but I'm stumped.

Any help appreciated!
Jeff Bennett

====================================================

The error I get is this:
   [cactus]
-----------------------------------------------------------------
   [cactus] Running tests against Tomcat 5.x &amp;lt; at &amp;gt; http://localhost:8080
   [cactus]
-----------------------------------------------------------------
   [cactus] Starting up container
   [cactus] Deploying
[C:\EclipseWorkspace\courier_ping\dist\courier_ping-cactus.war] to
[c:\apache-tomcat-7.0.2/webapps]...
   [cactus] Tomcat 5.x starting...
   [cactus] java.lang.NoClassDefFoundError:
org/apache/juli/logging/LogFactory
   [cactus]     at
org.apache.catalina.startup.Bootstrap.&amp;lt;clinit&amp;gt;(Bootstrap.java:55)
   [cactus] Caused by: java.lang.ClassNotFoundException:
org.apache.juli.logging.LogFactory
   [cactus]     at
java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   [cactus]     at java.security.AccessController.doPrivileged(Native
Method)
   [cactus]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   [cactus]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   [cactus]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   [cactus]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   [cactus]     ... 1 more
   [cactus] Could not find the main class:
org.apache.catalina.startup.Bootstrap.  Program will exit.
   [cactus] Exception in thread "main"
   [cactus] Java Result: 1
   [cactus] Exception in thread "Thread-6"
org.codehaus.cargo.container.ContainerException: Failed to start the
Tomcat 5.x container.

===================================================
My ant target looks like this:

&amp;lt;cactus printsummary="yes" 
warfile="${war.cactus.name}.war" 
fork="yes" 
dir="${env.TOMCAT_HOME}/logs" 
haltonerror="no" 
jvm="${jreHome}/bin/java"
haltonfailure="no" 
showoutput="yes" 
failureproperty="testsfailed.cactus"
filtertrace="false"&amp;gt;
&amp;lt;sysproperty key="log4j.configuration"
value="file:${log4jconfig.path}" /&amp;gt;
&amp;lt;sysproperty
key="net.sourceforge.cobertura.datafile"
                    file="${cobertura.file}" /&amp;gt;

&amp;lt;classpath&amp;gt;
&amp;lt;pathelement
location="${env.TOMCAT_HOME}/bin/bootstrap.jar" /&amp;gt;
&amp;lt;pathelement
location="${env.TOMCAT_HOME}/bin/tomcat-juli.jar" /&amp;gt;
&amp;lt;pathelement
path="${build.test.cactus.classes.dir}" /&amp;gt;
&amp;lt;pathelement path="${build.classes.dir}"
/&amp;gt;
&amp;lt;pathelement
path="${build.src.classes.dir}" /&amp;gt;
&amp;lt;path refid="build.classpath" /&amp;gt;
&amp;lt;/classpath&amp;gt;
&amp;lt;formatter type="xml" usefile="true"/&amp;gt;

&amp;lt;containerset&amp;gt;
&amp;lt;cargo containerId="tomcat5x"
home="${env.TOMCAT_HOME}"  
      action="start"&amp;gt;

&amp;lt;configuration type="existing"
home="${env.TOMCAT_HOME}"&amp;gt;
&amp;lt;property
name="cargo.servlet.port" value="8080"/&amp;gt;
&amp;lt;property
name="cargo.logging" value="high"/&amp;gt;
&amp;lt;property
name="cargo.jvmargs" value="${cactusJVMArgs}"/&amp;gt;
&amp;lt;property
name="cactus.toDir" value="${build.test.cactus.dir}/test-results"/&amp;gt;
&amp;lt;deployable type="war"
file="${war.cactus.name}.war"/&amp;gt;
&amp;lt;/configuration&amp;gt;
&amp;lt;/cargo&amp;gt;

&amp;lt;/containerset&amp;gt;


&amp;lt;batchtest
todir="${build.test.cactus.dir}/test-results"&amp;gt;
&amp;lt;fileset dir="test/cactus"&amp;gt;
&amp;lt;include
name="${cactus.include}" /&amp;gt;
&amp;lt;exclude
name="**/*TestCase*.java"/&amp;gt;
&amp;lt;size value="0" when="more"/&amp;gt;
&amp;lt;/fileset&amp;gt;
&amp;lt;/batchtest&amp;gt;

&amp;lt;/cactus&amp;gt;
&lt;/pre&gt;</description>
    <dc:creator>Bennett, Jeffrey</dc:creator>
    <dc:date>2010-09-13T19:57:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6811">
    <title>cactus-reports.xsl is being generated with errors</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6811</link>
    <description>&lt;pre&gt;Hi folks,

I was following this article about generating XML and HTML report from 
my cactus tests: 
http://jakarta.apache.org/cactus/integration/integration_browser.html
Unfortunately when I was try to generate one html report about my tests 
with any kind of failure. In my method where exist failure, the row 
remains out off formatting table  and my report shows the following error:

java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 


      at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


      at java.lang.reflect.Method.invoke(Method.java:585)

      at 
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:204) 


      at 
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:218) 


      at 
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java:1) 


      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) 
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734) 


      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) 
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) 


      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) 
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908) 


      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) 
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) 


      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) 
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226) 


      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) 
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)

      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) 
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)

      at 
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) 


      at 
oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234) 


      at 
oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29) 


      at 
oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879) 


      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) 
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) 


      at java.lang.Thread.run(Thread.java:595)

Caused by: java.lang.StackOverflowError

      at java.util.HashMap.put(HashMap.java:425)

      at java.util.HashSet.add(HashSet.java:194)

      at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:336)

      at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) 


      at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:128)

      at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) 


      at 
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)

      at 
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248) 


      at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) 


      at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:128)

[...]
I´m using JDeveloper 10g with java 1.5
Please... Does anybody can help me to solution this problem?
&lt;/pre&gt;</description>
    <dc:creator>José Ricardo</dc:creator>
    <dc:date>2010-08-24T18:23:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6809">
    <title>HTTPS problem (detect if the classes are being tested)</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6809</link>
    <description>&lt;pre&gt;Since my application uses HTTPS which Cactus  doesn't support I would 
like a way for my application to discover whether it is being 
unit-tested and adjust it's behavior accordingly.

Regards,
     Panayiotis
&lt;/pre&gt;</description>
    <dc:creator>Panayiotis Karabassis</dc:creator>
    <dc:date>2010-08-22T21:31:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6808">
    <title>Expected exception</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6808</link>
    <description>&lt;pre&gt;Is there a way to specify 'expected exception' in a cactus testcase, other
than catching the exception
and checking it.

Thanks in advance,
Nishan
&lt;/pre&gt;</description>
    <dc:creator>Nishan Naseer</dc:creator>
    <dc:date>2010-08-18T05:26:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6807">
    <title>Meet the "ChainedRuntimeException: Failed to get the test results " when test filter integrating with jetty</title>
    <link>http://comments.gmane.org/gmane.comp.jakarta.cactus.user/6807</link>
    <description>&lt;pre&gt;hi all,

I meet a strange problem when i writing a test for a simple filter, the
filter's function is to save the user name in the session. The test works
well when I deploy it in tomcat and test it from browser. But when I try to
integrate it with jetty and run the test using junit4 in the eclipse, it
give me the strange error information. I have worked this strange error for
several days, and hope get some help from you. Thanks very much.

btw, I also write a simple servlet test, and it also works well with the
jetty integration, they are in the same project.

the following is the exception, classes and configuration.

0. the exception detail

org.apache.cactus.util.ChainedRuntimeException: Failed to get the test
results at [http://localhost:8081/CactusTest/FilterRedirector]
    at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:93)
    at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:307)
    at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java:1)
    at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:164)
    at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:83)
    at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:307)
    at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java:1)
    at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:145)
    at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:218)
    at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
    at
org.apache.cactus.extension.jetty.Jetty5xTestSetup$1.protect(Jetty5xTestSetup.java:168)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at
org.apache.cactus.extension.jetty.Jetty5xTestSetup.run(Jetty5xTestSetup.java:176)
    at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
org.apache.cactus.internal.client.ParsingException: Not a valid response
[404 %2FCactusTest%2FFilterRedirector+Not+Found]
    at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callGetResult(DefaultHttpClient.java:212)
    at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:88)
    at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:307)
    at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java:1)
    at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:164)
    at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:83)
    at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:307)
    at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java:1)
    at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:145)
    at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:218)
    at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
    at
org.apache.cactus.extension.jetty.Jetty5xTestSetup$1.protect(Jetty5xTestSetup.java:168)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at
org.apache.cactus.extension.jetty.Jetty5xTestSetup.run(Jetty5xTestSetup.java:176)
    at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-----------------------------------------------------------------------------------------------------------------------------------

1. SimpleFilter : the filter class

package demo.cactus.java;

public class SimpleFilter implements Filter {

    private FilterConfig config;

    public void destroy() {
        // TODO Auto-generated method stub
    }

    public void doFilter(ServletRequest req, ServletResponse resp,
            FilterChain chain) throws IOException, ServletException {
        String userName;

        if(req.getParameter("USERNAME") == null ||
"".equals(req.getParameter("USERNAME"))) {
            userName = "SOMEONE";
        } else {
            userName = req.getParameter("USERNAME");
        }

        ((HttpServletRequest) req).getSession().setAttribute("USERNAME",
userName);
        chain.doFilter(req, resp);
    }

    public void init(FilterConfig config) throws ServletException {
        this.config = config;
    }
}

-----------------------------------------------------------------------------------------------------------------------------------

2. TestSimpleFilter : the test class

public class TestSimpleFilter extends FilterTestCase {

    public void beginDoFilter(WebRequest request) {
        request.addParameter("USERNAME", "guest");
    }

    public void testDoFilter() throws Exception {
        SimpleFilter filter = new SimpleFilter();

        FilterChain mockFilterChain = new FilterChain() {
            public void doFilter(ServletRequest request,
                    ServletResponse response) throws IOException,
                    ServletException {
                PrintWriter writer = response.getWriter();
                Object loginUserName =
((HttpServletRequest)request).getSession().getAttribute("USERNAME");
                String userName = (loginUserName == null) ? "null" :
loginUserName.toString();
                writer.write("&amp;lt;p&amp;gt;userName= "+ userName +"&amp;lt;/p&amp;gt;");
                writer.close();
            }
        };

        filter.doFilter(request, response, mockFilterChain);
    }

    public void endDoFilter(WebResponse response) throws Exception {
        assertTrue("RIGHT RESPONSE", response.getText().indexOf("guest") &amp;gt;
0);
    }

}

-----------------------------------------------------------------------------------------------------------------------------------

3. JettyTestSuite : the integeration class with jetty

package demo.cactus.test;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import org.apache.cactus.extension.jetty.Jetty5xTestSetup;

public class JettyTestSuite extends TestCase {

    public static Test suite() {
        System.setProperty("cactus.contextURL", "
http://localhost:8081/CactusTest");
        TestSuite suite = new TestSuite();
        suite.addTestSuite(TestSimpleFilter.class);
        return new Jetty5xTestSetup(suite);
    }
}

-----------------------------------------------------------------------------------------------------------------------------------

4. web.xml

&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&amp;gt;
    &amp;lt;welcome-file-list&amp;gt;
        &amp;lt;welcome-file&amp;gt;index.jsp&amp;lt;/welcome-file&amp;gt;
    &amp;lt;/welcome-file-list&amp;gt;

    &amp;lt;!-- Cactus Config --&amp;gt;
    &amp;lt;servlet&amp;gt;
        &amp;lt;servlet-name&amp;gt;ServletRedirector&amp;lt;/servlet-name&amp;gt;

&amp;lt;servlet-class&amp;gt;org.apache.cactus.server.ServletTestRedirector&amp;lt;/servlet-class&amp;gt;
    &amp;lt;/servlet&amp;gt;
    &amp;lt;servlet-mapping&amp;gt;
        &amp;lt;servlet-name&amp;gt;ServletRedirector&amp;lt;/servlet-name&amp;gt;
        &amp;lt;url-pattern&amp;gt;/ServletRedirector&amp;lt;/url-pattern&amp;gt;
    &amp;lt;/servlet-mapping&amp;gt;

    &amp;lt;filter&amp;gt;
        &amp;lt;filter-name&amp;gt;FilterRedirector&amp;lt;/filter-name&amp;gt;

&amp;lt;filter-class&amp;gt;org.apache.cactus.server.FilterTestRedirector&amp;lt;/filter-class&amp;gt;
    &amp;lt;/filter&amp;gt;
    &amp;lt;filter-mapping&amp;gt;
        &amp;lt;filter-name&amp;gt;FilterRedirector&amp;lt;/filter-name&amp;gt;
        &amp;lt;url-pattern&amp;gt;/FilterRedirector&amp;lt;/url-pattern&amp;gt;
    &amp;lt;/filter-mapping&amp;gt;

    &amp;lt;servlet&amp;gt;
        &amp;lt;servlet-name&amp;gt;ServletTestRunner&amp;lt;/servlet-name&amp;gt;

&amp;lt;servlet-class&amp;gt;org.apache.cactus.server.runner.ServletTestRunner&amp;lt;/servlet-class&amp;gt;
    &amp;lt;/servlet&amp;gt;
    &amp;lt;servlet-mapping&amp;gt;
        &amp;lt;servlet-name&amp;gt;ServletTestRunner&amp;lt;/servlet-name&amp;gt;
        &amp;lt;url-pattern&amp;gt;/ServletTestRunner&amp;lt;/url-pattern&amp;gt;
    &amp;lt;/servlet-mapping&amp;gt;
&amp;lt;/web-app&amp;gt;

-----------------------------------------------------------------------------------------------------------------------------------

5. libs

the cactus version is 1.8.1.

    aspectjrt-1.5.3.jar
    cactus.core.framework.uberjar.javaEE.14-1.8.1.jar
    cactus.integration.ant-1.8.1.jar
    cactus.integration.shared.api-1.8.1.jar
    commons-codec-1.4.jar
    commons-httpclient-3.1.jar
    commons-logging-1.0.4.jar
    httpunit.jar
    js-1.6R5.jar
    jtidy-4aug2000r7-dev.jar
    junit-4.4.jar
    nekohtml-0.9.5.jar
    org.mortbay.jetty-5.1.9.jar
    xercesImpl-2.6.1.jar

-----------------------------------------------------------------------------------------------------------------------------------

&lt;/pre&gt;</description>
    <dc:creator>Haiting Zhang</dc:creator>
    <dc:date>2010-08-15T14:47:38</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.jakarta.cactus.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.jakarta.cactus.user</link>
  </textinput>
</rdf:RDF>

