• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Opening a FTP connection within Tomcat

G

gordan

Guest
Hi everybody,

I have deployed a web application on Tomcat 5.0.30 that uses jakarta's commons-net ftp client to establish a connection to an outside FTP server. The connection to the FTP server was made but when actual data transsmition occurs the ftp client fails without errors.
Naturally I supposed that there was something wrong with the code, but then I created a test standalone Java application that uses the same module and upon starting it on the server (w/o Tomcat) it worked fine.
Then I tried invoking the same standalone test application from within Tomcat and failed (miserably), which is very confusing since I use the same invocation on certain applications and scripts (FFMPEG, ImageMagick), and they work fine.
Next I tried running the test application through a Pearl script including Sudo for the actual java appl invocation.
Just this minute my colleague tells me that it finally worked.
And now the question:
Is there possibly an easier way to do a simple FTP upload from within a Tomcat 5.0.30 servlet hosted on CentOS4.2 that uses Plesk 8.1?
I can tell you now that all of the above !@#%!^% is not necessary on FC6, Tomcat 5.5 and NO Plesk (any version)
Ostojic Aleksandar
System architect
WhiteCity Soft
 
Unfortunately my colleague was wrong.
I still have a problem with ftp upload.
Any advice would be appreciated.
Thank You
 
Back
Top