Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27258

Fix "mongodb" template to include" default"

    XMLWordPrintable

    Details

      Description

      The change introduced by NXP-27080 makes the startup with MongoDB fail if only mongodb is used with the nuxeo.templates property

      nuxeo.templates=mongodb
      

      The exception from the logs is

      Configuration files generation (nuxeo.force.generation=true)...
      Apr 18, 2019 7:52:57 PM freemarker.log._JULLoggerFactory$JULLogger error
      SEVERE: Error executing FreeMarker template
      FreeMarker template error:
      The following has evaluated to null or missing:
      ==> nuxeo.db.driver  [in template "datasources-config.xml.nxftl" at line 7, column 64]
      

      where nuxeo.db.driver property is defined in the "default" template.

      This is because datasources still need SQL-based configuration.

      A workaround is to add default to nuxeo.templates

      nuxeo.templates=default,mongodb

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m