1

I created Optaplanner project and deploy it to kie execution server using kie-workbench.

Upon making REST call [GET] /containers/{containerId}/solvers, solver list is empty.

{
  "type" : "SUCCESS",
  "msg" : "Solvers list successfully retrieved from container 'org.optaplanner.examples:cloud-balancing:1.0'",
  "result" : {
    "solver-instance-list" : {
      "solver" : [ ]
    }
  }
}

I have created solver configuration file $PROJECT_DIR/src/main/resources/org/optaplanner/examples/cloudbalancing/solver/cloudSolverConfig.solver.xml.

I am using version 6.5.0.final for optaplanner, kie-wb.

Any idea?

Regards, Nick

  • Did you do it like in the optacloud video or like in the course scheduling video? OptaPlanner Execution Server is still young, we made many improvements for 7.0 Beta's already. – Geoffrey De Smet Mar 10 '17 at 07:47
  • I referred to https://www.optaplanner.org/download/releaseNotes/releaseNotes6.4.html. – Wong Liong Hung Mar 11 '17 at 15:37

1 Answers1

1

You need to do a REST call that creates a solver first.

Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
  • I get the following error when making call to create solver: Error creating solver factory for solver: The solverConfigResource (org/optaplanner/examples/cloudbalancing/solver/cloudSolverConfig.solver.xml) does not exist as a classpath resource in the classLoader (org.drools.core.common.ProjectClassLoader@fde99e0). The xml file is under src/main/resources/org/optaplanner/examples/cloudbalancing. – Wong Liong Hung Mar 11 '17 at 15:31
  • For your info, I switched to 7.0Beta6. – Wong Liong Hung Mar 11 '17 at 15:38
  • Lookup the jar that you're trying to deploy in the (local) maven repository. Unzip it and see if you can find `org/optaplanner/examples/cloudbalancing/solver/cloudSolverC‌​onfig.solver.xml` in there. – Geoffrey De Smet Mar 11 '17 at 16:50
  • Yes, the file is there. – Wong Liong Hung Mar 11 '17 at 18:58
  • Thank you for your help. After I added a Process and re-deployed the project, the system started to create tables for the entities. After everything starts to work. – Wong Liong Hung Mar 12 '17 at 02:54