Hi Vincent

Vincent Massol wrote:

>Sam,
>
>Let's start again from the beginning ignoring everything we said in our
>previous email.
>
Sounds like a good idea.

> The sample application is really very simple to get
>started with.
>
So I've heard  :-)

>Let's start with some questions :
>
>1/ Do you have Ant installed ? 
>
I do, version 1.4.1

>Have you downloaded the prepackaged Ant
>install from the Cactus web site ?
>
I have downloaded it, but I haven't unpacked or used it.

>2/ Have you downloaded Tomcat and unzipped it in a directory ? (no need
>to configure anything at all) ?
>
A long time ago.  I'm using tomcat 4.0.3

>3/ What have you downloaded from Cactus web site (exact name of file) ?
>
jakarta-cactus-23-1.2.zip

>4/ Have you unzipped it in a directory, let's say [CACTUS] ?
>
yes

>5/ Have you created a [CACTUS]/build/build.properties (by copying and
>editing [CACTUS]/build/build.properties.sample ?
>
yes

>If answer to 3/ is yes, then you have finished. The only thing to do is
>to open a dos prompt, cd to [CACTUS]/build and type "ant tests_all"
>
right, that's what I did and I got the error that I originally sent you 
in my first email:

"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."

Any help will be greatly appreciated.

CHEERS> SAM


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to