Magnus Jungsbluth opened SPR-9173 and commented
If you enable context:component-scanning from within a OSGi bundle, the Classloader of Spring's Context bundle is used to check if javax.inject.@Named is reachable. This check is always false sinse org.springframework.context does not declare an appropiate Import-Packages statement in META-INF/MANIFEST.MF.
Solution: add javax.inject;resolution:=optional to the manifest and component scanning works in OSGi environments.
Affects: 3.0.6, 3.1 GA