Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] DoSFilter annotation not found.

Thanks for your reply Jan! 

I've my DoSFiler declared in web.xml as follows

<filter>
        <filter-name>DoSFilter</filter-name>
        <filter-class>org.eclipse.jetty.servlets.DoSFilter</filter-class>
        <init-param>
            <param-name>managedAttr</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>DoSFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

I also have the following section in my web.xml 

<context-param>
        <param-name>org.eclipse.jetty.server.context.ManagedAttributes</param-name>
        <param-value>DoSFilter</param-value>
    </context-param>


The DoSFilter class is new(9.1.0.v20131115) and I believe does have the annotations. Should I be packaging the jetty-servlets.jar  inside my war file or should I enable the 'servlets' module. Actually I've tried both and none work.  

-----Original Message-----
From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Jan Bartel
Sent: Sunday, April 06, 2014 6:13 PM
To: JETTY user mailing list
Subject: Re: [jetty-users] DoSFilter annotation not found.

Chetan,

How are you setting up the DosFilter in standalone mode - declared in web.xml, or declared in a context xml file as a FilterHolder or some other way in some other jetty xml file? Also check that you don't have an older version of the DoSFilter inside your webapp.

Jan

On 6 April 2014 13:23, Singh, Chetan <chetansingh@xxxxxx> wrote:
> I am trying to set up a DoSFilter and configure it using JMX Mbean.
> Everything works fine when I try to do in Embedded jetty. However I 
> want to do it in standalone mode but I get the following log messages
>
>
>
> 2014-04-05 20:18:32.834:DBUG:oejj.MBeanContainer:main: beanAdded 
> o.e.j.w.WebAppContext@ace3c1b{/,file:/tmp/jetty-0.0.0.0-8080-ROOT.war-
> _-any-6506776307143437350.dir/webapp/,STARTING}{/ROOT.war}->org.eclips
> e.jetty.servlets.DoSFilter@6d4d63ba
>
> 2014-04-05 20:18:32.835:DBUG:oejj.ObjectMBean:main: ObjectMbean: 
> mbeanFor org.eclipse.jetty.servlets.DoSFilter@6d4d63ba mClass=class 
> org.eclipse.jetty.jmx.ObjectMBean
>
> 2014-04-05 20:18:32.835:DBUG:oejj.ObjectMBean:main: mbeanFor 
> org.eclipse.jetty.servlets.DoSFilter@6d4d63ba is 
> org.eclipse.jetty.jmx.ObjectMBean@34bb5def
>
> 2014-04-05 20:18:32.835:DBUG:oejj.ObjectMBean:main: No MBean Influence 
> for DoSFilter
>
> 2014-04-05 20:18:32.835:DBUG:oejj.ObjectMBean:main: No MBean Influence 
> for Object
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: No MBean Influence 
> for Filter
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: Influence Count: 3
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: No @ManagedObject 
> declared on class org.eclipse.jetty.servlets.DoSFilter
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: Influenced by:
> org.eclipse.jetty.servlets.DoSFilter
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: Annotations not 
> found
> for: org.eclipse.jetty.servlets.DoSFilter
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: Influenced by:
> java.lang.Object
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: Annotations not 
> found
> for: java.lang.Object
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: Influenced by:
> javax.servlet.Filter
>
> 2014-04-05 20:18:32.836:DBUG:oejj.ObjectMBean:main: Annotations not 
> found
> for: javax.servlet.Filter
>
> 2014-04-05 20:18:32.836:DBUG:oejj.MBeanContainer:main: Registered
> org.eclipse.jetty.servlets:context=ROOT,type=dosfilter,id=0
>
>
>
> The @ManagedObject should be present and I am not sure why jetty can't 
> detect it. Any help will be appreciated.
>
>
>
> Thanks
>
> Chetan
>
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top