[ 
https://issues.apache.org/jira/browse/JAMES-1924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tellier Benoit closed JAMES-1924.
---------------------------------

> Guice : allow injections of JSPF DNSService (SMTP)
> --------------------------------------------------
>
>                 Key: JAMES-1924
>                 URL: https://issues.apache.org/jira/browse/JAMES-1924
>             Project: James Server
>          Issue Type: Improvement
>            Reporter: Tellier Benoit
>
> Reported by Pablo Pita ([~pleira]) in 
> https://github.com/linagora/james-project/issues/605
> Uncommenting the SPFHandler element provided in conf/smtpserver.xml fails in 
> beta5 (and in the current snapshot):
> Caused by: 
>     org.springframework.beans.factory.BeanCreationException: 
>     Error creating bean with name 
> 'org.apache.james.smtpserver.fastfail.SPFHandler': 
> Injection of autowired dependencies failed; 
> nested exception is org.springframework.beans.factory.BeanCreationException: 
> Could not autowire method: public void 
> org.apache.james.smtpserver.fastfail.SPFHandler.setDNSService(org.apache.james.jspf.core.DNSService);
>  
> nested exception is 
> org.springframework.beans.factory.NoSuchBeanDefinitionException: 
>     No qualifying bean of type [org.apache.james.jspf.core.DNSService] found 
> for dependency: 
> expected at least 1 bean which qualifies as autowire candidate for this 
> dependency.
> When I introduced some jars needed for SPF, dnsjava-2.1.1.jar and 
> dnsjnio-1.0.3.jar, still did not work.
> The @Inject setDNSService method in SPFHandler requires a DNSService 
> implementation, but injection of DNSServiceXBillImpl does not succeed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to