Sam, Strange. Can you send us your web.xml ? I don't see anything wrong with Cactus in your stack trace. Looks like there is something else.
-Vincent > -----Original Message----- > From: Sam Joseph [mailto:[EMAIL PROTECTED]] > Sent: 18 April 2002 04:47 > To: [EMAIL PROTECTED] > Subject: Problem with ServletInit and testSetAttribute in tests_tomcat_40 > > Hi, > > So I'm trying to run the cactus samples on tomcat 4.0.3 and I'm having > some problems. I've been back and forwards through the docs a couple of > times so I think I have things set up correctly, and its almost working > but I get an error during start_tomcat_40 > > [java] StandardContext[/test]: Servlet /test has thrown a load() > exception: javax.servlet.ServletException: Servlet jsp'sServlet.init() > has thrown an exception > [java] javax.servlet.ServletException: Servlet jsp's Servlet.init() > has thrown asn exception > [java] at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a: > 935) > [java] at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) > [java] at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j av > a:3266) > [java] at > org.apache.catalina.core.StandardContext.start(StandardContext.java:3395 ) > [java] at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) > [java] .......................... > > the tests then start and they go okay, but testSetAttribute gives an error > > tests: > [junit] Running org.apache.cactus.TestAll > [junit] Tests run: 6, Failures: 0, Errors: 1, Time elapsed: 6.559 sec > [junit] Testsuite: org.apache.cactus.TestAll > [junit] Tests run: 6, Failures: 0, Errors: 1, Time elapsed: 6.559 sec > [junit] > [junit] Testcase: testLongProcess took 3.805 sec > [junit] Testcase: testLotsOfData took 2.494 sec > [junit] Testcase: testReadServletOutputStream took 0.15 sec > [junit] Testcase: testPostMethod took 0.03 sec > [junit] Testcase: testGetMethod took 0.03 sec > [junit] Testcase: testSetAttribute took 0.04 sec > [junit] Caused an ERROR > [junit] null > [junit] java.lang.NoSuchMethodError > [junit] at > org.apache.catalina.session.StandardSession.setAttribute(StandardSession .j > ava:1185) > [junit] at > org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardS es > sionFacade.java:191) > [junit] at > org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardS es > sionFacade.java:191) > [junit] at > org.apache.cactus.sample.SampleServlet.setSessionVariable(SampleServlet. ja > va:119) > [junit] at > org.apache.cactus.sample.TestSampleServlet.testSetAttribute(TestSampleSe rv > let.java:174) > [junit] at java.lang.reflect.Method.invoke(Native Method) > [junit] at > org.apache.cactus.AbstractTestCase.runServerTest(AbstractTestCase.java:4 91 > ) > [junit] at > org.apache.cactus.AbstractTestCase.runBareServerTest(AbstractTestCase.ja va > :456) > [junit] at > org.apache.cactus.server.AbstractTestCaller.doTest(AbstractTestCaller.ja va > :137) > [junit] at > org.apache.cactus.server.AbstractTestController.handleRequest(AbstractTe st > Controller.java:122) > [junit] at > org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec to > r.java:134) > [junit] at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > [junit] ................. > > > And then tomcat shuts down without any other tests being run. > > Can anybody help me out with this? > > Thanks in advance. > > CHEERS> SAM > > > -- > To unsubscribe, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
