Index: C:/javadev/Develop/maven2/doxia/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java =================================================================== --- C:/javadev/Develop/maven2/doxia/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java (revision 494373) +++ C:/javadev/Develop/maven2/doxia/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java (working copy) @@ -1048,13 +1048,30 @@ { if ( getClassLoader() != null ) { - if ( getClassLoader().getResource( name ) != null ) - { - urlName = getClassLoader().getResource( name ).toString(); - } + try + { + urlName = getClassLoader().getResource( name ).toString(); + } + catch (Exception e) + { + // TODO: just ignoring the exception is not good, but there is no logging facility + } + } - else + if ( urlName == null ) { + try + { + urlName = Thread.currentThread().getContextClassLoader().getResource(name).toString(); + } + catch (Exception e) + { + // TODO: just ignoring the exception is not good, but there is no logging facility + } + } + + if (urlName == null ) + { if ( ITextSink.class.getClassLoader().getResource( name ) != null ) { urlName = ITextSink.class.getClassLoader().getResource( name ).toString();