Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
Thanks for your reply. I have a global web.xml, where the DefaultServlet is mapped. The difference I see is that my static resources are not in the same directory as the host's appBase. Could this be the problem ? How can the static content be served in such a case ? -- View this message in con

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
Following are the answers to your questions : 1) Apache Tomcat/7.0.25 2) The resources reside in a folder inside the base directory 3) The other contexts use relative path to access the static files inside this context In addition to not being able to access the resources from any other context,

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext) tomcat.addContext(null, "", http://tomcat.10.n6.nabble.com/Serving-static-content-using-embedded-tomcat-7-tp4375155p4375268.html Sent from the Tomcat - User mailing list archive at Nabble

Serving static content using embedded tomcat 7

2012-02-07 Thread sanu
Hello, I am working on embedding tomcat 7 into our application. We have a number of web apps and the static content is located in a different directory, common to all webapps. I am not finding a way to serve this static content. Could somebody please help me out. Thanks, Sandhya -- View this me