Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1702

NoSuchBeanDefinitionException when running Core in standalone mode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • 3.0.0-M1
    • None
    • core
    • None
    • Rocky8.6, Java-11.0.16.1, Postgres server 14.5

    Description

      Unable to run a Syncope core (built from Maven Archetype 3.0.0-M1) in standalone mode:

       

      Field serviceOps in org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStartStop required a bean of type 'org.apache.syncope.common.keymaster.client.api.ServiceOps' that could not be found.

       

      Here are steps to reproduce this:

      • create new project from Maven archetype
      • disable the SRA module (https://issues.apache.org/jira/projects/SYNCOPE/issues/SYNCOPE-1701)
      • add postgres driver dependency in core/pom.xml
      • add "postgres" as spring profile in core/src/main/resources/core.properties
        spring.profiles.include[0]=postgres
      • create file core/src/main/resources/core-postgres.properties as explained at https://syncope.apache.org/docs/3.0/reference-guide.html#postgresql
      • build with 
        mvn -P executable clean verify -Dconf.directory=/opt/syncope3/conf -Dbundles.directory=/opt/syncope3/bundles -Dlog.directory=/opt/syncope3/log
      • deploy with
        cp core/target/syncope.war /opt/syncope3/lib/
        cp core/target/classes/*properties /opt/syncope3/conf
      • start with
        export LOADER_PATH=/opt/syncope3/conf,/opt/syncope3/lib
        java -jar /opt/syncope3/lib/syncope.war

       

      Attachments

        Activity

          People

            ilgrosso Francesco Chicchiriccò
            lschwarz Lionel Schwarz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: