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&...]