Here I got a problem about getting the org.apache.commons.net.ftp.FTPClient Object.
I used to use Servoy 7.3.1, and get the FTPClient Object by using statment:
var ftp = new Packages.org.apache.commons.net.ftp.FTPClient();
It used to work properly. But After I upgrade the Servoy to 7.4.1, the system returns a cannot found class org.apache.commons.net.ftp.FTPClient Exception.
It seems that the common-net 3.3.jar is not included in the developer, so I copy the common-net 3.3.jar to the application_server/plugins. Then the problem seems be fixed.
However, when I deployed the solution on the Servoy Application Server, even I don’t include the common-net 3.3.jar, although org.apache.commons.net.ftp.FTPClient is available, the version included by the server is earlier than 3.0.
The reason being FTPClient.listDirectories() method doesn’t exist. And based on the apache common-net change log, this function has been added after version 3.0. So It seems that the server does not use the latest version of the common-net.jar.
I tried to put the common-net 3.3.jar to the application_server/plugins again and application_server/lib, it still does not work.
So has anyone faced the same problem before? How can I make the Servoy Applicaiton Server see the common-net 3.3.jar?
Your help is appreciated. Thank you very much, guys.
First of all welcome to the forum, I see it’s your first post
Since you are installing jars on the server already to fix this issue why don’t you install the free FTP plugin from IT2Be instead. As far as I know it does the same and works with the latest Servoy releases.
You can find it at http://www.servoycomponents.com/plugins/ftp.php .
First of all welcome to the forum, I see it’s your first post
Since you are installing jars on the server already to fix this issue why don’t you install the free FTP plugin from IT2Be instead. As far as I know it does the same and works with the latest Servoy releases.
You can find it at http://www.servoycomponents.com/plugins/ftp.php .
Hope this helps.
Thanks for help.
I don’t want to use too much plugins. I fixed the problem in the Servoy developer, but in the Serovy AppServer, the solution doesn’t work.
So, I still want to know how to install jars on the Servoy AppServer.
I think I get a partial solution.
I install the it2be ftp plugin, then the servoy server can see the common-net.jar.
It seems the it2be ftp installation helped me to install the common-net.jar in the app server.
However, I still don’t know how to install external jars by myself.