This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Spring and the fly likes Embedding Apache ftpserver into a webapp via Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Embedding Apache ftpserver into a webapp via Spring" Watch "Embedding Apache ftpserver into a webapp via Spring" New topic
Author

Embedding Apache ftpserver into a webapp via Spring

M. Naumeier
Greenhorn

Joined: Feb 17, 2012
Posts: 1
Hi there,

I need an ftp server within my webapp (running on Tomcat), allowing users to upload data files that are imported into the database and then become visible in the webapp immediately.
According to the docs, Apache ftpserver is suitable for that job. And they say it's easily embeddable in any already spring-configured app of any kind.

But ... The embedded ftp server does not bind to the configured port. When trying to connect to it, I get a "Connection refused".

In my webapp's logs, I see a message that the ftpserver has read the SSL keystore and my user.properties. So I know it is loaded at all.

The standalone version of the ftpserver works. It still works when I delete all 3rd party jars that come in the ftpserver download (aopalliance, logging, spring-beans, spring-context, spring-core) and replace them with the corresponding jars (slightly different version numbers) that are used in my webapp. So I know it is not a jar version conflict.

But when I add the config.xml from the working standalone setup to my webapp's spring.xml, all I get is the little log message mentioned above and the "Connection refused" on connect. No further error message.

Dows anybody have an idea what the cause may be ?
Or at least where is a good point to start the investigation ?

Thanks a lot ...
M.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Embedding Apache ftpserver into a webapp via Spring