digester.addCallParam("web-app/servlet/init-param/param-name", 0); //$NON-NLS-1$
digester.addCallParam("web-app/servlet/init-param/param-value", 1); //$NON-NLS-1$
try {
InputStream input = this.context.getResourceAsStream(pathname);
if (input == null)
throw new AssertionFailedError("Invalid pathname: " + pathname); //$NON-NLS-1$
digester.parse(input);
input.close();
} catch (Exception e) {
throw new AssertionFailedError(
"Received an exception while loading web.xml - " //$NON-NLS-1$
+ e.getClass() + " : " + e.getMessage()); //$NON-NLS-1$
}
// now the context parameters..
digester = new Digester();
digester.setValidating(false);
digester.push(this.context);
digester.addCallMethod("web-app/context-param", "setInitParameter", 2); //$NON-NLS-1$ //$NON-NLS-2$
digester.addCallParam("web-app/context-param/param-name", 0); //$NON-NLS-1$
digester.addCallParam("web-app/context-param/param-value", 1); //$NON-NLS-1$
try {
InputStream input = this.context.getResourceAsStream(pathname);
if (input == null)
throw new AssertionFailedError("Invalid pathname: " + pathname); //$NON-NLS-1$
digester.parse(input);
input.close();
} catch (Exception e) {
throw new AssertionFailedError(
"Received an exception while loading web.xml - " //$NON-NLS-1$
+ e.getClass() + " : " + e.getMessage()); //$NON-NLS-1$
}
}