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]>
