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 Ioan Eugen Stan <st...@gmail.com> on 2013/02/08 10:55:57 UTC

exception importing smtp spring context in spring-server context

Hello,

I'm re-factoring spring-server.xml from server/app to import spring
contexts defined in the modules and I have encountered an issue. When
creating a smtp-server bean via  <import/> I get:

org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'smtpserver': Invocation of init method
failed; nested exception is java.lang.IllegalArgumentException: Passed
in key must select exactly one node: handlerchain
	at org.apache.commons.configuration.HierarchicalConfiguration.configurationAt(HierarchicalConfiguration.java:585)

I think the exception is thrown because the configuration file:
smtpserver.xml 	from protocols/protocols-smtp defines two handlers,
but I'm not sure.

        <handlerchain enableJmx="true">
            <handler
class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
            <handler class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/>
        </handlerchain>

You can checkout the branch I've created and test it on your own [1].

[1] https://github.com/ieugen/james/tree/imports

Cheers,
-- 
Ioan Eugen Stan

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