Packaging REST starter as WAR is not working

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Won't Fix
    • Priority: L3 - Default
    • None
    • Affects Version/s: spring-boot 2.3.0-alpha2
    • Component/s: spring-boot
    • None

      1. Create a project containing dependency on camunda-bpm-spring-boot-starter-rest and packaging as WAR (see example project attached)
      2. Build and deploy on Tomcat

      Current result:
      1. Errors in Tomcat log (attached)
      2. REST API is not accessible

      Expected result:
      No error and REST API is working

      Workaround would be to add following bean to the project:

      @Component
      @ApplicationPath("/resources")
      public class RESTConfig extends CamundaJerseyResourceConfig {
      
      }
      

      Also see https://github.com/camunda/camunda-bpm-spring-boot-starter/issues/193
      Possible fix is listed in this comment, but this would make useless CamundaBpmRestJerseyAutoConfiguration class and impossible to configure REST endpoints in another way.

        This is the controller panel for Smart Panels app

          1. CAM-8414-stacktrace.txt
            10 kB
            Svetlana Dorokhova

              Assignee:
              Unassigned
              Reporter:
              Svetlana Dorokhova
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: