Sean Clark wrote:Ok got it, should be / and not /*.
I just created a test app with your settings (apart from the sitemesh filter which I commented out and the listener which I did the same as it expects an applicationContext.xml file).
Sean
Sean Clark wrote:Hey,
The URL pattern for the servlet is still wrong, it should go from the context root (test-app) so it should be /*.
Sean
Sean Clark wrote:Hey,
That shouldn't matter, that's why you have created a viewResolver in your spring configuration and why you have used the <mvc:view-controller /> annotation.
There is however another problem in your configuration that is probably the issue, you have not created Spring's servlet in the web.xml you posted. Therefore Spring will never be initialised.
Sean
Sean Clark wrote:Hey,
You should try...
http://localhost:8080/test-app/index it won't find an index.jsp file if you are only pointing at the root...
Sean