-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Coty,
Post by Coty SutherlandPost by Zari LadakHi All,
I would like to use the
org.apache.catalina.filters.RemoteAddrFilter filter as part of my
web.xml settings. I am just curious to know which jar file has
that class.
You can find which paths are included in which jars from the
build.xml (though it takes a bit of knowledge about what ant is
$ grep RemoteAddrFilter lib/* Binary file lib/catalina.jar matches
I like this little gem:
$ for jar in $CATALINA_HOME/lib/*.jar ;
do echo "$jar" ;
unzip -v "$jar" | grep RemoteAddrFilter" ;
done
This will print a list of all the JARs (I'm sure there is a way to
suppress the ones that don't match) and then, underneath the one that
matches, you'll see the file:
/apache-tomcat-8.0.46/lib/annotations-api.jar
/apache-tomcat-8.0.46/lib/catalina-ant.jar
/apache-tomcat-8.0.46/lib/catalina-ha.jar
/apache-tomcat-8.0.46/lib/catalina-storeconfig.jar
/apache-tomcat-8.0.46/lib/catalina-tribes.jar
/apache-tomcat-8.0.46/lib/catalina.jar
1935 Defl:N 740 62% 08-10-2017 13:11 cf250a0f
org/apache/catalina/filters/RemoteAddrFilter.class
/apache-tomcat-8.0.46/lib/ecj-4.6.3.jar
/apache-tomcat-8.0.46/lib/el-api.jar
...
So you can see that catalina.jar contains the file.
I like this better just in case the filename has been mangled in some
way inside of the JAR file (even though it shouldn't be).
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlqZiE4ACgkQHPApP6U8
pFhIURAAv4Enj7MRHMwS924fy1Me9iPt84bv/51KBt+CM1/Ihj7HX7r9ANRx04J2
p2OJ8TNVeHsDcllUuyaXpP+Sz9DfXct5WENOf6K7Ka+NvrcPSRMGYL3M9kJbwUPj
V/t91W19SzxFK2vX5cKe4mv8X8/oyBUDLYE57XxIJZWlkWuj49sdTngUO5Z/X+as
hK/QkZRkW/0GkMwoDqeITWTYUMIhcSISC6/7QVeNP7k+LS9noWlP57PUsSfY93RU
BeaF5cd2Muq5w5jymEiTy+LICx8FPxpP5WxIDyGsMEY03UNf14WUAPczj/Sbn5hg
tH2SFmiP0i8NbjTeqBjqbcpoHctBn11B1ggu7hk3HCpzw+aHNmZCrOFazWWzyKl6
0iGLOj7h5DKGT7TLbeOVmdB8kxILpmG24yKPKeUNgefVMvrLjIvWZDo3IsHuLp/g
zNj+YDaCQjhIIBQoLCDjHOtPRZR7AfTOG6uxGBgomCabBjl0tLmQwMzmaosdWM0l
b5VPNfhIpnt/PXeJEUF177cgfXPGHRNM+C/hO4MCRIrUeKlYTRQEPoYVmP57AeYq
DNQ3d4yp+krp+7N1fAMXuJ32PHTCdJNeHB8l9BmCNuoNVWrxpMe6rHBGwlCwy+nl
xLLHG+OKXKnIsxzl+nOZYl79UzNMRQFlV1mwV13N8V60o2OT52E=
=OKIw
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org