File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring 3 MVC: No ViewResolver found with url-pattern /* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring 3 MVC: No ViewResolver found with url-pattern /*" Watch "Spring 3 MVC: No ViewResolver found with url-pattern /*" New topic
Author

Spring 3 MVC: No ViewResolver found with url-pattern /*

Pete Neu
Ranch Hand

Joined: Feb 18, 2005
Posts: 86
Hi,

I'm trying to do a setup for a very basic webapplication with jboss and spring mvc. The problem is the url-pattern I use:
<url-pattern>/*</url-pattern> this setup won't work because the TestController won't find the right viewResolver. The whole thing works
if I use the this <url-pattern>/*.html</url-pattern> in the web.xml.

Any ideas what's wrong?

web.xml:


springmvc-servlet.xml



TestController.java


Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

How about posting the stacktrace?


Never try to be a hard-worker. Be a smart-worker.
My Blog
Pete Neu
Ranch Hand

Joined: Feb 18, 2005
Posts: 86
30.03.2010 13:25:48 main INFO org.apache.coyote.ajp.AjpProtocol: Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
30.03.2010 13:25:57 org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-4 INFO de.telekom.sen.charityapp.business.job.SystemUpdateJob: Starting SystemUpdateJob ....
30.03.2010 13:26:05 http-127.0.0.1-8080-2 WARN org.springframework.web.servlet.PageNotFound: No mapping found for HTTP request with URI [/xxApp/WEB-INF/jsp/two.jsp] in DispatcherServlet with name 'springmvc'

 
 
subject: Spring 3 MVC: No ViewResolver found with url-pattern /*
 
Similar Threads
localisation problems
Spring MVC dirt-simple app won't work
Spring
[SOLVED] images fail to load in spring2.5/tiles2
Spring MVC problem