Richard Wallace wrote:
Hey again,I've just updated the EngineClassLoader source in the Assembly package to take a URLStreamHandlerFactory as an argument. It would be a lot of help if you could play around with that to point of answering the question if this is a solution to the problem we are dealing with. I'm off and away for the next three or four hours.
On Tue, 2003-01-21 at 18:59, Stephen McConnell wrote:
Sounds to me like you should be creating a Block instead of stuffingI 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
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
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.
Until later - Steve.
Thanks.
-- Stephen J. McConnell mailto:[EMAIL PROTECTED] http://www.osm.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]