cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Directory layout problem with htmlunit tests
Date Fri, 08 Apr 2005 11:40:33 GMT
Nathaniel Alfred wrote:

>>-----Original Message-----
>>From: Upayavira []
>>I think the crucial bit you missed is "embedded". Jetty is (aparently - I haven't
yet tried) easy to embed into other Java apps. So, when the junit JVM stops, so does Jetty.

That's exactly the idea.

>Currently htmlunit requires a more advanced version of httpclient and Rhino than Cocoon
allows.  So you don't really want to run both in the same JVM.

This like the exact same problem that led to writing 
ParanoidCocoonServlet. We just have to lauch Jetty (and all the Cocoon 
stuff) into its own, shielded ParanoidClassLoader.

>But what about simply having ant targets to start and stop jetty which are wrapped as
dependendies around the htmlunit-tests target.  " servlet" would then become a synonym
for " start-cocoon".

This requires two processes, and more importantly a fixed TCP port, 
which may be problematic in batch environments running parallel builds 
like Gump.


Sylvain Wallez                        Anyware Technologies  
Apache Software Foundation Member     Research & Technology Director

View raw message