Uploaded image for project: 'Pax CDI'
  1. PAXCDI-239

Injection of OSGi Services not work

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 1.0.0, 1.1.0, 1.1.1
    • Fix versions: None
    • Labels:
      None
    • Environment:
      Karaf 4.2.5
    • Sprint:

      Description

      Bug reproduced with sample bundles "pax-cdi-sample1" and "pax-cdi-sample1-web".
      To reproduce get clean Karaf 4.2.5, install required features and sample bundles:

      feature:install pax-http-whiteboard
      feature:install pax-cdi-web-weld-jetty
      feature:install war
      bundle:install -s mvn:org.ops4j.pax.cdi.samples/pax-cdi-sample1/1.1.1
      bundle:install -s mvn:org.ops4j.pax.cdi.samples/pax-cdi-sample1-web/1.1.1
      

      Open URL: http://localhost:8181/sample1/ice
      Result is Error 503 Service Inavailable with message:

      javax.servlet.ServletException: org.eclipse.jetty.servlet.ServletHolder$1: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001408: Unsatisfied dependencies for type IceCreamService with qualifiers @Dynamic @Service @Filter @UniqueIdentifier
        at injection point [BackedAnnotatedField] @Inject @Service @Dynamic @Filter private org.ops4j.pax.cdi.sample1.web.IceCreamServlet.chocolate
        at org.ops4j.pax.cdi.sample1.web.IceCreamServlet.chocolate(IceCreamServlet.java:0)
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              hwellmann Harald Wellmann
              Reporter:
              prog85 Alexander Rotnov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: