We're updating the issue view to help you get more done. 

Injection of OSGi Services not work

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:

1 2 3 4 5 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:

1 2 3 4 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) ...

Environment

Karaf 4.2.5

Status

Assignee

Harald Wellmann

Reporter

Alexander Rotnov

Labels

None

Affects versions

1.1.0
1.0.0
1.1.1

Priority

Major