[jboss-dev-forums] [JBoss AS 7 Development] - Servlet IP filter

austin pio do-not-reply at jboss.com
Thu Jun 21 23:14:37 EDT 2012


austin pio [https://community.jboss.org/people/austin.pio] created the discussion

"Servlet IP filter"

To view the discussion, visit: https://community.jboss.org/message/743535#743535

--------------------------------------------------------------
hi i am using jboss as 7.1.1.Final brontes version.

i have a web application deployed and works fine. now i am trying to add IP based filter to restrict access to my application.

this is my web.xml

<filter>
                    <filter-name>RemoteHostFilter</filter-name>
                    <filter-class>org.jboss.remotehostfilter.RemoteHostFilter</filter-class>
                    <init-param>
                              <param-name>deny</param-name>
                              <param-value>*specific ip*</param-value>
                    </init-param>
                    <init-param>
                              <param-name>allow</param-name>
                              <param-value>*specific ip*</param-value>
                    </init-param>
          </filter>
          <filter-mapping>
                    <filter-name>RemoteHostFilter</filter-name>
                    <url-pattern>/*</url-pattern>
          </filter-mapping>

i get a deployment exception stating
Caused by: java.lang.ClassNotFoundException: org.jboss.remotehostfilter.RemoteHostFilter from [Module "deployment.RestSecureWithBasicAuthentication-1.0.0.war:main" from Service Module Loader]
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/743535#743535]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120621/e6fce74f/attachment.html 


More information about the jboss-dev-forums mailing list