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:21 am 
Jean-Pierre BergaminFeb 21, 2012 11:59 am 
Violeta GeorgievaFeb 21, 2012 12:21 pm 
Jean-Pierre BergaminFeb 21, 2012 1:41 pm 
Subject:Serving static files directly from filesystem
From:Jean-Pierre Bergamin (jpbe@gmail.com)
Date:Feb 21, 2012 8:04:24 am
List:org.apache.tomcat.users

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 http://th1rty7.blogspot.com/2009/05/tomcat-is-often-considered-to-be-too.html 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="org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve"/>

<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