When compiling the reports to pdf, the jasper engine asks for handling datasources - and with this was calling for hibernate.