configtest.sh: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/share/tomcat7/bin/configtest.sh - from package: tomcat7-common
/usr/share/tomcat8/bin/configtest.sh - from package: tomcat8-common

You may install the required package with command apt-get install {package}
Error in other languages:
configtest.sh: bevel nie gevind nie
configtest.sh: comandă negăsită
configtest.sh: comando não encontrado
configtest.sh: commande introuvable
configtest.sh: command not found
configtest.sh: käsku ei ole
configtest.sh: không tìm thấy lệnh
configtest.sh: komanda nerasta
configtest.sh: Kommando nicht gefunden.
configtest.sh: kommandot finns inte
configtest.sh: komut yok
configtest.sh: nie znaleziono polecenia
configtest.sh: níor aimsíodh an t-ordú
configtest.sh: no se encontró la orden
configtest.sh: no s'ha trobat l'ordre
configtest.sh: opdracht niet gevonden
configtest.sh: parancs nem található
configtest.sh: perintah tidak ditemukan
configtest.sh: príkaz nenájdený
configtest.sh: příkaz nenalezen
configtest.sh: команда не найдена
configtest.sh: командата не е открита
configtest.sh: 命令找不到
configtest.sh: コマンドが見つかりません