Search code examples
spring-mvcliferayrequestdispatcher

DispatcherPortlet is not collecting data about controllers


i have developed an easy portlet in Liferay. Ive used the Spring MVC template. On my local development (LF 6.2 GA2) the dispatching between "sites" is working. After deployment on the server LF (LF 6.2 GA1) the dispatcher is not dispatching any more to some of the links. LF is forwaring to the "home" page defined in

<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>    
        <init-param>
            <name>view-template</name>
            <value>/jsp/home.jsp</value>
        </init-param>

It seems like the dispatcher was not collection all data from all controllers. Im using the portlet:renderURL method.

And in the controller classes im using the @RenderMapping, @ActionMapping or @ResourceMapping.

My Question: Does anybody have some idea, whats here going on? Is there any possibility to check, whether the dispatcher on the server LF has found all controllers and mapping methods? Is there something what could i do as next?

Thanx you all!


Solution

  • The same problem was here Is this a Bug in Spring 3.1.2 ( specifically Spring Portlet MVC's )? .

    The solution is to use the spring framework version 3.1.4 and more.