On Mon, Jan 12, 2015 at 9:55 AM, Srikanth Hugar <srikanth.hu...@gmail.com> wrote:
> Hello, > > I am trying to configure static files with default servlet in tomcat > 8.0.9 but could not succeed. > > My directory structure in deployed webapp is: > > - WEB-INF > - static > -css > -images > -js > - META-INF > > and* web.xml* configuration using default servlet is : > > <!-- static URLs --> > <servlet-mapping> > <servlet-name>default</servlet-name> > <url-pattern>/res/*</url-pattern> > </servlet-mapping> > Have you tried removing this and just accessing your files at /myapp/static/...? > But when i make request from my page with URL it fails with 404. > http://SUB.DOMAIN.COM/myapp/*res/static/*js/imports/jquerymin.js > > What could be the problem? No idea, but you could try one of these steps to debug further. - enable more logging, like for `org.apache.catalina.servlets.DefaultServlet` - step into it with a debugger Dan How can i make it work? > > I tried to find information from web, but could not help. > > Thanks. >