Cannot reference process application provided classes inside a Groovy Script

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.4.0, 7.3.3, 7.2.7, 7.4.0-alpha2
    • Affects Version/s: None
    • Component/s: engine
    • None

      Reproduce steps:
      Simple Servlet or EJB process application bundled as WAR file with a dependent JAR bundled in the WAR with the application (maven-managed dependencies). JavaDelegate can refer to classes in bundled JAR but groovy script task can not find classes in bundled JAR.

      Problem:

      Script task throws exception as it can not find referenced class in dependent JAR

      Expected behavior:

      Script task should be able to refer to classes in dependent library JAR, as the JavaDelegate does

      Hints (optional):
      I began this exploration on the camunda-bpm-users google group and have had several exchanges with Daniel Meyer already. Link here: https://groups.google.com/forum/#!topic/camunda-bpm-users/TrZas5rtRco

      Two workarounds for this issue are to either put the dependent JAR in the lib/ext directory of my WAS app server, or to explicitly load the required class from my groovy script. Neither of these solutions is ideal and Daniel suggested filing a bug report

        This is the controller panel for Smart Panels app

              Assignee:
              Thorben Lindhauer
              Reporter:
              Bryan Evans
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: