atom feed5 messages in org.apache.tomcat.usersRe: Serving static files directly fro...
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:Re: Serving static files directly from filesystem
From:Jean-Pierre Bergamin (jpbe@gmail.com)
Date:Feb 21, 2012 11:59:51 am
List:org.apache.tomcat.users

Hello everyone

2012/2/21 Jean-Pierre Bergamin <jpbe@gmail.com>

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:

I just found out why it does not work in my case. Tomcat is running inside the Virgo OSGi container where the documentation [1] states: "The following Tomcat features are not supported: <Context> elements."

So this explains why it is not working as expected.

But thanks for the help anyway.

Best regards, James

[1] http://www.eclipse.org/virgo/documentation/virgo-documentation-3.0.0.x/docs/virgo-programmer-guide/html/ch09s05.html