Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-9173

org.springframework.context misses Import-Package on javax.inject

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.0.6, 3.1 GA
    • Fix Version/s: 3.1.2
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      If you enable <context:component-scanning> from within a OSGi bundle, the Classloader of Spring's Context bundle is used to check if [email protected] 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.

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            mjungsbluth Magnus Jungsbluth
            Last updater:
            Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 40 weeks, 2 days ago