Thank you for posting that example of a servlet-context listener-based launcher 
for FTPServer within Spring. I appreciate it.
 
One question:  I imported it into NetBeans, and made the few necessary changes 
(substituting actual values for placeholders in properties, etc...).  After 
that, your example NetBeans project builds and runs. It Does start FtpServer 
(does call its .start() method) when the webapplication is started in Glassfish.
 
However, it no longer accepts any FTP connections at all. I cannot get any FTP 
client to successfully connect to it.  So it can't be used.  Maybe there is 
another step I need to do which wasn't in the post? That's what I'm hoping, 
because this example comes so close.
 
The problem is not failed login, because the USER and the PASS commands never 
get issued to FTPServer. Instead, when the client, at the very first, tries to 
get a connection to talk to the Server, the Server times out. THe client waits 
and waits for a connection so it can send the USER command--but the connection 
is never granted by FTPServer.  
 
I already had an application which gave connections, allowed logins, uploads, 
downloads, all FTP operations. It all worked perfectly in mine--but there was 
one fundamental problem:  it had to be kicked-off (the server started) by 
calling a main() method.  A no-no for a deployed, Spring-based web application. 
In some cases, an impossibility.  So my hope was that your post would solve 
that prob.  It does solve that problem--but unfortunately, no client can 
connect any more.  I've tested in SSL mode AND in basic, NON-SSL mode. Either 
way, the server always times out before returning a connection to the client.
 
Do you know why this could be? Anyone else know?  FtpServer Does start when the 
webapp starts--but it no longer functions (allows connections).
_________________________________________________________________
Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008

Reply via email to