The following code fix has been confirmed by the customer:
private String getContextPath(ExternalContext extContext) {
if (contextPath == null) {
ServletContext servletContext = (ServletContext) extContext.getContext();
String publicContextPath = servletContext.getInitParameter("publicContextPath");
if (null != publicContextPath)
{
contextPath = publicContextPath;
}
else
{
contextPath = extContext.getRequestContextPath();
}
// Configuration configuration = ((BridgeExternalContext) extContext).getConfiguration();
// contextPath = configuration.getAttribute("publicContextPath", extContext.getRequestContextPath());
if (!contextPath.startsWith("/"))
{
contextPath = "/" + contextPath;
}
if (contextPath.endsWith("/"))
{
contextPath = contextPath.substring(0, contextPath.length() - 1);
}
}
return contextPath;
}
Modified D2DViewHandler.getContextPath method to use the generic ExternalContext instead of the custom Configuration object to read com.icesoft.faces.publicContextPath context parameter.