*/
public static synchronized void initConfig(ServletContext ctx, String uri,
String name, String confName) {
- initConfResource(confName);
+
+ initConfResource(ctx.getRealPath("/WEB-INF/")+"/"+confName);
+
configHash = new HashMap();
- configHash.put("Home", ctx.getRealPath("/"));
+ configHash.put("Home", ctx.getRealPath("/WEB-INF/")+"/");
configHash.put("ServletContext", ctx);
configHash.put("RootUri", uri);
if (result==null)
throw new ConfigException("config property '"+propName+"' not available!");
-
-
return result;
}