tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Serving static content using embedded tomcat 7
Date Wed, 08 Feb 2012 20:25:38 GMT
2012/2/8 sanu <write2sanu@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 mapped the DefaultServlet
instance in your context.

(In standalone Tomcat that mapping is done by conf/web.xml file that
is implicitly combined with every webapp's web.xml file.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message