Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

please give me the solution or the approach or way to get solution

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sir,
I developed my application using servlets.
I have two systems connected through LAN.(Aditya,Vijay).The purpose of my application is to read from a file( in Vijay) and write the contents to the database which is on the server.(Aditya system.)But I am running application in Vijay system as shown below:

I am running tomcat server using http://Aditya:8080/ on Vijay system.

I gave the path of the file (for ex :E:\work\word.doc)which is in Vijay system and now I want my application to read the data from the file and insert into the database which is in server(Aditya system).
Its giving the exception "FileNotFoundException". It is not able to identify or access the file?

yours friendly,
aditya makam
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your server is running as a service it cannot see the mapped drive, you will need to refer to the location as a network path eg
\\vijay\share\work\word.doc

Dave
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh, and polease try to make your topics more specific to your problem, it will give you a better chance of getting help.
 
aditya makam
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry Dave,

As I was using servlets,I thought I had to post this query in servlets section.So I have posted that in this section.

Thank you very much
aditya
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I hope this solves your problem. Sorry if my comment was vague, I meant that the topic you posted doesn't give people any idea of the problem. Trying to give a brief but concise description in your topic will increase the number of people reading your poat, and improve your chance of a reply.

Happy computing

Dave
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic