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

Java plugin mechanism for the welcome app is broken for WebLogic

    Details

    • Type: Bug Report
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: 7.11.0, 7.8.14, 7.9.12, 7.10.6, 7.12.0-alpha1
    • Fix Version/s: 7.12.0
    • Component/s: webapp
    • Labels:

      Description

      Steps to reproduce

      1. Deploy the shared-engine webapps artefact for WebLogic
      2. Build the example project attached
      3. Deploy the WAR deployment to WebLogic
      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>
      

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development