Add exception on rest request
Make sure that JFile class is loaded
Improve debuging