Re: Serving static content using embedded tomcat 7

2012-02-09 Thread Pid
On 09/02/2012 06:19, sanu wrote: 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

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Pid
://tomcat.10.n6.nabble.com/Serving-static-content-using-embedded-tomcat-7-tp4375155p4375155.html Sent from the Tomcat - User mailing list archive at Nabble.com. -- [key:62590808] signature.asc Description: OpenPGP digital signature

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
-using-embedded-tomcat-7-tp4375155p4375268.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Mark Thomas
On 08/02/2012 08:40, sanu wrote: Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext) tomcat.addContext(null, , path to the static resource directory); This doesn't seem to work. You haven't told us: - exact Apache Tomcat

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
, I am unable to access the static content directly as well. Gives me a 404. Thanks. -- View this message in context: http://tomcat.10.n6.nabble.com/Serving-static-content-using-embedded-tomcat-7-tp4375155p4375303.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread André Warnier
Sanu, you are wasting our time, and yours. sanu wrote: Following are the answers to your questions : not really 1) Apache Tomcat/7.0.25 this is ok 2) The resources reside in a folder inside the base directory 3) The other contexts use relative path to access the static files inside

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Konstantin Kolinko
2012/2/8 sanu write2s...@gmail.com: Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext)                tomcat.addContext(null, , path to the static resource directory); This doesn't seem to work. (...) I would guess that you have not created nor

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
in context: http://tomcat.10.n6.nabble.com/Serving-static-content-using-embedded-tomcat-7-tp4375155p4378249.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Serving static content using embedded tomcat 7

2012-02-07 Thread sanu
this message in context: http://tomcat.10.n6.nabble.com/Serving-static-content-using-embedded-tomcat-7-tp4375155p4375155.html Sent from the Tomcat - User mailing list archive at Nabble.com.