Try injecting it this way: @Inject @Named("socialAuth") private SocialAuth socialAuth;
On Wed, Apr 24, 2013 at 1:47 PM, Luca Merolla <luca.mero...@gmail.com>wrote: > H > ello everyone, > > I'm having problem to make socialauth ( > https://code.google.com/p/socialauth/) > work in TomEE. > I'm using the CDI library and I run into an error like this: > > > SEVERE: CDI Beans module deployment failed > javax.enterprise.inject.UnsatisfiedResolutionException: Api type > [org.brickred.socialauth.cdi.SocialAuth] is not found with the qualifiers > Qualifiers: [@javax.enterprise.inject.Default()] > for injection into Field Injection Point, field name : socialauth, Bean > Owner : [UpdateStatus, Name:socialAuthUpdateStatus, WebBeans Type:MANAGED, > API Types:[org.test.UpdateStatus,java.io.Serializable,java.lang.Object], > > Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]] > at > > org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:77) > > I have tried to deploy it both within an EAR folder or as a WAR inside > webapps. I have also tried with TomEE 1.5.1 and the latest 1.5.2. The > latest version is giving the exception while deploying, while 1.5.1 is > "silent" even though it doesn't work either. > > I have made a very basic sample project to test the issue. > Here is the war file: > > http://www.fileconvoy.com/dfl.php?id=g902f5fea97a4c54099927386418af3485c0388d5d > > > And here I have uploaded the source code: > https://gist.github.com/lucamerolla/5453991 > > I haven't tested it yet in 1.6.0-SNAPSHOT but maybe I'm missing something > to run in 1.5.x > > Thanks in advance, > LM >