synchronized (webDigester) {
try {
if (altDDName != null) {
- url = new File(altDDName).toURL();
+ url = new File(altDDName).toURI().toURL();
} else {
url = servletContext.getResource(
Constants.ApplicationWebXml);
webDigester.reset();
parseException = null;
try {
- if (stream != null) {
- stream.close();
- }
+ stream.close();
} catch (IOException e) {
log.error(sm.getString("contextConfig.applicationClose"), e);
}
}
- protected void antiLocking()
- throws IOException {
+ protected void antiLocking() {
if ((context instanceof StandardContext)
&& ((StandardContext) context).getAntiResourceLocking()) {
*/
protected synchronized void beforeStart() {
- try {
- antiLocking();
- } catch (IOException e) {
- log.error(sm.getString("contextConfig.antiLocking"), e);
- }
-
+ antiLocking();
+
}
new File(System.getProperty("catalina.base"), "conf");
if (!configBase.exists()) {
return null;
- } else {
- return configBase;
}
+ return configBase;
}