• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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