Skip to content

Injection of OSGi Services not work [PAXCDI-239] #280

@ops4j-issues

Description

@ops4j-issues

Alexander Rotnov created PAXCDI-239

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)
...

Affects: 1.0.0, 1.1.0, 1.1.1
Votes: 0, Watches: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions