jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Joseph <gai...@yha.att.ne.jp>
Subject Problem with ServletInit and testSetAttribute in tests_tomcat_40
Date Thu, 18 Apr 2002 03:47:26 GMT
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.java:935)
     [java]     at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
     [java]     at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: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.java:1185)
    [junit]     at 
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
    [junit]     at 
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
    [junit]     at 
org.apache.cactus.sample.SampleServlet.setSessionVariable(SampleServlet.java:119)
    [junit]     at 
org.apache.cactus.sample.TestSampleServlet.testSetAttribute(TestSampleServlet.java:174)
    [junit]     at java.lang.reflect.Method.invoke(Native Method)
    [junit]     at 
org.apache.cactus.AbstractTestCase.runServerTest(AbstractTestCase.java:491)
    [junit]     at 
org.apache.cactus.AbstractTestCase.runBareServerTest(AbstractTestCase.java:456)
    [junit]     at 
org.apache.cactus.server.AbstractTestCaller.doTest(AbstractTestCaller.java:137)
    [junit]     at 
org.apache.cactus.server.AbstractTestController.handleRequest(AbstractTestController.java:122)
    [junit]     at 
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.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-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message