atom feed5 messages in org.apache.tomcat.usersServing static files directly from fi...
FromSent OnAttachments
Jean-Pierre BergaminFeb 21, 2012 8:04 am 
Christopher SchultzFeb 21, 2012 9:22 am 
Jean-Pierre BergaminFeb 21, 2012 12:00 pm 
Violeta GeorgievaFeb 21, 2012 12:22 pm 
Jean-Pierre BergaminFeb 21, 2012 1:41 pm 
Subject:Serving static files directly from filesystem
From:Jean-Pierre Bergamin (
Date:Feb 21, 2012 8:04:47 am

Hello tomcat users

I'm trying to configure tomcat 7 on Windows to serve static files. During development I want to have uncompresses javascript files delivered directly from the file system. I followed this blog post and configured a context in the server.xml file like:

<Host name="localhost" appBase="webapps" unpackWARs="false" autoDeploy="false" deployOnStartup="false" createDirs="false"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="serviceability/logs/access" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> <Valve className=""/>

<Context docBase="D:/Downloads/dojo-release-1.7.1-src" path="/dojo/1.7.1" /> </Host>

When I try to load a file i.e. with http://localhost:8080/dojo/1.7.1/dojo/dojo.js I get a 404. Any ideas what I am missing? What could be a way to debug this?

Best regards, James