Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2794

Spring Integration WS should depend on spring-webmvc

    Details

      Description

      I am in the process of updating all the SI Samples to the latest RC version. During that process I noticed, that the ws-inbound-gateway sample fails to execute. The Sample complains about:

      java.lang.ClassNotFoundException: org.springframework.web.servlet.FrameworkServlet
      

      It turns out the sample has been working with SI up to 2.0.5.RELEASE. Starting with 2.0.6.RELEASE the sample fails.

      The problem is the following Gradle config:

      compile ("org.springframework.ws:spring-ws-core:$springWsVersion") {
          exclude group: 'org.springframework', module: 'spring-webmvc'
          exclude group: 'org.springframework', module: 'spring-web'
          exclude group: 'org.springframework', module: 'spring-context-support'
      }
      

      These exclusions were added with https://jira.springsource.org/browse/INT-2036 (For 2.1 M1). Around that same time in a separate commit, we added the spring-web dependency: "org.springframework:spring-web:$springVersion".

      https://github.com/SpringSource/spring-integration/commit/9ce8c7b519e18790327244e14906e25c1fd4cf0f

      However, org.springframework.ws.transport.http.MessageDispatcherServlet used by the sample extends org.springframework.web.servlet.FrameworkServlet, which has been part of spring-webmvc-x.x..jar since spring-webmvc-1.0.jar

      Therefore, Spring Integration WS should depend on "spring-webmvc" (instead of spring-web).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hillert Gunnar Hillert
                Reporter:
                hillert Gunnar Hillert
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1h
                  1h