jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: Must I run the Cactus unit test ? (Newbie alert)
Date Sat, 31 Aug 2002 15:12:01 GMT

> -----Original Message-----
> From: Woo, Chen Ching [mailto:cwoo@spss.com]
> Sent: 29 August 2002 21:31
> To: Cactus Users List
> Subject: RE: Must I run the Cactus unit test ? (Newbie alert)
> Thanks Vincent.
> I have the following questions regarding running the cactus unit tests
> along with my other tests. I am running Orion 1.5.2 and
> 1.4b1.
> 1. For my application, the 'cactus.contextURL' is set to
> http://localhost:80/myapp, this causes the following error (among
> when I tried to run the cactus unit tests using Ant.  I guess the
> testGetRequestDispatcherFromNamedDispatcherOK is looking for the
> named "TestJsp" under the /myapp context, which is not specified in
> web.xml. How do I get around this problem ?
>     [junit] Testcase: testCookieEncoding took 0.11 sec
>     [junit] Testcase: testGetRequestDispatcherFromNamedDispatcherOK
> 0.13 sec
>     [junit]     FAILED
>     [junit] unable to get NamedDispatcher : TestJsp


This means that your are trying to run the Cactus samples but outside of
their build environment. One of the sample needs a named dispatcher as
the test name indicates. But it appears you haven't set it up in your
web.xml ... If you wish to run the Cactus sample, then you should use
the set up that is provided by the Cactus distribution.

If you wish to run your own samples, well, then, you probably don't need
that named dispatcher!


To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message