This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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'

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring 3 MVC: No ViewResolver found with url-pattern /*