I have made java web application for uploading file in ftp and in the same application user can directly open files in browser. It is running successfully when Filezilla or winscp is opened. After closing filezilla and winscp I can't access or upload files to ftp. Is there any possible solution, that I can access these files from web application without installing external application. I'm using Apache commons.net library for ftp connection.
There is JSch that is a library to access sftp in Java. I have used it before in a project and is relatively straight forward. Probably you will have to work on it to open files in a web application though.
http://www.jcraft.com/jsch/examples/Sftp.java.html
Related
Okay so my problem is that I need to deploy my website from eclipse to an online server which is provided by my university. I've been handled a guide, which suggested that I converted my entire project into a WAR file. The WAR file is placed on my desktop and that particular path is also applied in my Filezilla setup.
The problem is, when I try to run the code through filezilla with the following URL
ftp://Kristian1709tomcat#Kristian1709.tomcat.student.hum.au.dk/webapps/b-exam-ba-newssite.war -
My browser starts downloading the WAR file instead of showing it as a website.
My instructions from my teacher is as followed:
The Host
Kristian1709.tomcat.student.hum.au.dk
Username: Kristian1709#tomcat
Password: *******
Any sort of help will be very welcomed as I have to handle in the entire project for my finally exame tomorrow.
In advance thank you!
FTP stands for File Transfer Protocol, in my experience War files are to be run inside an application server, such as glassfish or tomcat server, and viewed through a browser, not a FTP client
Make sure its hosted within an application server and a change of url should fix your problem.
I have about 4 war files deployed on a glassfish server, that's independent of http and ftp.
go here in your browser Kristian1709.tomcat.student.hum.au.dk
And login/deploy
I am developing web start java application. I need some initial setup files which needs to be transfered from server to client pc and are in .properties file format. I need these files before launching my application. How can I achieve this?
I am creating a desktop application for syncing documents of my site, what should i use to fast transfer of files from client to server and vise-versa apart from using FTP client jar.
I want to get download and upload from a remote windows machine(workgroup,or domain) to my local unix machine.I dont want to use Sftp or FTP server.I also consider the Jcifs(smb) librariy but it only allowing access to shared directories.I want to access any directory with sufficent user permission.How can i do this I think active directory has a capability.
I would just open up a samba share on your unix machine and connect to the share from your windows machine.
Is there any library that supports uploading directory tree in remote server ?
You can always use the org.apache.commons.net.ftp.FTPClient client and recursively upload all files in your directory.
The Apache Virtual File System (VFS) project can do this, whilst abstracting the details of dealing directly with FTP connections.