Fixes for the jpa example to make it work on Karaf 2 and karaf 3