On Mon, Jul 28, 2008 at 2:36 PM, Zorgan <[EMAIL PROTECTED]> wrote: > I've been using Apache FTP server for a while and it was working perfectly.
That's great to hear, let's get you back to that happy state again :-) > 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 Are you sure you got a complete update from SVN? Looks like you got some old code around. Trunk should contain all the required changes to adapt to the changes in MINA 2.0-M2. > 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. Yeah, we require MINA 2.0. > The server can't be started as stand alone : Exception in thread "main" > java.lang.NoClassDefFoundError: org/apache/ftpserver/main/CommandLine That class has been moved to the deprecated module. See this previous thread the described the change: http://mail-archives.apache.org/mod_mbox/mina-ftpserver-users/200807.mbox/[EMAIL PROTECTED] > The CommandLine.java exists in the sources but it is not compiled! If it's in the core module, that sure looks like you got an incomplete svn update. /niklas
