In a project i was working with my team on OSGi project using Apache Karaf. At a time we decided to use hibernate and spring. While doing that i stuck up in an Exception of NoClassDefinitionFound where Hibernate-Annotations bundle couldn’t find a class from Spring-Orm bundle and both of these bundles were deployed and in Active state and added in my project’s class path.
After wandering about a lot on internet i found out a way where we need to resolve the dependencies of dependencies that are deployed in Apache Karaf.
Use this command to resolve the external dependencies of already deployed bundles.
Restart the karaf and that bundle will come up in Active state.