Hi,
I've been using Apache FTP server for a while and it was working perfectly.
Last week I did an update to try the newest version withe the MINA code.
Embedding the server was straightforward.
But I got this error when the server was started from my code :
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
org/apache/mina/common/IoSession
at
org.apache.ftpserver.DefaultCommandFactory.<clinit>(DefaultCommandFactory.java:132)
at
org.apache.ftpserver.DefaultFtpServerContext.<init>(DefaultFtpServerContext.java:97)
at
org.apache.ftpserver.DefaultFtpServerContext.<init>(DefaultFtpServerContext.java:77)
The server I downloaded contained this version of mina core :
mina-core-2.0.0-M2
The IoSession class is located in org/apache/mina/core/session
I found that the 1.1.7 version of mina contains the IoSession class under
this package : org/apache/mina/common
I added it to the classpath, the server is started but I can not connect to
it : connection closed by the server.
The server can't be started as stand alone : Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/ftpserver/main/CommandLine
The CommandLine.java exists in the sources but it is not compiled!
:-/