CocoonServlet error message names wrong parameter: configurations
-----------------------------------------------------------------
Key: COCOON-2067
URL: https://issues.apache.org/jira/browse/COCOON-2067
Project: Cocoon
Issue Type: Bug
Components: * Cocoon Core
Affects Versions: 2.1.10
Reporter: solprovider
Priority: Trivial
The error message in the last line of the code below misnames the parameter as
'configuration' instead of 'configurations'.
The easy fix is to add an 's'.
A better fix would move the string to a constant for use in all the code below
[Obviously excerpted code. Pretend ellipses are after each line.]
public class CocoonServlet extends HttpServlet {
public void init(ServletConfig conf) throws ServletException {
this.appContext.put(Constants.CONTEXT_CONFIG_URL,
getConfigFile(conf.getInitParameter("configurations")));
}
private URL getConfigFile(final String configFileName) throws
ServletException {
getLogger().warn("Servlet initialization argument 'configurations'
not specified, attempting to use '/WEB-INF/cocoon.xconf'");
getLogger().debug("Using configuration file: " + usedFileName);
String msg = "Init parameter 'configurations' is invalid : " +
usedFileName;
String msg = "Init parameter 'configurations' is invalid : " +
usedFileName;
String msg = "Init parameter 'configuration' doesn't name an existing
resource : " + usedFileName;
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.