• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

apache tomcat and ftp ?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm running apache tomcat 6 on windows 7
i was wondering if there is a way so i can run ftp within apache or accessing /webaps throw ftp
so i can update files without redeployment.
if someone have a solution i will be thankfull.
 
Sheriff
Posts: 6914
1314
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Rts Str", please check your private messages regarding an important administrative matter.
 
Saber bellefi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK ! it's done.
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Saber bellefi wrote:i'm running apache tomcat 6 on windows 7
i was wondering if there is a way so i can run ftp within apache or accessing /webaps throw ftp
so i can update files without redeployment.



What files do you want to update?
 
Saber bellefi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i don't know if *.jsp or *.xml is changeable after the server start
but if so, let's take the example of html.
 
Marshal
Posts: 27214
87
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should certainly be able to run an FTP server on the same machine where the Tomcat server is running. I would expect that's quite a common thing to do.
 
Saber bellefi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:You should certainly be able to run an FTP server on the same machine where the Tomcat server is running. I would expect that's quite a common thing to do.



yes it can be done,
but i was asking on how to run a ftp server within apache tamcat.
or if there is a plugin or patch or something like to run tomcat ftp ?
 
Devaka Cooray
Sheriff
Posts: 6914
1314
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you need to do is just install an FTP server and allow access to your web application directory.
You should also aware that changes to some components like Servlets, may require restarting your webapp to reflect the changes.
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's quite possible to run an FTP server inside of Tomcat (Apache has a Java FTP server; that surely can be embedded in a web app). But it's a fundamentally bad idea that you'd be regretting at some point in the future. Why do you want to do it?
 
Saloon Keeper
Posts: 25477
180
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:It's quite possible to run an FTP server inside of Tomcat (Apache has a Java FTP server; that surely can be embedded in a web app). But it's a fundamentally bad idea that you'd be regretting at some point in the future. Why do you want to do it?



Actually, FTP is a distinct tcp/ip protocol and operates on different ports. Switching ports is a relatively minor problem, but protocols are another matter. You'd have to plug in an entirely new engine, since Tomcat's default engine understands only HTTP.

"FTP" downloads from an HTTP server are fairly common these days, but they're not truly FTP and a stand-alone FTP client app couldn't even connect, much less download. What's actually being done is that the FTP download directory is being displayed by an HTTP directory listing application, with a copy-file-to-client component to actually do the transfer. You could do the same for uploads, but that's not very common.
 
Ulf Dittmer
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:

Ulf Dittmer wrote:It's quite possible to run an FTP server inside of Tomcat (Apache has a Java FTP server; that surely can be embedded in a web app).



Actually, FTP is a distinct tcp/ip protocol and operates on different ports. Switching ports is a relatively minor problem, but protocols are another matter. You'd have to plug in an entirely new engine, since Tomcat's default engine understands only HTTP.


What I was getting at is running an FTP server in the same JVM as Tomcat; Tomcat would start it once it's running, but it would have nothing to do with servlet processing. Embeddable FTP servers written in Java exist, so nothing particularly fancy is required.
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic