Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-538

PlanningSolution annotation cannot be found when solver is built from kjar because scanAnnotatedClasses with a classloader without packgeIncludes does not work well

XMLWordPrintable

    • Hide
      1. Unzip repository (cbrepo.zip) and reproducer (planner-wb-test.zip)
      2. Open kie workbench in a browser. (http://localhost:8080/kie-wb)
      3. Open Administration perspective. (Authoring -> Administration).
      4. Clone repository to kie-wb (Repositories -> Clone repository): Repository Name: cbrepo, Org. Unit: demo, Git url: [path to unziped cbrepo]
      5. Open Project Authoring perspective (Authoring -> Project Authoring)
      6. Open cloud-balancing project. (demo -> cbrepo -> cloud-balancing)
      7. Build project. (Open Project Editor -> Build & Deploy)
      8. Run command in planner-wb-test directory: mvn clean install exec:java
      Show
      Unzip repository (cbrepo.zip) and reproducer (planner-wb-test.zip) Open kie workbench in a browser. ( http://localhost:8080/kie-wb ) Open Administration perspective. (Authoring -> Administration). Clone repository to kie-wb (Repositories -> Clone repository): Repository Name: cbrepo, Org. Unit: demo, Git url: [path to unziped cbrepo] Open Project Authoring perspective (Authoring -> Project Authoring) Open cloud-balancing project. (demo -> cbrepo -> cloud-balancing) Build project. (Open Project Editor -> Build & Deploy) Run command in planner-wb-test directory: mvn clean install exec:java
    • NEW
    • NEW

      "java.lang.IllegalStateException: The scanAnnotatedClasses (ScanAnnotatedClassesConfig()) did not find any classes with a PlanningSolution annotation." is thrown when you build solver from kjar.

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            tdavid@redhat.com Tomas David
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: