import org.apache.tomcat.util.res.StringManager;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
+import org.xml.sax.SAXParseException;
/**
digester.push(this);
digester.parse(inputSource);
inputStream.close();
+ } catch (SAXParseException spe) {
+ log.warn("Catalina.start using " + getConfigFile() + ": " +
+ spe.getMessage());
+ return;
} catch (Exception e) {
- log.warn("Catalina.start using "
- + getConfigFile() + ": " , e);
+ log.warn("Catalina.start using " + getConfigFile() + ": " , e);
return;
}
}
if (locator != null) {
String error = "Error at (" + locator.getLineNumber() + ", " +
- locator.getColumnNumber() + ": " + message;
+ locator.getColumnNumber() + ") : " + message;
if (e != null) {
return new SAXParseException(error, locator, e);
} else {
"}New " + realClassName);
}
+ if (realClassName == null) {
+ throw new NullPointerException("No class name specified for " +
+ namespace + " " + name);
+ }
+
// Instantiate the new object and push it on the context stack
Class<?> clazz = digester.getClassLoader().loadClass(realClassName);
Object instance = clazz.newInstance();
digester.push(instance);
-
}
performance benefits. (markt)
</add>
<update>
+ <bug>10972</bug>: Improve error message if the className attribute is
+ missing on an element in server.xml where it is required. (markt)
+ </update>
+ <update>
<bug>48692</bug>: Provide option to parse
<code>application/x-www-form-urlencoded</code> PUT requests. (schultz)
</update>