You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2017/02/06 07:45:41 UTC

[jira] [Created] (JAMES-1924) Guice : allow injections of JSPF DNSService (SMTP)

Tellier Benoit created JAMES-1924:
-------------------------------------

             Summary: 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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org