Hi Roberto,

What are you expecting to "see" by defining the cactus.jetty.resourceDir
property? It simply adds it as a webapplication context to the Jetty config.

How do you know your working dir is the test/ directory? Is that from where
you start your build? I would really recommend using an absolute file path
to the webapps dir. Also you in the config you wrote: "./webapp" but then
later on in your description, you mention having a "/test/WEB-INF"
directory. The two doesn't seem to match... 

Also, you may need a web.xml (I don't know how lenient Jetty is but a web
application do require a web.xml).

Thanks
-Vincent

PS: If you wish to add logging you'll need to provide your own Jetty config
file (using the cactus.jetty.config property).

> -----Original Message-----
> From: Roberto Nucera [mailto:[EMAIL PROTECTED]
> Sent: dimanche 28 novembre 2004 06:59
> To: [EMAIL PROTECTED]
> Subject: JettyTestSetup does not work when I set the
> "cactus.jetty.resourceDir"
> 
> Please help!,
> 
> I have a JUnit Cactus test as follows:
> 
> public static Test suite() {
>     System.setProperty("cactus.contextURL","http://localhost:9090/test";);
>     //System.setProperty("cactus.jetty.resourceDir", "./webapp");
>     TestSuite suite = new TestSuite("Run Tests with Jetty");
>     suite.addTestSuite(TestDisplayPlayersServlet.class);
>     return new JettyTestSetup(suite);
> }
> 
> I workd fine if I  comment the second line (resourceDir). If it is
> uncommented then it does nothing. I see no exception anywhere but that
> is what seems it happened.
> 
> By the way the /.webapp directory is just under the test
> (working)directory, and it is emtpy. Just a /test/WEB-INF directory
> structure but no files (no web.xml as well).
> 
> Thanks in advance
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to