Hi!

I've been struggling for over a week with a quite simple problem in 
Dropwizard: I can't get the CDI injections to work in Jersey resources.

No matter what I'm trying to inject and which dependencies I'm using in my 
project, I'm always getting that kind of error in the Dropwizard log:

! org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object 
available for injection at 
SystemInjecteeImpl(requiredType=SomeInjectedBean,parent=SomeJerseyResource,qualifiers={},position=-1,optional=false,self=false,unqualified=null,2059702021)

Currently, I'm using the following dependencies in the compile 
configuration of a Gradle build:

[group: 'io.dropwizard', name: 'dropwizard-core', version: '1.1.0']
[group: 'org.jboss.weld.servlet', name: 'weld-servlet', version: 
'2.4.2.SP1']
[group: 'org.glassfish.jersey.ext.cdi', name: 'jersey-cdi1x', version: 
'2.25.1']
[group: 'org.glassfish.jersey.ext.cdi', name: 'jersey-cdi1x-servlet', 
version: '2.25.1']

>From what I've read in the Jersey documentation, it should be enough to 
make the injections work, but it's definately not working for me.

Has anyone successfuly used CDI injections in Jersey resources with 
Dropwizard 1.1.0?

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to