JBoss Community

Servlet IP filter

created by austin pio in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community