You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.