> -----Original Message-----
> From: Oren Gross [mailto:[EMAIL PROTECTED]]
> Sent: 04 July 2002 14:19
> To: 'Cactus Users List'
> Subject: RE: cacus-12 issues
>
> Hello Vincent, thanks for the reply
> If I run my MasterProject with org.apache.tomcat.startup.Tomcat (via
my
> IDE), than I actually did what you specify in steps 1 to 3. Isn't that
> right?
Yes probably but I don't know what a MasterProject is ! :-)
Is it a java class file, is it a WAR, is it a project in the IDE sense ?
If so, are you test class files in that project (they must be) ?
You need to have the test classes deployed in tomcat. Are you familiar
with the concept of Cactus client side and Cactus Server side ? If not,
I would suggest you read the "how it works" guide.
> Having my Junit based test application MasterProjectTest,
Again is that a class file, another WAR or an IDE project ? Your test
classes must be located in 2 places : in your running container and on
the TestRunner side.
> with the cactus
> based classes, (public class TestFoo extends CactusStrutsTestCase )
> running
> via my IDE, runs the Junit GUI, as you specify in step 4.
> So, I don't see the difference.
Maybe not. I still fail to understand what is your problem. What error
are you getting ?
Thanks
-Vincent
> Oren
> -----------------------------------------------------------------
> Oren Gross Java(TM) Developer
> Mercury Interactive APM TAC R&D
> +972-3-5399407 [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 04, 2002 1:57 PM
> To: 'Cactus Users List'
> Subject: RE: cacus-12 issues
>
>
> Hi Oren
>
> I think you're missing some basics on how Cactus works. Please have a
> look at the "How it works" page on the web site.
>
> Cactus is first a framework, i.e. a jar.
>
> It seems what you want to do is unit test a web application. Thus you
> need to package your application to include the cactus jars and your
> test classes, as is described in "Getting Started" on the web site.
This
> basically means having a proper web.xml and making sure that you test
> classes can "see" the cactus jars and the code to test (i.e. its
> classloader can load them). If you don't want to understand
classloader
> I would suggest you package you webapp as a WAR.
>
> So to summarise:
>
> Step 1 : package your application
>
> Step 2 : deploy it. If it is a war, it is a simple as dropping it into
> tomcat/webapps. Note: You can actually configure your tomcat install
so
> that its webapp directory points to where your project is located on
> your disk
>
> Step 3 : Start the application server. You can start it from your ide
> calling its main class or using the IDE predefined target. You can
> configure Tomcat to run on a given port by modifying its server.xml
file
> (default is 8080).
>
> Step 4 : Run the test by running a JUnit TestRunner. Again you can
start
> that from your IDE. You need to have cactus.properties in your
classpath
> and make it point to the correct URL (i.e. correct port + correct
webapp
> name).
>
> These steps are quite generic and work with any IDE (including
> JBuilder).
>
> -Vincent
>
> > -----Original Message-----
> > From: Oren Gross [mailto:[EMAIL PROTECTED]]
> > Sent: 04 July 2002 13:00
> > To: Cactus Users (E-mail)
> > Subject: cacus-12 issues
> >
> > Hi there.
> > I really need some help here. I have been struggling with this
problem
> for
> > a
> > while now...
> > I am working with Cactus-12, and JBuilder5.
> > I followed the "IDE How To" instructions and there are some unclear
> > issues,
> > I would appreciate your help about:
> > 1. It doesn't say anything about the build.properties file, so how
> does
> > the
> > org.apache.tomcat.startup.Tomcat knows on which port to run?
> > 2. Assume my master project is MAsterProject, and the test one is
> > MasterProjectTest. On the test one I want to run the Cactus Tests
> (such as
> > CactusStrutsTestCase). Which project should run the
> > org.apache.tomcat.startup.Tomcat?
> >
> > Thanks Oren
> >
> > -----------------------------------------------------------------
> >
> > Oren Gross Java(TM) Developer
> >
> > Mercury Interactive APM TAC R&D
> >
> > +972-3-5399407 [EMAIL PROTECTED]
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail: <mailto:cactus-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:cactus-user-
> [EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>