Hi,
I am trying to configure router with kie-server and workbench, but its not working. I followed below steps:
Environment:
Node-1, EAP 7.1+ workbench (kie-server.war is not deployed on this node)
Node-2 EAP 7.1 + kie-server.war (kie-server running in unmanaged mode.)
Node-2 Router started through rhpam-7.1-smart-router.jar file.
Steps:
1. First router started with below command:
~~~
java -jar rhpam-7.1-smart-router.jar
~~~
2. Started workbench with below command:
~~~
$JBOSS_HOME/bin/standalone.sh
~~~
3. Started kie-server.war with router property:
~~~
~~~
4. Restarted router with workbench location:
~~~
java -Dorg.kie.server.router.host=10.10.10.10 -Dorg.kie.server.router.port=9000 -Dorg.kie.server.controller=
http://20.20.20.20:8080/business-central/rest/controller -Dorg.kie.server.controller.user=User1 -Dorg.kie.server.controller.pwd=admin12@ -Dorg.kie.server.router.config.watcher.enabled=true -jar rhpam-7.1-smart-router.jar
~~~
When I login into workbench, and try to create container on kie-server.war running on node-2, its not working. In the console I can see below error:
~~~
ERROR [stderr] (Thread-195) Exception in thread "Thread-195" org.kie.server.api.exception.KieServicesHttpException: Unexpected HTTP response code when requesting URI '
http://10.10.10.10:9000/containers'! Error code: 404, message:
ERROR [stderr] (Thread-195) at org.kie.server.client.impl.AbstractKieServicesClientImpl.createExceptionForUnexpectedResponseCode(AbstractKieServicesClientImpl.java:617)
ERROR [stderr] (Thread-195) at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpGetRequestAndCreateServiceResponse(AbstractKieServicesClientImpl.java:191)
ERROR [stderr] (Thread-195) at org.kie.server.client.impl.KieServicesClientImpl.listContainers(KieServicesClientImpl.java:175)
ERROR [stderr] (Thread-195) at org.kie.server.client.impl.KieServicesClientImpl.listContainers(KieServicesClientImpl.java:167)
ERROR [stderr] (Thread-195) at org.kie.server.controller.impl.KieServerInstanceManager.getContainers(KieServerInstanceManager.java:389)
ERROR [stderr] (Thread-195) at org.kie.workbench.common.screens.server.management.backend.runtime.AsyncKieServerInstanceManager.access$701(AsyncKieServerInstanceManager.java:53)
ERROR [stderr] (Thread-195) at org.kie.workbench.common.screens.server.management.backend.runtime.AsyncKieServerInstanceManager$7.run(AsyncKieServerInstanceManager.java:206)
ERROR [stderr] (Thread-195) at org.uberfire.backend.server.cdi.workspace.WorkspaceExecutorService.lambda$generateRunnable$0(WorkspaceExecutorService.java:134)
ERROR [stderr] (Thread-195) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
ERROR [stderr] (Thread-195) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
ERROR [stderr] (Thread-195) at java.lang.Thread.run(Thread.java:745)
~~~
Why there is no documentation on router configuration ? Or I missed it.