james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Zsilak" <mario.zsi...@inew-cs.com>
Subject SMTP Async I/O - james doesn't start
Date Wed, 13 Jan 2010 14:16:44 GMT
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message