Menu

JUpload doesn't upload with FTP

realleoman
2010-03-31
2012-09-21
  • realleoman

    realleoman - 2010-03-31

    HI there... I have downloaded the RC2 version and tried on my computer using
    the Jar version that comes into the wwwroot directorty. I have changed the
    postURL parameter to point to an existing FTP server and when I try to upload
    a file to an FTP, the java console shows me the following Java error:

    Exception in thread "wjhk.jupload2.JUploadApplet"
    java.lang.NoClassDefFoundError:
    org/apache/commons/net/ftp/FTPConnectionClosedException
    at wjhk.jupload2.upload.FileUploadManagerThreadImpl.createUploadThread(FileUpl
    oadManagerThreadImpl.java:461)
    at wjhk.jupload2.upload.FileUploadManagerThreadImpl.constructor(FileUploadMana
    gerThreadImpl.java:164)
    at wjhk.jupload2.upload.FileUploadManagerThreadImpl.<init>(FileUploadManagerTh
    readImpl.java:108)
    at wjhk.jupload2.gui.JUploadPanelImpl.doStartUpload(JUploadPanelImpl.java:355)
    at
    wjhk.jupload2.gui.JUploadPanelImpl.actionPerformed(JUploadPanelImpl.java:402) </init>

    The issues is that I have compiled the code in eclipse and it works flawlessly
    when I copy some files and upload it to my FTP server.

    Any advice about it?

    Thanks,
    Leo

     
  • Etienne

    Etienne - 2010-03-31

    Hi,

    When using an FTP URL, you need to add the jakarta-commons-oro.jar and
    jakarta-commons-net.jar jar files in the applet ARCHIVE tag attribute
    (Note 4, in the postURL description)

    Etienne

     
  • realleoman

    realleoman - 2010-03-31

    Than you very much...I appreciate it ..... Is there a way to add this jar
    files into the wjhk.juplad.jar if I compile it by myself using eclipse??

     
  • Etienne

    Etienne - 2010-03-31

    Happy to help...

    Of course you can add the other jar file contents, in the JUpload jar file.

    But nothing for this in the JUpload package. You can change the build.xml
    file.

    But, then, the applet jar file must be fully loaded before it is opened. If
    you have several jar files, they will be loaded when needed.
    An optimisation I could add, would be to have the core applet (what's needed
    to start) on a jar file, and optionnal parts loaded in background just after.
    Noted on my TODO list.

    Etienne

     

Log in to post a comment.

MongoDB Logo MongoDB