You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zari Ladak <za...@gmail.com> on 2018/03/01 20:35:21 UTC

where to find org.apache.catalina.filters.RemoteAddrFilter?

Hi 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.

Please let me know
Thanks,
Zari

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: where to find org.apache.catalina.filters.RemoteAddrFilter?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Coty,

On 3/1/18 3:43 PM, Coty Sutherland wrote:
> On Thu, Mar 1, 2018 at 3:35 PM, Zari Ladak <za...@gmail.com>
> wrote:
>> Hi 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
> doing), or a quick grep on the jar files in lib:
> 
> $ 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: where to find org.apache.catalina.filters.RemoteAddrFilter?

Posted by Zari Ladak <za...@gmail.com>.
Thanks ... I am using windows machine ... I tried another editor did
not work so I switched JAD java decompiler... I just needed to open
the core tomcat zip file and then I could see and search all classes
in it.



On Thu, Mar 1, 2018 at 12:43 PM, Coty Sutherland <cs...@apache.org> wrote:
> On Thu, Mar 1, 2018 at 3:35 PM, Zari Ladak <za...@gmail.com> wrote:
>> Hi 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 doing), or a
> quick grep on the jar files in lib:
>
> $ grep RemoteAddrFilter lib/*
> Binary file lib/catalina.jar matches
>
>> Please let me know
>> Thanks,
>> Zari
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: where to find org.apache.catalina.filters.RemoteAddrFilter?

Posted by Coty Sutherland <cs...@apache.org>.
On Thu, Mar 1, 2018 at 3:35 PM, Zari Ladak <za...@gmail.com> wrote:
> Hi 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 doing), or a
quick grep on the jar files in lib:

$ grep RemoteAddrFilter lib/*
Binary file lib/catalina.jar matches

> Please let me know
> Thanks,
> Zari
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org