Details
Description
The custom ICEfaces parser is throwing exceptions and logging them as SEVERE when it encounters a DTD that it expects to be cached. The cached versions are specified in our com.icesoft.jasper.Constants class:
/**
* Public Id and the Resource path (of the cached copy) of the DTDs for tag
* library descriptors.
*/
public static final String TAGLIB_DTD_PUBLIC_ID_11 =
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN";
public static final String TAGLIB_DTD_RESOURCE_PATH_11 =
"/com/icesoft/jasper/web-jsptaglibrary_1_1.dtd";
public static final String TAGLIB_DTD_PUBLIC_ID_12 =
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN";
public static final String TAGLIB_DTD_RESOURCE_PATH_12 =
"/com/icesoft/jasper/web-jsptaglibrary_1_2.dtd";
/**
* Public Id and the Resource path (of the cached copy) of the DTDs for web
* application deployment descriptors
*/
public static final String WEBAPP_DTD_PUBLIC_ID_22 =
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN";
public static final String WEBAPP_DTD_RESOURCE_PATH_22 =
"/com/icesoft/jasper/web-app_2_2.dtd";
public static final String WEBAPP_DTD_PUBLIC_ID_23 =
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN";
public static final String WEBAPP_DTD_RESOURCE_PATH_23 =
"/com/icesoft/jasper/web-app_2_3.dtd";
This is done to help ICEfaces run when a network connection is not available (and it tries to get the DTD file). However, we are only including the latest versions in the icefaces.war. If we encounter a DTD for the older versions, the exception is logged as noted.
/**
* Public Id and the Resource path (of the cached copy) of the DTDs for tag
* library descriptors.
*/
public static final String TAGLIB_DTD_PUBLIC_ID_11 =
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN";
public static final String TAGLIB_DTD_RESOURCE_PATH_11 =
"/com/icesoft/jasper/web-jsptaglibrary_1_1.dtd";
public static final String TAGLIB_DTD_PUBLIC_ID_12 =
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN";
public static final String TAGLIB_DTD_RESOURCE_PATH_12 =
"/com/icesoft/jasper/web-jsptaglibrary_1_2.dtd";
/**
* Public Id and the Resource path (of the cached copy) of the DTDs for web
* application deployment descriptors
*/
public static final String WEBAPP_DTD_PUBLIC_ID_22 =
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN";
public static final String WEBAPP_DTD_RESOURCE_PATH_22 =
"/com/icesoft/jasper/web-app_2_2.dtd";
public static final String WEBAPP_DTD_PUBLIC_ID_23 =
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN";
public static final String WEBAPP_DTD_RESOURCE_PATH_23 =
"/com/icesoft/jasper/web-app_2_3.dtd";
This is done to help ICEfaces run when a network connection is not available (and it tries to get the DTD file). However, we are only including the latest versions in the icefaces.war. If we encounter a DTD for the older versions, the exception is logged as noted.
I should also note that the problem doesn't seem to adversely effect the operation of the application.