Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-62480

Spring Web MVC module that uses PortalDelegateServlet doesn't get initialized correctly

Details

    Description

      Reproduction Steps:

      1. Deploy Marketplace and Web Form portlets
      2. Deploy the attached SpringMVCTest web plugin that depends on Marketplace and Web Form portlets and uses PortalDelegateServlet delegating to Spring's DispatcherServlet.
      3. Visit the link http://localhost:8080/delegate/users/synchronize
        Checkpoint: The plugin deploys correctly and you see the log message:
        Controller executed successfully.
      4. Restart the portal
      5. Visit the link http://localhost:8080/delegate/users/synchronize

      Result:
      Actual: You are redirected to portal welcome page and following appears in log:

      13:42:23,689 WARN  [PageNotFound:1114] No mapping found for HTTP request with URI [/delegate/users/synchronize] in DispatcherServlet with name 'delegate'
      13:42:23,752 WARN  [http-bio-8080-exec-10][code_jsp:130] {code="404", msg="", uri=/delegate/users/synchronize}

      Expected: You see the log message:

      Controller executed successfully.

      Note: As Tomcat's FAQ says: "There is no expected startup order." (http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q27) In my environment the issue was reproducible, because Tomcat tried to deploy SpringMVCTest after Marketplace portlet, but before web-form-portlet. Due to this fact it may be possible that you won't be able to reproduce the issue with the above steps and test portlet.

      Attachments

        1. fix62480.png
          fix62480.png
          3 kB
        2. reproduce62480.png
          reproduce62480.png
          12 kB
        3. SpringMVCTest-web.zip
          5.47 MB
        4. SpringMVCTest-web-7.0.0.1.war
          5.38 MB

        Issue Links

          Activity

            People

              ian.song Ian Song (Inactive)
              istvan.sajtos Istvan Sajtos
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                7 years, 3 weeks, 1 day ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.0 Beta 6