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

Cannot login into Cockpit, when providing any moddle extensions in config.js

    Details

      Description

      Steps to reproduce:

      1. Download a Camunda Distribution containing Tomcat
      2. Modify config.js resides in ${PATH_TO_TOMCAT}/webapps/camunda/app/cockpit/scripts, so that it looks like
        window.camCockpitConf = {
          bpmnJs: {
            moddleExtensions: {
              camunda: 'scripts/camunda'
            }
          }
        };
        
      3. Move camunda.json into ${PATH_TO_TOMCAT}/webapps/camunda/app/cockpit/scripts
      4. Start Camunda Distribution
      5. Open in browser http://localhost:8080/camunda/app/cockpit/default/

      Expected Behavior:
      The login page is shown, so that a user can login into Cockpit.

      Observed Behavior:

      • The loading indicator does not go away
      • The following error is shown in the browser console
        Error: [$injector:nomod] Module 'cam.cockpit.custom' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
        http://errors.angularjs.org/1.2.29/$injector/nomod?p0=cam.cockpit.custom
            at deps.js?bust=7.10.0:4780
            at deps.js?bust=7.10.0:6381
            at ensure (deps.js?bust=7.10.0:6305)
            at Object.module (deps.js?bust=7.10.0:6379)
            at camunda-cockpit-bootstrap.js?bust=7.10.0:1
            at Object.execCb (require.js:1690)
            at Module.check (require.js:865)
            at Module.enable (require.js:1177)
            at Module.init (require.js:783)
            at require.js:1453
        check @ require.js:900
        

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              michael.schoettes Michael Schoettes
              Reporter:
              roman.smirnov Smirnov Roman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development