Skip to content

MVC 3 not forwarding "/" path in WebSphere 7 [SPR-7052] #11713

@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 20f4e90

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions