james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-1924) Guice : allow injections of JSPF DNSService (SMTP)
Date Mon, 06 Feb 2017 07:45:41 GMT
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: 

    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 

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

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

View raw message