Steps to reproduce
- Deploy the webapps artefact for WebLogic or Tomcat
- Build the example project attached
- Deploy the plugin WAR deployment to WebLogic or Tomcat
- 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>