avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hammant <Paul_Hamm...@yahoo.com>
Subject Wrapping Catalina as an Avalon block
Date Sat, 15 Sep 2001 06:33:49 GMT
I've made reasonable progress.  I can get it serving from a .sar file, 
but only to the extent where it returns "Page not found for this 
context" type messages to the browser.  

I am 90% sure that it's because catalina is tied to it's directory 
structure - particularly for jar files.  i.e. me putting jars in lib/ 
for the sar will never get catalina to work with Phoenix.  I suspect 
this because of lines like the below in 
org.apache.catalina.core.StandardContext to do with classloading

        File directory = new File(System.getProperty("catalina.home"), 

That also leads onto a second point, the thing relies on catalina.home 
being set to the root of it's peculiar directory structure.  In it's 
current form, it's just not going to be sarable.  

Advice please...?

Or how about this as a proposal .... sar file format supports an 
environment.xml (instead of lib/*.jar) that looks like so...

        <env-var name="catalina.home" value="${sar-root}/catalina"/>
        <env-var name="catalina.base" value="${sar-root}/catalina"/>

... and the sar file contains a complete copy of the catalina binary 

Also, it would be handy for the Block to be able to get the root 
directory of where it's sar has been unpacked to.

On the positive side, I think it might be possible for the service to be 
able to have essentially createVirtualHost(...) and publishWebApp(...) 
as methods.

For those that are interested I am reimplementing the main method from 

Lastly, Catalina is going to use it's own connection manager and thread 
pool (without code changes, there is 0% change that we could get it 
using ours).


- Paul H

To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

View raw message