XMLWordPrintable

      In some environments the dashboard tomcat is not able to start as it reports configuration problems (not finding value of "cache_config_file_path"), allthough path is defined in system.properties:

      /usr/local/tomcat/logs/localhost.2022-01-13.log:

      13-Jan-2022 15:56:41.126 SEVERE [https-jsse-nio-8443-exec-1] org.apache.catalina.core.ApplicationContext.log Servlet.init() for servlet [dispatcher] threw exception
              org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deploymentHandlerClientImpl': Unsatisfied dependency expressed through field 'cloudifyClient'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cloudifyRestClientImpl': Unsatisfied dependency expressed through method 'setCacheManager' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager': Invocation of init method failed; nested exception is java.io.IOException: configure: failed to get value for config property cache_config_file_path
                      at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
      
      

      /opt/logs/dcae/dashboard/error.log:

      2022-01-13T17:04:14.472Z||main|||||org.onap.portalsdk.core.conf.AppConfig|4||| ############################ Logging is started. ############################
      2022-01-13T17:04:14.789Z||main|||||org.onap.portalsdk.core.util.SystemProperties|4||| getProperty: environment is null, should never happen!
      2022-01-13T17:10:11.736Z||https-jsse-nio-8443-exec-6|||||org.onap.portalsdk.core.conf.AppConfig|4||| ############################ Logging is started. ############################
      2022-01-13T17:10:11.793Z||https-jsse-nio-8443-exec-6|||||org.onap.portalsdk.core.util.SystemProperties|4||| getProperty: environment is null, should never happen!
      2022-01-13T17:11:41.493Z||https-jsse-nio-8443-exec-1|||||org.onap.portalsdk.core.conf.AppConfig|4||| ############################ Logging is started. ############################
      2022-01-13T17:11:41.540Z||https-jsse-nio-8443-exec-1|||||org.onap.portalsdk.core.util.SystemProperties|4||| getProperty: environment is null, should never happen!
      2022-01-13T17:13:11.469Z||https-jsse-nio-8443-exec-6|||||org.onap.portalsdk.core.conf.AppConfig|4||| ############################ Logging is started. ############################
      2022-01-13T17:13:11.518Z||https-jsse-nio-8443-exec-6|||||org.onap.portalsdk.core.util.SystemProperties|4||| getProperty: environment is null, should never happen!
      2022-01-13T17:14:41.432Z||https-jsse-nio-8443-exec-1|||||org.onap.portalsdk.core.conf.AppConfig|4||| ############################ Logging is started. ############################
      2022-01-13T17:14:41.473Z||https-jsse-nio-8443-exec-1|||||org.onap.portalsdk.core.util.SystemProperties|4||| getProperty: environment is null, should never happen!
      

       

      webapps/ccsdk-app/WEB-INF/conf/system.properties:

      # OS system.properties
      
      app_display_name = DCAE Dashboard
      
      # Postgres
      db.driver=org.postgresql.Driver
      db.connectionURL=jdbc:postgresql://dcae-dashboard-pg-primary:5432/dashboard_pg_db_common
      db.userName=dashboard_pg_admin
      db.password=Qujk1-GizaReko
      # is the db.password property encrypted?
      db.encrypt_flag=false
      db.hib.dialect=org.hibernate.dialect.PostgreSQLDialect
      hb.dialect=org.hibernate.dialect.PostgreSQLDialect
      
      # Hibernate
      db.min_pool_size = 5
      db.max_pool_size = 10
      hb.show_sql = false
      hb.db_reconnect = true
      hb.idle_connection_test_period = 3600
      
      # Directory with the Quantum.lic file
      files_path = /tmpapplication_user_id           = 30000
      post_default_role_id          = 16
      clustered                     = true
      
      #Enable Fusion Mobile capabilities for the application
      mobile_enable                             = false
      
      # Cache config file is needed on the classpath
      cache_config_file_path        = /WEB-INF/classes/cache.ccf
      cache_switch                  = 1
      cache_load_on_startup         = false
      user_name                                         = fullName
      decryption_key                            = AGLDdG4D04BKm2IxIWEr8o==
      contact_us_link = https://www.onap.org/
      
      # An Unique 128-bit value defined to identify a specific version
      # of an application deployed on a specific virtual machine.
      # This value must be generated and updated by the application
      # which is using the ECOMP SDK at the time of its deployment.
      # Online Unique UUID generator - https://www.uuidgenerator.net/
      # ID generated for DBC to supply to EELF
      # A bogus value is cached in SCM: 12345678-..
      instance_uuid = 12345678-90ab-cdef-1234-567890abcdef
      
      # Application base URL is a proper prefix of the on-boarded URL.
      app_base_url = http://www.oom.onap.org:8080/oom-app-os/
      
      

            vv770d vv770d
            andreasgeissler Andreas Geissler
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: