réaliser les points 1 et 2 de la doc ci-dessus:
[root@cas3 tmp]# wget http://javamelody.googlecode.com/files/javamelody-1.31.0.jar [root@cas3 tmp]# wget http://javamelody.googlecode.com/files/jrobin-1.5.9.jar [root@cas3 tmp]# cp javamelody-1.31.0.jar jrobin-1.5.9.jar /var/lib/tomcat6/webapps/cas/WEB-INF/lib/
ajouter un filtre sur le mot clé “monitoring” :
[root@cas3 tmp]# vim /var/lib/tomcat6/webapps/cas/WEB-INF/web.xml
...
<filter-mapping>
<filter-name>CAS Client Info Logging Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Javamelody -->
<filter>
<filter-name>monitoring</filter-name>
<filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>monitoring</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>net.bull.javamelody.SessionListener</listener-class>
</listener>
<!--
- Configures Log4J for this web app.
- As this context specifies a context-param "log4jConfigLocation", its file path
....