wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Virtual Directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Virtual Directory" Watch "Virtual Directory" New topic
Author

Virtual Directory

Suresh Kanagalingam
Ranch Hand

Joined: Aug 17, 2001
Posts: 82
Hello,

I need to setup a virtual directory using Tomcat 5. I tried adding context in server.xml in <Tomcat Home>\conf directory, but that does not seem to work. Here is what I have in server.xml file (Running WIN 2003):

<Context path="/download" docBase="E:/reports/download" />

From the page I am refering as http://localhost/download

Can anyone tell me why this is not working.

Yes I restarted Apache services.

Thanks
Suresh
Suresh Kanagalingam
Ranch Hand

Joined: Aug 17, 2001
Posts: 82
Just to clarify more.. This directory will be used to put some files for the users to download from.

Thanks
Suresh
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Apache is running as a Windows service? Then most likely that isn't working because the machine it's running on doesn't have an E: drive. And services don't normally have access to drives that might be mapped when a user logs on to the machine.
Suresh Kanagalingam
Ranch Hand

Joined: Aug 17, 2001
Posts: 82
Hi Paul,

Yes it is running as a service and the machine where Tomcat is running has an 'E' drive (phisical drive and not a mapped drive).

Thanks
Suresh
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Have you checked the log files?
Tomcat will usually whine pretty loudly if it can't start a context specified in server.xml.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Suresh Kanagalingam
Ranch Hand

Joined: Aug 17, 2001
Posts: 82
Yes I checked the log files and there is no reference to any missing or not found context path nor any relevenet information.

Thanks
Suresh
 
 
subject: Virtual Directory
 
Similar Threads
What is Tomcat virtual host, What is different from the Apache Tomcat?
How to map apache to tomcat?
Enable JSP on a user a/c
Apache-Tomcat Integration
problem when setting context in server.xml