fixed servlet exception, but having still problems debugging the code and getting logs