Stephen McConnell wrote:
Stephen McConnell wrote:Richard Wallace wrote: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).
I'm looking into this now - basically uping the error handling because I think the problem is occuring somewhere where I'm not expecting a problem. Will have some more news on this in a bit.
OK, Tomcate is invoking the setURLStreamHandlerFactory operation which can only be set once. This means that its not possible to register the handler in this way when Merlin is running inside something like Tomcat.
That's exactly where the problem comes from.
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.
Sylvain Wallez is the guy who is working on this. I've been looking over the package but I havn't go too far (not much documetation the last time looked but I know Sylvain has been working on this). Have CC'ed Sylvain with the objective of pulling him into this discussion.
I'm going to post a question on dev list concerning the SourceResolverImpl setup.
Forgot to say : my answer wasn't very constructive because I'm in a hurry at work today. Unfortunately, I'll be out of office tomorrow and also friday. Hope you can either dig in sourceresolve alone or wait a few days.
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]