tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Debraj Mallick <sridebrajmall...@gmail.com>
Subject Re: Javamelody and Struts
Date Mon, 16 Apr 2012 05:02:30 GMT
hi there,

in your web.xml include these

    *<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>*

and

               *<interceptors>
                        <interceptor name="monitoring"
class="net.bull.javamelody.StrutsInterceptor"/>

                        <interceptor-stack name="myStack">
                                <interceptor-ref name="monitoring"/>
                                <interceptor-ref name="defaultStack"/>
                        </interceptor-stack>
                </interceptors>

                <default-interceptor-ref name="myStack"/>*

also put the jar files in your class path.

help link: *
http://code.google.com/p/javamelody/wiki/UserGuide#2._web.xml_file* and *
http://code.google.com/p/javamelody/wiki/UserGuide#12._Struts_2_Actions*


2012/4/16 Miguel González Castaños <miguel_3_gonzalez@yahoo.es>

> Dear all,
>
>  Javamelody is supposedly very easy to install for Tomcat but We do have a
> webapp using the Struts framework and I can't figure out how to configure
> Javamelody or get any error log of what I'm doing wrong. The web.xml
> example in the Javamelody is blocking my webapp to work (we use forwarders).
>
>  Regards,
>
>  Miguel
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<users-unsubscribe@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Thanks & Regards,
Debraj Mallick
9674247281

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message