All Servlet Containers have built-in support for web security layer.you should go through your Jrun server documentations on how todeploy a sample security module on it. ( Jboss, and Tomcat has theirxml based configurations. )