Added .' 2>&1' to the exec command.
Added .' 2>&1' to the exec command.

https://stackoverflow.com/questions/3099617/php-capturing-the-command-output

This allows the errors to be retrieved into the $output array.
cossou/JasperPHP,cossou/JasperPHP,cossou/JasperPHP