Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1730

Spring Web Flow dependency conflict with Spring Boot 2.1.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Invalid
    • Affects Version/s: 2.5.1
    • Fix Version/s: None
    • Component/s: None

      Description

      I am unable to use the latest Spring Web Flow with the latest Spring Boot 2.1.0. 

      If I read this correctly, it would look that SWF uses spring-beans-5.0.x while Spring Boot uses version spring-beans-5.1.2 - which seem to have a breaking different that causes a runtime exception, and the application fails on startup.

      Error I have on startup with SWF 2.5.0 and Spring Boot 2.1.0:

      An attempt was made to call the method org.springframework.beans.factory.annotation.AnnotatedBeanDefinition.setRole(I)V but it does not exist. Its class, org.springframework.beans.factory.annotation.AnnotatedBeanDefinition, is available from the following locations:
      
          jar:file:/Users/lorenzo/.m2/repository/org/springframework/spring-beans/5.0.3.RELEASE/spring-beans-5.0.3.RELEASE.jar!/org/springframework/beans/factory/annotation/AnnotatedBeanDefinition.class
      
      It was loaded from the following location:
      
          file:/Users/lorenzo/.m2/repository/org/springframework/spring-beans/5.0.3.RELEASE/spring-beans-5.0.3.RELEASE.jar 

       

      Maven Dependency Tree output

      mvn dependency:tree -Dverbose -Dincludes=org.springframework:spring-beans
      
      +- org.springframework.boot:spring-boot:jar:2.1.0.RELEASE:compile
      [INFO] |  \- org.springframework:spring-context:jar:5.1.2.RELEASE:compile
      [INFO] |     \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for conflict with 5.0.3.RELEASE)
      [INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.1.0.RELEASE:compile
      [INFO] |  +- org.springframework:spring-web:jar:5.1.2.RELEASE:compile
      [INFO] |  |  \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for duplicate)
      [INFO] |  \- org.springframework:spring-webmvc:jar:5.1.2.RELEASE:compile
      [INFO] |     \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for duplicate)
      [INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.1.0.RELEASE:compile
      [INFO] |  +- org.springframework:spring-aop:jar:5.1.2.RELEASE:compile
      [INFO] |  |  \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for duplicate)
      [INFO] |  +- org.springframework.security:spring-security-config:jar:5.1.1.RELEASE:compile
      [INFO] |  |  \- (org.springframework:spring-beans:jar:5.1.1.RELEASE:compile - omitted for conflict with 5.1.2.RELEASE)
      [INFO] |  \- org.springframework.security:spring-security-web:jar:5.1.1.RELEASE:compile
      [INFO] |     \- (org.springframework:spring-beans:jar:5.1.1.RELEASE:compile - omitted for conflict with 5.1.2.RELEASE)
      [INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.1.0.RELEASE:compile
      [INFO] |  +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.1.0.RELEASE:compile
      [INFO] |  |  \- org.springframework:spring-jdbc:jar:5.1.2.RELEASE:compile
      [INFO] |  |     \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for duplicate)
      [INFO] |  \- org.springframework.data:spring-data-jpa:jar:2.1.2.RELEASE:compile
      [INFO] |     +- org.springframework.data:spring-data-commons:jar:2.1.2.RELEASE:compile
      [INFO] |     |  \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for duplicate)
      [INFO] |     +- org.springframework:spring-orm:jar:5.1.2.RELEASE:compile
      [INFO] |     |  \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for duplicate)
      [INFO] |     +- org.springframework:spring-tx:jar:5.1.2.RELEASE:compile
      [INFO] |     |  \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for duplicate)
      [INFO] |     \- (org.springframework:spring-beans:jar:5.1.2.RELEASE:compile - omitted for duplicate)
      [INFO] +- org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:jar:2.1.0.RELEASE:compile
      [INFO] |  \- org.springframework.security.oauth:spring-security-oauth2:jar:2.3.4.RELEASE:compile
      [INFO] |     \- (org.springframework:spring-beans:jar:4.0.9.RELEASE:compile - omitted for conflict with 5.1.2.RELEASE)
      [INFO] +- org.springframework.boot:spring-boot-starter-oauth2-client:jar:2.1.0.RELEASE:compile
      [INFO] |  \- org.springframework.security:spring-security-core:jar:5.1.1.RELEASE:compile
      [INFO] |     \- (org.springframework:spring-beans:jar:5.1.1.RELEASE:compile - omitted for conflict with 5.1.2.RELEASE)
      [INFO] \- org.springframework.webflow:spring-webflow:jar:2.5.0.RELEASE:compile
      [INFO]    +- org.springframework.webflow:spring-binding:jar:2.5.0.RELEASE:compile
      [INFO]    |  \- (org.springframework:spring-beans:jar:5.0.3.RELEASE:compile - omitted for conflict with 5.1.2.RELEASE)
      [INFO]    \- org.springframework:spring-beans:jar:5.0.3.RELEASE:compile 

       

       

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            lofrattini Lorenzo Frattini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: