On 17/01/07, Kazuhito SUGURI [EMAIL PROTECTED] wrote:
Hi James,
In article [EMAIL PROTECTED],
Wed, 17 Jan 2007 11:33:27 +,
james brook [EMAIL PROTECTED] wrote:
jmbrook Tests that have been developed in the old junit style (extending
TestCase
jmbrook and having methods called test) work
On 01/03/07, Xu Xin [EMAIL PROTECTED] wrote:
Hello everyone,
I had java.lang.ClassFormatError:when using Cactus with JRockit 5.0, I
also
searched the mail list, found other users also had the same issue. Buf
after
I upgraded the aspectj library to 5.1 and build Cactus from source, it
worked
On 06/03/07, Xu Xin [EMAIL PROTECTED] wrote:
Hi Karlovo,
Thanks for your quick response.
If I understand correctly, you're working on the migration from ANT to
Maven2, which means Cactus will not provide ANT integration any more?
Thanks
Anfernee
On 3/1/07, Petar Tahchiev [EMAIL PROTECTED
2007/3/16, GUERARD Elisabeth [EMAIL PROTECTED]:
Dear all,
I just begin with cactus, and I try to run some examples: Using Cactus
in Jboss with JUnit Report
And I have the following error, have you just an idea about I should do?
Thanks in advance,
Elisabeth
13:43:53,580 ERROR [[jsp]]
2007/5/4, [EMAIL PROTECTED] [EMAIL PROTECTED]:
hi,
i think you need two independent tomcat instances. one instance is
configured for port 8080 (default) and the second instance is configured
for port 8081(change in %TOMCAT_HOME%/conf/server.xml). so you can run
your cactus tests against the
2007/6/1, Dheerendra Kulkarni [EMAIL PROTECTED]:
Hi,
I am trying to run the testcase from Ant,
My Ant file is as follows
target name=Cactus-Test description=Run Cactus tests
depends=compile
war destfile=${bin}/EWSTests.war webxml=${src}/web.xml
classes
2007/6/1, Dheerendra Kulkarni [EMAIL PROTECTED]:
Hi Petar,
that did not help, After doing it I am having 2 copies of the class files
in
the WEB_INF/classes folder in the war file
regards
Dheerendra
On 6/1/07, Petar Tahchiev [EMAIL PROTECTED] wrote:
2007/6/1, Dheerendra Kulkarni [EMAIL
Raketesh hi,
I think I can answer to some of your questions.
First no, Cactus currently does not support J2EE 1.5. In the latest release
Cactus supports up to
J2EE 1.3. Also in the trunk of the cactus source tree only JBoss 3.x is
supported, although I have
tried to integrate Cactus with Cargo.
Hi David,
it is a version control system called Subversion.
For check out type this in a terminal:
svn co
http://svn.apache.org/repos/asf/jakarta/cactus/branches/CACTUS_TRUNK_MAMOUTH/
More about Subversion you can learn from this book:
http://svnbook.red-bean.com/
If you have any other
Hi Jan,
I am currently working (more or less) on trying to integrate JUnit4 test
cases with Cactus.
So far you can't use JUnit test-cases with Cactus, and I don't know any
other in-container
testing framework that supports it - otherwise I would gain some ideas :-).
I bet this does not help you,
3.8compatible test from JUnit
4.x test.
There is only problem with displaying names of the tests but it's easy to
repair it in source class (JUnitVersionHelper) of Cactus.
Regards.
JK.
Původní zpráva
Od: Petar Tahchiev [EMAIL PROTECTED]
Předmět: Re: JUnit 4.x
Hi Corry,
and sorry for the late response. As Cactus being an extension of JUnit I
think that the
answer to both the questions is 'yes'.
Kind regards Petar.
2007/12/28, Cory Lum [EMAIL PROTECTED]:
For JUnit, instance variables are not shared among test methods. In other
words, if I have an
Hi Rene,
can you please tell us what is the version of Jetty you are using?
And can you try downgrading to, lets say Jetty 5?
2008/1/4, Rene Döring [EMAIL PROTECTED]:
Hello
I'm using Cactus for the first time, so I have some difficulties to get
it working. I want to test some servlets,
if the Jetty integration will be available with the future
versions of the Cactus project.
2008/1/7, Rene Döring [EMAIL PROTECTED]:
Hello Petar
I have used Jetty 6.1.7 which did not work.
Now, I try it with Jetty 5.1.14 and it works. That's fine for me.
Regards
Rene
Petar Tahchiev wrote:
Hi
Hi Joerg,
since no one is answering, maybe I will give it a try.
What basically is going on is this: you start Ant in a JVM
and it delegates the executions of the tests that you specify
to Cactus(again in the same JVM). Cactus starts the container
and deploys the cactified war
in it (in the the
Hi Raghunandan ,
The Cactus project has a really good documentation. One point to start is
the sample projects. Have a look at the sample projects, that come with the
distribution, and once you run these sample projects, try to look in them
what part of the HTTP
layer is tested with Cactus -
Hi Michael,
my guess would be that you are right. For instance
if you look at the samples projects that come with
Cactus there is one regarding EJB. Those EJB's are
tested with the same approach that you do.
Cheers, Petar.
2008/2/8, Michal Valach [EMAIL PROTECTED]:
Hi,
Im wrote a test case
Hi Swarup,
as far as I know you cannot test portlet application with Cactus. However,
there is a separate project in the jboss community called JSFUnit. JSFUnit
extends Cactus and provides some further capabilities.
You can check there if you want.
Best wishes, Petar.
2008/2/25, [EMAIL
Hi Pedro,
the Cactus plugin for Eclipse used to be bundled with the Cactus
distribution, but later it was
removed from it. After that the Eclipse WTP wanted to take part in
maintaining it. Now, again, it
is being distributed with Cactus. I have made some significant efforts to
bring it back to be
Hi Sergio,
IMHO it looks more like a DBUnit-related problem :-(.
But for the debugging of Cactus, you can configure your
logging and then look for the logs of the server or the client.
Hope that helps.
Cheers, Petar.
2008/3/20, Sérgio Vieira Rolanski [EMAIL PROTECTED]:
Hi,
I'm have a
[ANNOUNCEMENT] Apache Cactus 1.8.0 Released
The Jakarta Cactus project is pleased to announce the release of
Jakarta Cactus 1.8.0. This version contains several changes in the
ant-integration module. More specifically we merged Cactus with the
Cargo project so that we can manipulate the
Hi Dinesh,
in theory Cactus 1.8.0 should support EJB3. And in fact I did try
to execute some EJB3 cactus tests but I failed. The reason I failed
was not Cactus, but Cargo. After the new release cactus is integrated
very tightly with Cargo, and Cargo is responsible for manipulating the
containers,
Hi guys,
I have added Kazuhito's changes in the svn. Sorry I have missed them - I
have
been really swamped lately.
Eric, maybe you can tell more on how you use Cactus on the Who uses Cactus
wiki.
:-)
Cheers, Petar.
2008/4/30 Eric Barendt [EMAIL PROTECTED]:
We are using JBoss 4.2.1 with
Hi Maria,
I want to try to help you but to be able to, I need the following data:
- what version of Cactus are you using?
- what version of Ant or Maven are you using?
- can you copy/paste your testcase?
- can you copy/paste the error message you get?
Thanks, Petar.
2008/5/14 Maria G Pavlova
Hi Senthil,
as far as I remember I have already fixed that in Cactus 1.8.0.
Which version of Cactus are you using?
Cheers, Petar.
2008/5/16 senthil kumar [EMAIL PROTECTED]:
Hi,
We are having some problem with upgrading Junit 4.4 version. Since some of
the API's like (TestSuiteLoader.java)
with 1.8.0 also. I will try again with 1.8.0 and will let
you know the results.
-Senthil.
- Original Message
From: Petar Tahchiev [EMAIL PROTECTED]
To: Cactus Users List cactus-user@jakarta.apache.org
Sent: Friday, May 16, 2008 4:10:36 AM
Subject: Re: Junit 4.4 upgrade problem.
Hi
with the below changes from your local setup. Thanks in
advance.
-Senthil.
- Original Message
From: Petar Tahchiev [EMAIL PROTECTED]
To: Cactus Users List cactus-user@jakarta.apache.org
Sent: Friday, May 16, 2008 8:47:06 PM
Subject: Re: Junit 4.4 upgrade problem.
Hi Senthil,
indeed
PROTECTED]:
1.) Can Cactus be used within an EJB3 / Java Enterprise 5 Environment?
I guess, the answer given in the mailing list is also true for me, right?
[quote Petar Tahchiev]: First no, Cactus currently does not support J2EE
1.5.
http://www.mail-archive.com/cactus-user@jakarta.apache.org
: Petar Tahchiev [EMAIL PROTECTED]
To: Cactus Users List cactus-user@jakarta.apache.org
Sent: Friday, May 16, 2008 8:47:06 PM
Subject: Re: Junit 4.4 upgrade problem.
Hi Senthil,
indeed this issue was solved, but after the 1.8.0 release. You can take a
look at the
svn repository
Hi Adam,
the only thing that comes to my mind is that you can try to do that
asynchronously.
The user clicks on a button and then a message
Test execution started. Please see your email for the test results.
is displayed. After the tests finish the execution an email(or any other
notification) is
require any other jar files?
Previously I had only cactus-1.7.1.jar file in
my lib directory.
Please give me your suggestions.
-Senthil.
- Original Message
From: Petar Tahchiev [EMAIL PROTECTED]
To: Cactus Users List cactus-user@jakarta.apache.org
Sent: Thursday, May 22, 2008
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
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
I
did
check was the dtd version in the web.xml, it is 2.5. I forgot about
running
ant in verbose mode, that may give me a bit of insight as well as trying
a
different version of ant.
Thanks again!
On Wed, 4 Jun 2008 15:45:25 +0300, Petar Tahchiev
[EMAIL PROTECTED]
wrote:
Hi
-app
Keith R. Davis wrote:
I have a meeting so I won't be available this afternoon. What time zone
are
you on?
On Wed, 4 Jun 2008 21:44:06 +0300, Petar Tahchiev
[EMAIL PROTECTED]
wrote:
Hi Keith,
do you have some kind of AIM, Gtalk, Skype, ICQ.
I want to help you so it would be best
Hi nauke,
can we please see you cactiftywar task?
i guess that you are trying to place the classpath nested element inside
the cactifywar element, which is impossible.
I will have more to tell you once I see the build.xml you have.
Cheers, Petar.
2008/6/10 nauke. [EMAIL PROTECTED]:
Hi!
Hi Sergio,
can you paste the exception that you get?
Also in what target does the execution fail: cactifywar or runServerTests?
Thanks, Petar.
2008/6/18 serdsch [EMAIL PROTECTED]:
It doesn't matter if I put the common-loggins.jar within the classpath of
my
taskdef or if I even copy the
HI guys,
I am really amazed that no-one uses Cactus 1.8.0, since it offers so many
facilitation!
I use no hacks at all, and I am still able to start, deploy, execute the
tests in, and stop JBoss 4.2.2.
I use Cactus 1.8.0 with the Cargo Integration. Here is a snippet from my
build.xml (this
on JBoss 4.2.2 (this was before 1.8.0).
I believe I tried an unhacked 1.8.0 and it didn't work
for me either, although I wasn't using the cargo integration
like you show below.
Thanks,
Dan
-Original Message-
From: Petar Tahchiev [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27
Hi Anfernee,
If you are talking about writing the cactus test-cases in JUnit4 fashion
(i.e. with Annotations)
we are certainly thinking about this and working upon this.
The problem is that I don't see it happening in the next 1.8.1 release.
Currently you can use Cactus with JUnit4 in you
://marc.info/?l=tomcat-userm=119098089904045w=2
Thanks,
Dan
-Original Message-
From: Petar Tahchiev [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 28, 2008 12:54 PM
To: Cactus Users List
Subject: Re: urgent help needed -to run cactus on jboss-4.2.0
Hi Daniel,
my
Hi Nicole,
I am really sorry but I didn't get the question. So the problem is actually
that the cactifywar task puts the
servlet-redirector definitions in reversed order, like this:
servlet-mapping
servlet-nameServletRedirector/servlet-name
Hi PoorabShah,
the -SNAPSHOT means that this is still in development.
You have to checkout cactus from the svn and then build it.
HTH, Petar.
2008/7/13 PoorabShah [EMAIL PROTECTED]:
Can someone point me to 1.8.1-SNAPSHOT jar which includes the maven2
'cactifywar' mojos? The latest version
res-ref-namejdbc/ProjectNameDS/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
/web-app
Is that what you were after?
-Original Message-
From: Petar Tahchiev [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2008 10
Cool :-).
Thanks for sharing :-).
Cheers, Petar.
2008/7/18, Mary Dosch [EMAIL PROTECTED]:
Hi,
I was able to get the cactus example from
http://jakarta.apache..org/cactus/integration/howto_tomcat.html
working with just a few deviations.
0) I followed the directions from the page above.
Hi Pavel,
I am not sure where the bug is, but I feel like it is not a
Cactus issue - I see none of the Cactus classes in the
strack trace.
Cheers, Petar.
2008/8/12 Zalunin Pavel [EMAIL PROTECTED]
hi
i've downloaded cactus and tried to add test case into my app (jboss 3.2.1
jdk 1.4.2_10)
Hi Paul,
I think it would be very simple if you just replace the zipurlinstaller
(which downloads and installs zips)
withe a home parameter of the cargo task - just like in:
containerset
cargo containerId=${jboss.container.id}
output=${logs.dir}/output.log
, Petar.
2008/8/22, Paul Kiruvanayagam [EMAIL PROTECTED]:
Hi Peter
thanks for your speedy reply. I am guessing I should replace
${jboss.container.id} with the value of ${cactus.contextURL} or do I not
use the cactus.contextURL variable
thanks
Paul
Petar Tahchiev wrote:
Hi Paul,
I think
Hi there,
I will try to answer your question.
Cactus deals with testing the core
components from the J2EE spec (Servlets, JSPs and EJBs). If you have
any framework-specific application, It will be difficult to use it. It is a
mature
project, and is past from the rapid development mode.
HtmlUnit
Hi Andre,
2008/9/9, Andre Lopes [EMAIL PROTECTED]:
Hi all,
I'm new on cactus, it's the first time I'm working with it, and i am build
a in-container unit testing application to test EJB's, a struts
application and some other things. With the EJB's, and the other things
everything worked
Hi,
we are currently working on the Maven2 mojos, and I expect them to be
ready by the end of the month or at the beginning of October.
Can you try to make the servlet samples work with Maven2?
It should be pretty stright-forward: just navigate to /samples/servlet and
execute mvn clean install
Hi,
I am really not sure what is missing. I will try to answer your questions:
1. Cactus uses the maven-surefire definition (you can see it defined in the
pom.xml).
Maven-surefire plugin will execute all the tests that are specified in
src/test/java/
2.The test-classes should be placed in
I am really not sure.
You may try to post this on the cargo mailing list.
Maybe the guys there have better idea.
Cheers, Petar.
2008/9/23, Martin West [EMAIL PROTECTED]:
another observation:
The cargo logs get overwritten by the second execution ie the stop,
which is sort of OK because
Hi Martni,
I just changed the Maven mojo to add the cactus test classes
to the cactified war. This way you can place your tests in
src/test/java
and Maven will compile them in target/test-classes/
And then you can call the mojo like that:
testClasses
Hi Niclas,
the only way you can start Cactus in Eclipse is by using Jetty as
a container.
Cheers, Petar.
2008/10/30 nicolas.duminil [EMAIL PROTECTED]:
Greetings,
I'm doing a simple Cactus test using Eclipse 3.3 with WTP. Here is the class
I'm trying to test in the WebLogic 10.3g HTTP
Hi Cory,
I believe you need to add the classpath
like this
path refid=cactus.myclasspath/
instead of:
pathelement location=${cactus.myclasspath}/
Cheers, Petar.
2008/11/24, Cory Lum [EMAIL PROTECTED]:
Ant 1.7.1
Cactus 1.8
Tomcat 5.5
I'm trying to automate a
Hi Joe,
you can use the latest version of Cactus in cooperation
with Cargo. Select the remote container you like and
tune the container's settings.
Cactus comes with a few sample projects, that you can
take a look at. I think they work as a local container, but
there should be no problem to
Hi Naha,
first you need to use the jboss42x nested element for Cargo to work.
This is clearly defined in the Cargo documentation:
http://cargo.codehaus.org/JBoss+4.2.x
Before you paste your configuration (the Ant scripts or the Maven poms)
I am unable to locate the problem any further.
Cheers,
Hi Neha,
this error happens when there was something wrong with the war
that you deploy. Make sure that the test.war you
try to deploy is cactified and it's web.xml contains the servletRedirector
definitions.
Also one more thing that struck me in your build.xml:
Are you sure that you have
Hi Nicole,
I would be really interested in you test-case and
also the exact exception you get.
Cheers, Petar.
2009/1/5 Nicole Luneburg nicole.luneb...@lisasoft.com
Ps. I have been searching the net all day.
Thought I'd mention that I did come across
Thanks for the point.
Will be fixed.
Cheers, Petar.
2009/1/5, Nicole Luneburg nicole.luneb...@lisasoft.com:
Hi,
I hope I'm posting to the right place ...
The link to Cactifywar task is broken on this page:
http://jakarta.apache.org/cactus/writing/howto_security.html
cheers!
Hi Nicole,
I think you misunderstand the purpose of Cactus.
Your test will always be executed in the server side.
This means that the testXXX methods are executed on the
server side. You can, however, execute two methods - beginXXX and endXXX
on the client side. This means the execution flow
method.
I am obviously doing this wrong, but I am really at a dead end as to how I
am to go about this ...
I hope my problem makes more sense :(
Thnks again,
nic
-Original Message-
From: Petar Tahchiev [mailto:paranoia...@gmail.com]
Sent: Wednesday, 7 January 2009 7:45 PM
Message-
From: Petar Tahchiev [mailto:paranoia...@gmail.com]
Sent: Thursday, 8 January 2009 9:56 PM
To: Cactus Users List
Subject: Re: How to set user principal in setUp()
Hi Nicole,
I got your example working on my machine.
This line will return always false
at it
again.)
I'm determined to get this fixed!!!
Cheers,
Nicole
From: Petar Tahchiev [mailto:paranoia...@gmail.com]
Sent: Friday, 9 January 2009 8:29 AM
To: Cactus Users List
Subject: Re: How to set user principal in setUp()
Here is a detailed instruction on how to run the tests:
1
Hi Zachary,
I just saw the issue - nevertheless I have never had problems
with the jars.
I will try to push a new release tomorrow.
Thanks, Petar.
2009/1/10, Zachary McMahon zmcma...@gmail.com:
I just noticed that the jar that is in the maven repository doesn't have
the
duplicate class
Hi Nicole,
no it seems that you are missing these
[ivy:retrieve] ::
org.apache.cactus#cactus.integration.ant;1.8.1-SNAPSHOT: not found
[ivy:retrieve] :: javax.servlet#jstl;1.1.2: not found
[ivy:retrieve] ::
org.apache.geronimo.specs#geronimo-ejb_3.0_spec;1.0: not found
You can increase the Java Heap space by setting up the
environment variable:
set ANT_OPTS=-Xmx800M ; export ANT_OPTS
or higher.
Cheers, Petar.
2009/1/15, Nicole Luneburg nicole.luneb...@lisasoft.com:
Back again.
In my app (so not the sample one anymore) when I run the test target I
get an
.
The latest published version still contains the duplicate classes.
I tried removing the small ones manually (using winrar) but it still
doesn't
work.
When is there going to be a fixed version of cactus 1.8.x ?
Best regards,
Avner
Petar Tahchiev wrote:
Hi Zachary,
I just saw
Hi Nicole,
welcome back ;-).
output.log contains all the server-side logs. Client-side logs (the begin
and end methods)
should be printed on the command line or in the xml you mentioned.
One problem I see in your testcases is the following:
you use JUnit4 assert methods.
Take a look here:
The Jakarta Cactus project is pleased to announce the release of version
1.8.1. This version fixes a number of bugs.
It also provides a maven2 plugin to cactify your WAR and EAR files, as well
as a sample application
on how to test your EJB3 projects.
Please download and enjoy.
Download -
available for the includeCactusJars tag?
I put includeCactusJarsfalse/includeCactusJars within the
configuration part of the cactify execution, but it was still looking
for the jars..
cheers,
Bo
Petar Tahchiev paranoiabla.li...@gmail.com
26/01/2009 11:04
Por favor, responda a
Cactus
ApacheCon EU 2009 registration is now open!
23-27 March -- Mövenpick Hotel, Amsterdam, Netherlands
http://www.eu.apachecon.com/
Registration for ApacheCon Europe 2009 is now open - act before early
bird prices expire 6 February. Remember to book a room at the
Here's some great news for everyone who's thinking of
traveling to Amsterdam for this year's ApacheCon Europe. The Early Bird
deadline has been extended to Friday, February 13th - and remember,
there is a discount of 150 Euro on registration for anyone staying at
the Mövenpick Hotel. Register at
Hi Timothy,
as this url describes:
http://jakarta.apache.org/cactus/integration/ant/task_cactus1.8.html
put this in your containerset:
cargo containerId=tomcat5x output=${logs.dir}/output.log
log=${logs.dir}/cargo.log home=TOMCAT_HOME
configuration
property
Hi Mallikarjuna,
Can we see the QServletTest?
2009/4/10 sc.mallikarj...@gmail.com:
Hello
I am writing JUnit Test Cases for Servlets. On running a sinle test case on
maven, it is executing the begin methods, but giving errors in test methods.
I have added the cactus jars, bothon client
Hi Jeffrey,
version 1.8.0 and 1.8.1 are in this folder
http://repo2.maven.org/maven2/org/apache/cactus/
on the maven servers.
Cheers, Petar.
2009/7/13 Bennett, Jeffrey jjbenn...@onecommunications.com:
Out project(s) utilize cactus and build using ant, and ivy for
dependency-management.
.
-Original Message-
From: Petar Tahchiev [mailto:paranoia...@gmail.com]
Sent: Wednesday, July 15, 2009 3:02 AM
To: Cactus Users List
Subject: Re: Cactus 1.8.1 not on ibiblio
Hi Jeffrey,
version 1.8.0 and 1.8.1 are in this folder
http://repo2.maven.org/maven2/org/apache/cactus
http://jakarta.apache.org/cactus/integration/maven2/index.html
as well as the sample applications that can be found in the
cactus svn and in the cactus distro ;)
2010/2/2 mark babcock markababc...@gmail.com
Where can I find information on installing cactus 1.8.1 and getting the
goals to work
79 matches
Mail list logo