Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Feb 27, 2012 · 0 comments
Assignees
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Feb 27, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants