Hi all,

I wanted to use the SMTP Async I/O, so I commented the normal smtp stuff and
uncommented "org.apache.james.smtpserver.mina.AsyncSMTPServer" in
spring-beans.xml

Well, start-up fails.

I pin-pointed the issue to
james-server-smtpserver-function/org.apache.james.smtpserver.mina.AsyncSMTPS
erver to the method prepareHandlerChain() (line 197)

I've attached a patch to resolve this issue, however I've no clue if this is
the correct way :)

----------------------------------------------------------------------------
--

### Eclipse Workspace Patch 1.0
#P james-server-smtpserver-function
Index: src/main/java/org/apache/james/smtpserver/mina/AsyncSMTPServer.java
===================================================================
--- src/main/java/org/apache/james/smtpserver/mina/AsyncSMTPServer.java
(revision 898686)
+++ src/main/java/org/apache/james/smtpserver/mina/AsyncSMTPServer.java
(working copy)
@@ -194,7 +194,7 @@
         if (handlerchainConfig.getString("[...@corehandlerspackage]") == null)
             handlerchainConfig.addProperty("[...@corehandlerspackage]",
CoreCmdHandlerLoader.class.getName());
         
-        handlerChain = getLoader().load(ProtocolHandlerChainImpl.class,
getLogger(), handlerConfiguration);
+        handlerChain = getLoader().load(ProtocolHandlerChainImpl.class,
getLogger(), handlerchainConfig);
         handlerChain.configure(handlerchainConfig);
         
     }

----------------------------------------------------------------------------
--


Anyways .. now that Mina is used, he is missing a library
"java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder".
I've used Mina and SLF4J before, so I know that it is not enough to include
"slf4j-api-1.5.2.jar" and "log4j-1.2.14.jar", but it needs also the bridge
(eg.: "slf4j-log4j12-1.5.2.jar").

At least James starts now; tests follow :)

Kind regards,
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to