<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 19, 2013 at 6:04 PM, Apostolos Emmanouilidis <span dir="ltr"><<a href="mailto:aemmanou@redhat.com" target="_blank">aemmanou@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
I suppose that this happens because the CDI container cannot find a bean which implements the bean type AuthenticationManager<Developer>. The AuthenticationManagerImpl which is available on classpath, implements the AuthenticationManager<Agent>.<br>
<br>
Ag-Push should deploy without errors when using AuthenticationManager<Agent> at the injection point. <br></div></blockquote><div><br></div><div>yep 'Agent' as the parameterized typed works fine. Using 'Agent' works for me as well (instead of 'requiring' User, SimpleUser or even Developer). </div>
<div><br></div><div><br></div><div>Thanks!</div><div><br></div><div>-M</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="h5">
<br>
On Thu, 2013-09-19 at 16:50 +0200, Matthias Wessendorf wrote:
<blockquote type="CITE">
Hello
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
Looking at the 'AuthenticationEndpoint' I noticed that the "org.jboss.aerogear.security.auth.AuthenticationManager" class ([1]) is used without parameterization:
</blockquote>
<blockquote type="CITE">
<a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/src/main/java/org/jboss/aerogear/unifiedpush/rest/security/AuthenticationEndpoint.java#L41-L42" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/src/main/java/org/jboss/aerogear/unifiedpush/rest/security/AuthenticationEndpoint.java#L41-L42</a>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
This works fine, but I thought to actually apply a type, like:
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
private AuthenticationManager<Developer> authenticationManager;
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
But now I do get a DeploymentException:
</blockquote>
<blockquote type="CITE">
WELD-001408 Unsatisfied dependencies for type [AuthenticationManager<Developer>] with qualifiers [@Default] at injection point [[field] @Inject private org.jboss.aerogear.unifiedpush.rest.security.AuthenticationEndpoint.authenticationManager]
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
I have also changed the parameterized type to be Picketlink's User, but I do get the same (almost the same) DeploymentException:
</blockquote>
<blockquote type="CITE">
WELD-001408 Unsatisfied dependencies for type [AuthenticationManager<User>] with qualifiers [@Default] at injection point [[field] @Inject private org.jboss.aerogear.unifiedpush.rest.security.AuthenticationEndpoint.authenticationManager]
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
Any one knows what I am doing wrong ?
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
Thanks,
</blockquote>
<blockquote type="CITE">
Matthias
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
[1] <a href="https://github.com/aerogear/aerogear-security/blob/master/src/main/java/org/jboss/aerogear/security/auth/AuthenticationManager.java" target="_blank">https://github.com/aerogear/aerogear-security/blob/master/src/main/java/org/jboss/aerogear/security/auth/AuthenticationManager.java</a>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
-- <br>
Matthias Wessendorf <br>
<br>
blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</blockquote>
</div></div><blockquote type="CITE">
<pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>