Chad, It seems you're missing a complete part of the Servlet spec, which is the notion of WebApp. It is the way to package an application and is the common and standard way of deploying an application. I would suggest you do some reading (just download the servlet spec for example or find a tutorial on javaworld) and then if you still have some additional questions, come back here, and we will answer then with pleasure.
See some comments inline below. > -----Original Message----- > From: chad r [mailto:[EMAIL PROTECTED]] > Sent: 27 March 2002 06:36 > To: [EMAIL PROTECTED] > Subject: Installation Problems > > > Hi, > > I am having a lot of problems installing cactus. I am using Tomcat and I > don't want to use Ant, just run my tests manually from JUnit. I am listing > my questions, please answer each one of them. Thanks in advance > > 1.) In Tomcat I don't find any WEB-INF/lib directory to put the commons- > cactus.jar file. Should I create a lib folder in WEB-INF and then put this > jar file? > webapps are put in tomcat_home/webapps under Tomcat > 2.) Is the Web.xml file need to appeneded with what I find in the > documentation, or do I need to replace it. Also are u talking about xml > file in \tomcat\webapps\examples\WEB-INF\web.xml. I want to test only > servlet programs, do I need to bother about filters and JSP part in xml > file or can I not put that in xml file > this belongs to your webapp (see servlet spec). > 3.) The documentation says "if the webapp is called mywebapp then URL in > cactus.properties should be > > http://localhost:8080/mywebapp/ServletRedirector" What do u mean by webapp > actually. I mean the webapp context (which is usually the name of the webapp war file). > I want to test my servlet, is it the webapp or do we need to > create any folder called webapp? If so where do we need to put that > > 4.) Do I need to write explicit setUp() and tearDown() methods in the > testclass. > setUp() and teardown() work in the same way as for JUnit except that they are executed on the server side. > Please reply as soon as possible > > cheers > > chad > Thanks -Vincent -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
