Hey again,

On Tue, 2003-01-21 at 18:59, Stephen McConnell wrote:
> Sounds to me like you should be creating a Block instead of stuffing
> around with bootstrapping.
> 
> 1. create an EngineClassLoader
> 
> * this means referencing externally located jar files
> containing the components you want to use
> * if the web app is not running as a component within
> Merlin then you will need to create the logging system (see
> the engine test case in the assembly package for an
> example)
> 
> 2. create a block
> 
> * create a appliance context and populate it with
> everything it needs
> * use the engine to create the block using the appliance
> context as an argument
> see DefaultBlockLoader.createBlock( ...) for an example
> 
> 3. start the block
> 

I did number one from above.  I've got everything else setup properly. 
I have the jars in the WEB-INF/lib and just use the Tomcat ClassLoader
to create the EngineClassLoader.  That worked out well.

I'm having some problems with step two.  Everywhere I look there is a
reference to the registry, even in the DefaultBlockLoader.createBlock()
method.  It seems to play an important role.  But, every time I try and
create an instance of the DefaultRegistry class I get the same
MalformedURLException saying "native" is an unknown protocol.  My guess
is that Tomcat sets the URLStreamHandler so when the DefaultRegistry
tries to set it again, it fails.  I haven't been able to find anywhere
where this might be configurable in Tomcat v4.1.18 (so I can tell it
what to use).  

You mentioned something about using Excalibur source resolver instead of
the current setup.  Any progress on that so far?  I think I might be
kinda at a standstill until this gets resolved.  I'd be willing to help
if you could give me direction.

Thanks.
-- 
Richard Wallace
AIM, Inc. (www.a--i--m.com)
Information Systems Consultants

"Providing New Technology,
     the Old-Fashioned Way"


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

Reply via email to