Hi Suryansh I think you have placed your URLrewrite files in the wrong directory.
They should all be placed within your WEB-INF directory. So say if your web root (the location of the files served by http://localhost:8080) is located at
/var/www/
The XML setting files should be in
/var/www/WEB-INF/
and the urlrewritefilter-4.0.3.jar file in
/var/www/WEB-INF/lib/
The official website has instructions.
http://www.tuckey.org/urlrewrite/#install