ctxt.log(CONFIG_FILE_PARAM
+" not specified, looking for default "+DEFAULT_CONFIG_FILE);
config_file = DEFAULT_CONFIG_FILE;
}
final ResourceLoader rloader = new ServletContextResourceLoader(ctxt,
new ClassLoader2ResourceLoader(cloader));
final InputStream in = rloader.getResourceAsStream(config_file);
if(in == null){
ctxt.log("yan configuration file "+config_file+" not found.");
return null;
}
try{
final NutsProcessor proc = getNutsProcessor(cloader, rloader, ctxt);
proc.process(rloader.getResource(config_file), in);
registerServletContext(proc.getContainer(), ctxt);
return proc;
}
finally{
in.close();