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 Failed to map to jsp file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Failed to map to jsp file." Watch "Failed to map to jsp file." New topic
Author

Failed to map to jsp file.

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hi With Spring mvc 3.0.5 and jsp, my DispatcherSerlvet thrown the following exception:



Here is my xml config file:



Controller class:



In my xml config file, when I used "<url-pattern>/abc/*</url-pattern>" mapping, there is no problem until I changed it to "/*", then it failed to map to the correct jsp file.
How can I use /* mapping instead of /abc/*?

I want my website to be browsed as "www.mysite.com" rather than "www.mysite.com/abc/"

Any suggestion is very appreciated
Thanks
Sam
sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
I changed it to <url-pattern>/</url-pattern>, then it works . But my login doesn't work with the following error:

HTTP Status 404 - /j_spring_security_check

type Status report

message /j_spring_security_check

description The requested resource (/j_spring_security_check) is not available.

JBoss Web/7.0.13.Final


This is my secuirty-config.xml file:



controller for handling login:



Looking forward to your suggestion.
Thanks
Sam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Failed to map to jsp file.
 
Similar Threads
Spring configuration file not loaded via the application context but does for the servlet context.
Autowiring Problem - NullPointerException.
Conflict with <mvc:annotation-driven/>
how to initiate hashtable and linklist
RichFaces + Spring Security -- Problem Load RichFaces