Skip to content

org.springframework.context misses Import-Package on javax.inject [SPR-9173] #13811

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions