-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Description
Angel D. Segarra opened SPR-7052 and commented
I am trying to set up a Spring MVC 3 app using tiles and tuckey's urlrewritefilter as done in the petcare sample app.
I have my mvc servlet mapped to /app/* and the following rules in my urlrewrite.xml
<urlrewrite default-match-type="wildcard">
<rule>
<from>/resources/**</from>
<to>/resources/$1</to>
</rule>
<rule>
<from>/**</from>
<to>/app/$1</to>
</rule>
<outbound-rule>
<from>/app/**</from>
<to>/$1</to>
</outbound-rule>
</urlrewrite>
I have the following in my servlet context to map '/' to my default view.
<mvc:view-controller path="/" view-name="home"/>
Now everything works perfect in JBoss 4.2.3, if I visit my app at http://localhost:8080/myapp/ I get my 'home' view.
But if I run it in IBM WAS 7 (my production server) I get:
Code:
org.springframework.web.servlet.DispatcherServlet noHandlerFound No mapping found for HTTP request with URI [/myapp/app/] in DispatcherServlet with name 'dispatcher'
I can only get it to work if I change my forward request to:
Code:
<mvc:view-controller path="/myapp/" view-name="home"/>
I did another test and it if I change the path to
<mvc:view-controller path="/test" view-name="home"/>
then it works.
Seems to me spring is not making the correct maping on Websphere when using "/".
Regards,
Angel
Affects: 3.0.1
Reference URL: http://forum.springsource.org/showthread.php?t=86972
Issue Links:
- @RequestMapping "/" Paths [SPR-7064] #11724
@RequestMapping
"/" Paths - petcare sample not writing form actions correctly on WebSphere 7 [SPR-7067] #11727 petcare sample not writing form actions correctly on WebSphere 7
Referenced from: commits 20f4e90