Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2017

Compilation error in Spring Boot business application

    XMLWordPrintable

Details

    • CR1
    • Hide

      0) Follow this document page in "Description" section of this Jira, to build business application in web site https://start.jbpm.org/

      1) Inside https://start.jbpm.org/, choose "Configure your business application", all default setting except for choosing "Enterprise 7.2" as the "Version" value

      2) Download the automatically generated project and extract/unzip locally

      3) Enter "business-application-service" folder and do "chmod +x ./launch.sh" then "./launch.sh clean install"

      4) Get below error:
      --------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project business-application-service: Compilation failure
      [ERROR] /home/path/to/business-application/business-application-service/src/main/java/com/company/service/DefaultWebSecurityConfig.java:[13,51] package org.springframework.security.crypto.factory does not exist
      --------------------------------------------------------

      This seems to be a dependency compatibility issue , the package "org.springframework.security.crypto.factory" belongs to this artifact "spring-security-crypto" https://mvnrepository.com/artifact/org.springframework.security/spring-security-crypto and only added in 5.1+ versions

      However checking "mvn dependency:tree" in "business-application-service" , this artifact is not listed in dependency tree and other "spring-security" artifacts were of version "4.2.5.RELEASE" (pulled in by "spring-boot-starter" version "1.5.12.RELEASE")

      Show
      0) Follow this document page in "Description" section of this Jira, to build business application in web site https://start.jbpm.org/ 1) Inside https://start.jbpm.org/ , choose "Configure your business application", all default setting except for choosing "Enterprise 7.2" as the "Version" value 2) Download the automatically generated project and extract/unzip locally 3) Enter "business-application-service" folder and do "chmod +x ./launch.sh" then "./launch.sh clean install" 4) Get below error: -------------------------------------------------------- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project business-application-service: Compilation failure [ERROR] /home/path/to/business-application/business-application-service/src/main/java/com/company/service/DefaultWebSecurityConfig.java: [13,51] package org.springframework.security.crypto.factory does not exist -------------------------------------------------------- This seems to be a dependency compatibility issue , the package "org.springframework.security.crypto.factory" belongs to this artifact "spring-security-crypto" https://mvnrepository.com/artifact/org.springframework.security/spring-security-crypto and only added in 5.1+ versions However checking "mvn dependency:tree" in "business-application-service" , this artifact is not listed in dependency tree and other "spring-security" artifacts were of version "4.2.5.RELEASE" (pulled in by "spring-boot-starter" version "1.5.12.RELEASE")
    • 2019 Week 20-22

    Description

      While building/creating the Spring Boot "business-application" following the documentation[1], the dependency is broken and the app. doesn't build/compile.

      [1] - https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.2/html/creating_red_hat_process_automation_manager_business_applications_with_spring_boot/bus-app-create_business-applications

      Attachments

        Activity

          People

            elguardian@gmail.com Enrique González Martínez (Inactive)
            rhn-support-lywang Lyle Wang (Inactive)
            Marian Macik Marian Macik
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: