I'm at the end of my rope on this one. I'm try to get a super simple webapp up and I can't seem to get tomcat to not 404 static files.
- I'm using the gradle tomcat plugin with tomcat version 7.0.39
- My html file is at
hey-world/src/main/webapp/index.html
My
web.xml
looks like this:<servlet> <servlet-name>Resteasy</servlet-name> <servlet-class> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher </servlet-class> <init-param> <param-name>javax.ws.rs.Application</param-name> <param-value>HeyWorldApplication</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/static/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Resteasy</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
So I thought this setup would map localhost:8080/hey-world/static/index.html
to the file, but it 404's everytime. Is this a problem with some convention in the gradle tomcat plugin?