Resolving Dependencies of Deployed Bundles in Apache Karaf
Join the DZone community and get the full member experience.Join For Free
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.
Published at DZone with permission of Shan Arshad, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Microservices Decoded: Unraveling the Benefits, Challenges, and Best Practices for APIs
VPN Architecture for Internal Networks
Design Patterns for Microservices: Ambassador, Anti-Corruption Layer, and Backends for Frontends
How To Check IP Addresses for Known Threats and Tor Exit Node Servers in Java