Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 840783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:40:59+00:00 2026-05-15T05:40:59+00:00

I have developed a java servlet that monitors a folder on a network drive

  • 0

I have developed a java servlet that monitors a folder on a network drive for new files then does some actions on them depending on what kind of file it is. It worked in Eclipse when Eclipse and Tomcat were running with each other, but now that I have deployed it onto a server(different machine), the servlet keeps logging that it cannot find the folder to be mapped. The exact same network drive is mapped, and the folder definitely exists. This problem only occurs when the servlet is run on the server, not on the development machine.

Thanks!

PS:
It is a Windows Server 2003 Enterprise Server with Tomcat v6 installed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:41:00+00:00Added an answer on May 15, 2026 at 5:41 am

    I finally figured it out.

    It turns out that when Tomcat runs it (obviously) is running as a service. The service does not see things the same way as a user does. It turns out that Windows ONLY mounts network drives at the USER level. Therefore, according to the SYSTEM, the drive does NOT exist. The workaround was to use UNC pathnames.

    I tried that originally, but it did not work, and the reason for that was because the service did not have correct permissions.

    Thanks to everyone who helped me.

    http://wiki.apache.org/tomcat/FAQ/Windows#Q7

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a Java program that will count the number of files in
I have developed Java Servlet on Netbeans IDE and now wish to deploy them
I have developed a Java server using Eclipse that accepts TCP socket connection from
I have developed a number of classes which manipulate files in Java. I am
I have developed the following program/architecture: A) A Java servlet receives POST requests, gets
I have developed a simple application such as insertion, updation in jsp,servlet that is
I have developed java application which is actually stored at d drive.I have imported
I have Java webapp that I developed locally with m2eclipse + Jetty + eclipse,
I have developed a servlet that outputs the server.log file of my JBoss 7.1
I have been developed a web application using java servlet at server side and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.