Fix issues and problems with Karaf