Bosco,

I am not sure what your problem is. I have just tried with Tomcat 4.0.1
(I was using the latest nightly build of Tomcat so I wanted to make sure
it was working on 4.0.1) and it worked. Can you try with Cactus 1.3
(grab a nightly build) as this is the version I have tested it on.

Thanks
-Vincent

> -----Original Message-----
> From: Bosco [mailto:[EMAIL PROTECTED]]
> Sent: 17 December 2001 05:05
> To: [EMAIL PROTECTED]
> Subject: Fw: I am getting 'Cannot find Cookie' error
> 
> Hi,
>         I have installed Cactus-23-1.2, Ant 1.4 and Tomcat 4.0.1. When
I
> tried to run the build for 'tests_all' I am getting the 'cookie not
found'
> error. Can anyone help me to solve the problem.
>         Thanks in advance,
> 
>         The trace of error is as follows
> 
> 
>         C:\jakarta-cactus-23-1.2\sample\build>ant tests_all
> Buildfile: build.xml
> 
> init:
>      [echo] --------- Cactus Sample 1.2 ---------
>      [echo]
>      [echo] java.class.path
=C:\jdk1.2.2\jre\lib\rt.jar;c:\jakarta-cactus-
> 23-1.2\lib\junit.jar;c:\jakarta-cactus-23-1.2\lib\
>
cactus.jar;c:\jakarta-servletapi-4\lib\servlet.jar;c:\jakarta-cactus-23-
> 1.2\lib\
>
log4j.jar;c:\jakarta-cactus-23-1.2\lib\httpunit.jar;c:\jakarta-cactus-23
-
> 1.2\sam
> ple\conf\test\cactus.properties

Note: that putting cactus.properties itself in the classpath will not
help as it is not a jar ! You could remove this line altogether.


>      [echo]
>      [echo] java.home = c:\jdk1.3.1_01\jre
>      [echo] user.home = C:\Documents and Settings\BOSCO
>      [echo]
>      [echo] basedir = C:\jakarta-cactus-23-1.2\sample
>      [echo]
>      [echo] cactus.jar = ../lib/cactus.jar
>      [echo] cactus.ant.jar = ../lib/cactus-ant.jar
>      [echo] servlet.jar = d:/jakarta-servletapi-4/lib/servlet.jar
>      [echo] junit.jar = c:/jakarta-ant-1.4/lib/junit.jar
>      [echo] httpclient.jar = ../lib/httpclient.jar
> 
> prepare:
> 
> prepare-compile:
> 
> compile:
> 
> prepare-testwar-log4j:
> 
> prepare-testwar:
> 
> testwar:
> 
> check_tests_tomcat_40:
> 
> prepare_tests_tomcat_40:
>      [echo] tomcat.home.40 = c:/jakarta-tomcat-4.0.1
>    [delete] Deleting: C:\jakarta-cactus-23-
> 1.2\sample\target\test\tomcat40\conf\
> server.xml
>    [delete] Deleting directory C:\jakarta-cactus-23-
> 1.2\sample\target\test\tomca
> t40\webapps\test
>      [copy] Copying 1 file to C:\jakarta-cactus-23-
> 1.2\sample\target\test\tomcat
> 40\conf
> 
> tests_tomcat_40:
> 
> start_tomcat_40:
>      [java] HttpConnector Opening server socket on all host IP
addresses
>      [java] Starting service Tomcat-Standalone
>      [java] Apache Tomcat/4.0.1
>      [java] StandardHost[localhost]: Installing web application at
context
> path
> /test from URL jar:file:C:\jakarta-cactus-23-
> 1.2\sample\target\test\tomcat40\web
> apps\test.war!/
>      [java] WebappLoader[/test]: Deploying class repositories to work
> directory
> C:\jakarta-tomcat-4.0.1\work\localhost\test
>      [java] WebappLoader[/test]: Deploy JAR /WEB-INF/lib/cactus.jar to
> C:\jakart
> a-cactus-23-1.2\sample\target\test\tomcat40\webapps\test\WEB-
> INF\lib\cactus.jar
>      [java] WebappLoader[/test]: Deploy JAR
/WEB-INF/lib/httpclient.jar to
> C:\ja
> karta-cactus-23-1.2\sample\target\test\tomcat40\webapps\test\WEB-
> INF\lib\httpcli
> ent.jar
>      [java] WebappLoader[/test]: Deploy JAR /WEB-INF/lib/junit.jar to
> C:\jakarta
> -cactus-23-1.2\sample\target\test\tomcat40\webapps\test\WEB-
> INF\lib\junit.jar
>      [java] WebappLoader[/test]: Deploy JAR /WEB-INF/lib/log4j.jar to
> C:\jakarta
> -cactus-23-1.2\sample\target\test\tomcat40\webapps\test\WEB-
> INF\lib\log4j.jar
>      [java] StandardManager[/test]: Seeding random number generator
class
> java.s
> ecurity.SecureRandom
>      [java] StandardManager[/test]: Seeding of random number generator
has
> been
> completed
>      [java] ContextConfig[/test]: Added certificates -> request
attribute
> Valve
>      [java] StandardWrapper[/test:default]: Loading container servlet
> default
>      [java] StandardWrapper[/test:invoker]: Loading container servlet
> invoker
>      [java] HttpConnector[8080] Starting background thread
> 
> tests:
>     [junit] Running org.apache.cactus.TestAll
>     [junit] Tests run: 10, Failures: 1, Errors: 0, Time elapsed: 6.239
sec
>     [junit] Testsuite: org.apache.cactus.TestAll
>     [junit] Tests run: 10, Failures: 1, Errors: 0, Time elapsed: 6.239
sec
>     [junit]
>     [junit] Testcase: testLongProcess took 3.956 sec
>     [junit] Testcase: testLotsOfData took 1.803 sec
>     [junit] Testcase: testReadServletOutputStream took 0.18 sec
>     [junit] Testcase: testPostMethod took 0.03 sec
>     [junit] Testcase: testGetMethod took 0.03 sec
>     [junit] Testcase: testSetAttribute took 0.04 sec
>     [junit] Testcase: testSetRequestAttribute took 0.04 sec
>     [junit] Testcase: testSendParams took 0.05 sec
>     [junit] Testcase: testSendHeader took 0.02 sec
>     [junit] Testcase: testSendCookie took 0.06 sec
>     [junit]     FAILED
>     [junit] Cannot find [testcookie] cookie in request
>     [junit] junit.framework.AssertionFailedError: Cannot find
[testcookie]
> cooki
> e in request
>     [junit]     at junit.framework.Assert.fail(Assert.java:51)
>     [junit]     at junit.framework.Assert.assert(Assert.java:20)
>     [junit]     at
> org.apache.cactus.sample.TestSampleServlet.testSendCookie(Tes
> tSampleServlet.java:270)
>     [junit]     at java.lang.reflect.Method.invoke(Native Method)
>     [junit]     at
> org.apache.cactus.AbstractTestCase.runServerTest(AbstractTest
> Case.java:491)
>     [junit]     at
> org.apache.cactus.AbstractTestCase.runBareServerTest(Abstract
> TestCase.java:456)
>     [junit]     at
> org.apache.cactus.server.AbstractTestCaller.doTest(AbstractTe
> stCaller.java:137)
>     [junit]     at
> org.apache.cactus.server.AbstractTestController.handleRequest
> (AbstractTestController.java:122)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.doPost(Servlet
> TestRedirector.java:134)
>     [junit]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>     [junit]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>     [junit]     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFil
> ter(ApplicationFilterChain.java:247)
>     [junit]     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
> icationFilterChain.java:193)
>     [junit]     at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standard
> WrapperValve.java:243)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:566)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
> ava:943)
>     [junit]     at
> org.apache.catalina.core.StandardContextValve.invoke(Standard
> ContextValve.java:201)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:566)
>     [junit]     at
> org.apache.catalina.valves.CertificatesValve.invoke(Certifica
> tesValve.java:246)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:564)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
> ava:943)
>     [junit]     at
> org.apache.catalina.core.StandardContext.invoke(StandardConte
> xt.java:2344)
>     [junit]     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHos
> tValve.java:164)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:566)
>     [junit]     at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD
> ispatcherValve.java:170)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:564)
>     [junit]     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor
> tValve.java:170)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:564)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
> ava:943)
>     [junit]     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardE
> ngineValve.java:163)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:566)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
> ava:943)
>     [junit]     at
> org.apache.catalina.connector.http.HttpProcessor.process(Http
> Processor.java:1011)
>     [junit]     at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProc
> essor.java:1106)
>     [junit]     at java.lang.Thread.run(Thread.java:484)
>     [junit]
> 
> stop_tomcat_40:
>  [runservertests] Server stopped !
> 
> BUILD FAILED
> 
> C:\jakarta-cactus-23-1.2\sample\build\build.xml:376: Test
> org.apache.cactus.Test
> All failed
> 
> Total time: 46 seconds
> C:\jakarta-cactus-23-1.2\sample\build>
> 
> Regards,
> Bosco




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

Reply via email to