FtpServer
  1. FtpServer
  2. FTPSERVER-196

Add an example of FTPserver deployed to an application server.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-M4
    • Component/s: Server
    • Labels:
      None

      Description

      An example should be added where FtpServer is deployed to an application server.
      Easiest way I can see:

      • Deploy a web application containing Ftpserver Jars in WEB-INF/lib
      • Configure a Listener in this application which will instantiate FtpServer and call the start() or stop() methods as adequate.

      An example is provided!

        Activity

        David Latorre created issue -
        Hide
        David Latorre added a comment -

        Netbeans sample project on how to deploy FtpServer to an application server. It is easy enough to create an Eclipse project with these files (you just copy the contents of 'src/java' directory into Eclipse's source root and web.xml to WEB-INF/web.xml.

        Although I tested it with Glassfish, it should work on most application servers or Servlet containers. Actually, it seems that a bug on Glassfish 2 (according to MINA guys) could prevent FtpServer from running on Windows machines. But it is working perfectly on our linux servers.

        src/java/ftpd-typical.xml should be edited to point to the appropiate keystore and user.properties files ( in resources/ users.properties there's an example of a user.properties files included in the source of Ftpserver core).

        Show
        David Latorre added a comment - Netbeans sample project on how to deploy FtpServer to an application server. It is easy enough to create an Eclipse project with these files (you just copy the contents of 'src/java' directory into Eclipse's source root and web.xml to WEB-INF/web.xml. Although I tested it with Glassfish, it should work on most application servers or Servlet containers. Actually, it seems that a bug on Glassfish 2 (according to MINA guys) could prevent FtpServer from running on Windows machines. But it is working perfectly on our linux servers. src/java/ftpd-typical.xml should be edited to point to the appropiate keystore and user.properties files ( in resources/ users.properties there's an example of a user.properties files included in the source of Ftpserver core).
        David Latorre made changes -
        Field Original Value New Value
        Attachment ftpserver_in_a_War_Application.zip [ 12392236 ]
        Hide
        Niklas Gustavsson added a comment -

        Thanks a lot! I've merged this with an example I had a commited it in revision 706396.

        Show
        Niklas Gustavsson added a comment - Thanks a lot! I've merged this with an example I had a commited it in revision 706396.
        Niklas Gustavsson made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Assignee Niklas Gustavsson [ niklas ]
        Fix Version/s 1.0-M4 [ 12313395 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        4d 9h 59m 1 Niklas Gustavsson 20/Oct/08 21:12

          People

          • Assignee:
            Niklas Gustavsson
            Reporter:
            David Latorre
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development