|
Hi,
In using config files specified as
"file:<relative-path>", I ran into a problem where the SourceResolver was
throwing NPEs. Basically, the parameterize() method for SourceResolverImpl
wasn't being called, and therefore m_urlSourceClass wasn't initialized when
resolveURI(...) was called. I have attached a patch for this, please check
for correctness and apply if you think this is the correct fix.
Thanks,
Shash
|
Index: ContextManager.java
===================================================================
RCS file:
/home/cvspublic/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/util/ContextManager.java,v
retrieving revision 1.43
diff -u -r1.43 ContextManager.java
--- ContextManager.java 2 Oct 2002 01:52:21 -0000 1.43
+++ ContextManager.java 14 Oct 2002 18:42:14 -0000
@@ -602,6 +602,9 @@
SourceResolverImpl resolver = new SourceResolverImpl();
resolver.enableLogging( getLogger() );
resolver.contextualize( this.childContext );
+
+ Parameters pars = new Parameters();
+ resolver.parameterize( pars );
resolver.compose( manager );
manager.put( resolver.ROLE, resolver );-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
