We have been working with ServiceMix, OSGi, and Spring and have hit a wall. Classes cannot be found and it just seems the entire container is blowing up and we are stuck. Is ServiceMix unstable and buggy and can you help?


Yes we can help you. No, ServiceMix is not buggy at all and is very stable. What you have run into is the “Spring Context reset bug”. You will see this especially with CXF endpoints inside of ServiceMix and just about anything that does anything with Spring outside of normal dependency injection. Savoir has a good formula for how to get around these context resets by manifest entries or moving around dependencies. The bottom line is that Spring does some crazy stuff with its contexts and directly impacts OSGi classloaders which gives you the errors you experience. Savoir can help you with the OSGi recipe to use Spring or we can show you the right way to do dependency injection in an OSGi container with Blueprint.