Details
Description
After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
package org.cxz.mina;
import org.apache.ftpserver.FtpServer;
import org.apache.ftpserver.FtpServerFactory;
import org.apache.ftpserver.ftplet.FtpException;
public class FtpSvrMgr {
public static void main(String[] args) throws FtpException
}
Exceptions:
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)