I dropped a couple lines in the C/P, ammended below
On 6/23/21 1:35 PM, Rob Sargent wrote:
Please provide a list of all the JAR files under WEB-INF/lib in your
WAR file.
+1 and maybe also everything in $CATALINA_BASE/lib as well, just in
case your Tomcat lib directory has had things added.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
If looking for the source(s) of a given class, here's a bash function
function jargrep {
sdir=`pwd`
target=$1
if [[ "$target"x == "x" ]]
then
printf "need at least search value, with optional starting dir\n"
printf "use colon sep'd list for multiple, non-redundant dirs
(eg CLASSPATH)"
return
fi
cdir=`pwd`
finded=
if [ "$2"x != "x" ]
then
cdir=( $(echo "$2" | sed s/:/\ /g) )
fi
for d in ${cdir[@]}; do
cd $d
if [[ $JARGREP_DEBUG ]]; then printf "TOPDIR is now: %s\n" $d; fi
for jlist in `find . -name \*.jar`
do
if [[ $JARGREP_DEBUG ]]; then printf "checking %s/%s for
%s\n" $d $jlist $target; fi
for founds in `jar tf $jlist | grep $1`
do
if [[ $JARGREP_DEBUG ]]; then printf "full founds: %s\n"
"$founds"; fi
printf "Found in %s as %s\n" $jlist ${founds}
finded=1
done
done
cd ..
done
if [ ! $finded ]; then echo "I got nothin' from ${cdir[@]}"; fi
cd $sdir
}
which takes the class name (e.g. ServletContext) and an optional
starting dir (default to .) and scans any found jars for anything
remotely similar.