wsgen: 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/lib/debug/usr/lib/jvm/java-7-openjdk-amd64/bin/wsgen - from package: openjdk-7-dbg
/usr/lib/jvm/java-7-openjdk-amd64/bin/wsgen - from package: openjdk-7-jdk

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