Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11787

spring-boot-starter example not working with spring-boot 2.2.5.RELEASE

    • Icon: Bug Report Bug Report
    • Resolution: None
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • spring-boot

      When using the camunda-spring-boot-starter with the spring-boot version 2.2.5.RELEASE
      like described in the examples (need to change the spring.boot.version property to 2.2.5.RELEASE) booting up the application fails with a generic error.

      ***************************
      APPLICATION FAILED TO START
      ***************************
      
      Description:
      
      Field transactionManager in org.camunda.bpm.spring.boot.starter.configuration.impl.DefaultDatasourceConfiguration required a bean of type 'org.springframework.transaction.PlatformTransactionManager' that could not be found.
      
      The injection point has the following annotations:
      	- @org.springframework.beans.factory.annotation.Autowired(required=true)
      
      The following candidates were found but could not be injected:
      	- Bean method 'transactionManager' in 'DataSourceTransactionManagerAutoConfiguration.DataSourceTransactionManagerConfiguration' not loaded because @ConditionalOnSingleCandidate (types: javax.sql.DataSource; SearchStrategy: all) did not find any beans
      
      
      Action:
      
      Consider revisiting the entries above or defining a bean of type 'org.springframework.transaction.PlatformTransactionManager' in your configuration.
      

      This is broken for community and enterprise editions and also for older versions of camunda (e.g. 7.12.0).

        This is the controller panel for Smart Panels app

            [CAM-11787] spring-boot-starter example not working with spring-boot 2.2.5.RELEASE

            Miklas Boskamp created issue -
            Miklas Boskamp made changes -
            Description Original: When using the camunda-spring-boot-starter with the spring-boot version 2.2.5.RELEASE
            like described in the [examples|https://github.com/camunda/camunda-bpm-examples/blob/master/spring-boot-starter/example-webapp/pom.xml] (need to change the spring.boot.version property to 2.2.5.RELEASE) booting up the application fails with a generic error.

            {code}
            ***************************
            APPLICATION FAILED TO START
            ***************************

            Description:

            Field transactionManager in org.camunda.bpm.spring.boot.starter.configuration.impl.DefaultDatasourceConfiguration required a bean of type 'org.springframework.transaction.PlatformTransactionManager' that could not be found.

            The injection point has the following annotations:
            - @org.springframework.beans.factory.annotation.Autowired(required=true)

            The following candidates were found but could not be injected:
            - Bean method 'transactionManager' in 'DataSourceTransactionManagerAutoConfiguration.DataSourceTransactionManagerConfiguration' not loaded because @ConditionalOnSingleCandidate (types: javax.sql.DataSource; SearchStrategy: all) did not find any beans


            Action:

            Consider revisiting the entries above or defining a bean of type 'org.springframework.transaction.PlatformTransactionManager' in your configuration.
            {code}
            This is also broken for older versions of camunda (e.g. 7.12.0).
            New: When using the camunda-spring-boot-starter with the spring-boot version 2.2.5.RELEASE
            like described in the [examples|https://github.com/camunda/camunda-bpm-examples/blob/master/spring-boot-starter/example-webapp-ee/pom.xml] (need to change the spring.boot.version property to 2.2.5.RELEASE) booting up the application fails with a generic error.

            {code}
            ***************************
            APPLICATION FAILED TO START
            ***************************

            Description:

            Field transactionManager in org.camunda.bpm.spring.boot.starter.configuration.impl.DefaultDatasourceConfiguration required a bean of type 'org.springframework.transaction.PlatformTransactionManager' that could not be found.

            The injection point has the following annotations:
            - @org.springframework.beans.factory.annotation.Autowired(required=true)

            The following candidates were found but could not be injected:
            - Bean method 'transactionManager' in 'DataSourceTransactionManagerAutoConfiguration.DataSourceTransactionManagerConfiguration' not loaded because @ConditionalOnSingleCandidate (types: javax.sql.DataSource; SearchStrategy: all) did not find any beans


            Action:

            Consider revisiting the entries above or defining a bean of type 'org.springframework.transaction.PlatformTransactionManager' in your configuration.
            {code}
            This is broken for community and enterprise editions and also for older versions of camunda (e.g. 7.12.0).
            Miklas Boskamp made changes -
            Mentioned Roles
            Miklas Boskamp made changes -
            Mentioned Groups
            Thorben Lindhauer made changes -
            Assignee Original: Thorben Lindhauer [ thorben.lindhauer ] New: Miklas Boskamp [ miklas.boskamp ]
            Thorben Lindhauer made changes -
            Mentioned Roles
            Thorben Lindhauer made changes -
            Mentioned Groups
            Miklas Boskamp made changes -
            Fix Version/s New: 7.12.x [ 15531 ]
            Fix Version/s New: 7.13.0 [ 15532 ]
            Thorben Lindhauer made changes -
            Mentioned Roles
            Thorben Lindhauer made changes -
            Mentioned Groups

              Unassigned Unassigned
              miklas.boskamp Miklas Boskamp
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: