Сервер Ke не может получить доступ к Kie Workbench через REST API

Я использую kie workbench '6.2' и kie server 'kie-server-7.7.0.Final-ee7'. Оба находятся на 2 разных серверах wildfly. Я начал Kie Workbench как

standalone.bat -Dorg.kie.server.controller=http://localhost:8086/kiewb/rest/controller -Dorg.kie.server.controller.user=admin -Dorg.kie.server.controller.pwd=admin -Dorg.jbpm.server.ext.disabled=true

Я запускаю сервер kie как

standalone.bat -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://localhost:38080/kie-server-7.7.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://localhost:8086/kiewb/rest/controller -Dorg.kie.server.controller.user=admin -Dorg.kie.server.controller.pwd=admin -Dorg.jbpm.server.ext.disabled=true

Получение следующей ошибки

Exception encountered while syncing with controller at
http://localhost:8086/kiewb/rest/controller/server/kie-server error Error while sending PUT request to http://localhost:8086/kiewb/rest/controller/server/kie-server response code 404

И в моем коде Java я называю службу как

 KieServerControllerClient client = KieServerControllerClientFactory.newRestClient("http://localhost:8086/kiewb/rest/controller",
                    "admin", "admin");
final ServerTemplateList serverTemplateList = client.listServerTemplates();
System.out.println(String.format("Found %s server template(s) at controller url: %s",
                serverTemplateList.getServerTemplates().length, "http://localhost:8086/kiewb/rest/controller"));

и получить следующую ошибку

Caused by: javax.ejb.EJBException: org.kie.server.controller.client.exception.KieServerControllerHTTPClientException: Unexpected HTTP response code when requesting URI 'http://localhost:8086/kiewb/rest/controller/management/servers'! Response code: 404 Response message: 
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:190)
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:369)
    at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66)
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.2.0.Final.jar:8.2.0.Final]
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
    at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:160) [wildfly-ee-8.2.0.Final.jar:8.2.0.Final]
... 11 more

`

Что может быть причиной этого? Заранее спасибо.

0 ответов

Другие вопросы по тегам