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

Java plugin mechanism for the welcome app is broken

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Unresolved
    • L3 - Default
    • None
    • 7.13.10, 7.14.4, 7.12.17, 7.15.0
    • webapp

    Description

      Steps to reproduce

      1. Deploy the webapps artefact for WebLogic or Tomcat
      2. Build the example project attached
      3. Deploy the plugin WAR deployment to WebLogic or Tomcat
      4. Open the welcome app

      Expected behavior
      On the welcome dashboard I can see a cat

      Observed behavior

      • The loading spinner of the login screen never ends
      • I can see the following error in the web developer console
        Uncaught Error: Script error for "welcome-plugin-failed-jobs-plugin/plugin"
        https://requirejs.org/docs/errors.html#scripterror
            at makeError (require.js:1)
            at HTMLScriptElement.onScriptError (require.js:1)

      Problem
      The Welcome App REST API is configured incorrectly since the application path is missing

      Impact
      The plugin mechanism for the welcome app is broken which means a user cannot...

      • ...register assets (e. g. a .js file which overrides a frontend plugin endpoint)
      • ...register custom REST API resources
      • ...override resources (e. g. html files loaded in the Welcome App)

      Solution
      Add the servlet configuration for the welcome app REST API to the deployment descriptor web.xml:

      <!-- welcome rest api -->
      <servlet>
        <servlet-name>Welcome Api</servlet-name>
        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
        <init-param>
          <param-name>javax.ws.rs.Application</param-name>
          <param-value>org.camunda.bpm.welcome.impl.web.WelcomeApplication</param-value>
        </init-param>
      </servlet>
      <servlet-mapping>
        <servlet-name>Welcome Api</servlet-name>
        <url-pattern>/api/welcome/*</url-pattern>
      </servlet-mapping>
      

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                tassilo.weidner Tassilo Weidner
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Salesforce