<!-- SelfDiagnose - Servlet --> <servlet> <servlet-name>SelfDiagnoseServlet</servlet-name> <display-name>SelfDiagnose</display-name> <servlet-class> com.philemonworks.selfdiagnose.SelfDiagnoseServlet </servlet-class> </servlet> <!-- SelfDiagnose - Mapping --> <servlet-mapping> <servlet-name>SelfDiagnoseServlet</servlet-name> <url-pattern>/selfdiagnose/*</url-pattern> </servlet-mapping>
Registration of diagnostic task can be done directly in Java or by configuration in XML. Create the file name selfdiagnose.xml and place it in a source folder (e.g. WebContent) such that this resource can be found on the classpath.
<?xml version="1.0" ?> <selfdiagnose xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://selfdiagnose.sourceforge.net/selfdiagnose-2.4.xsd"> <tasks> <checksystemproperty property="java.version" /> </tasks> </selfdiagnose>