Connectivity between Workbench and Kie Server

8,639 views
Skip to first unread message

Steve

unread,
Nov 11, 2015, 11:02:03 AM11/11/15
to Drools Setup
We have two servers:

Wildfly 8.2.1.Final with Drools Workbench 6.3.0.Final

I'm having an issue on the end point is not appearing in Workbench although connectivity all seems to be working... when running the starting the application I'm using the following commands

./bin/standalone.sh -c standalone-full.xml -bmanagement=10.107.2.91:9990 -Dorg.kie.server.user=ks-user -Dorg.kie.server.pwd=Password1!


Wildfly 8.2.1.Final with Kie Server 6.3.0.Final


./bin/standalone.sh -bmanagement=10.90.50.23  -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller

We get this error:


15:15:26,947 WARN  [org.kie.server.services.impl.controller.DefaultRestControllerImpl] (KieServer-ControllerConnect) Exception encountered while syncing with controller at http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller/server/kie-server error Error while sending PUT request to http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller/server/kie-server response code 401



Maciej Swiderski

unread,
Nov 11, 2015, 3:22:27 PM11/11/15
to drools...@googlegroups.com
Make sure you have properly defined user and password for kieserver on workbench as it clearly cannot be authenticated. 

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/2b5b26de-dca8-4b72-a6e3-f89d5e5dda45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve

unread,
Nov 20, 2015, 7:55:37 AM11/20/15
to Drools Setup
thanks you were right and this was sorted.... The issue I'm having now is it appears by the Drools Workbench I've successfully deployed my Dummy Application


does this appear correct to you? I'm not 100% sure it should be showing the endpoint on localhost? When I try and see the container via the URL I see they've failed:


The error I see in the server.log in Wildfly is:


 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'Dummy' for module 'demo:DummyApplication:1.0': java.lang.RuntimeException: Cannot find KieModule: demo:DummyApplication:1.0


and looking in the /.m2/repository/demo/DummyApplication/1.0 directory structure I don't see the module at all... Any ideas, I'm a bit lost of this one?

Maciej Swiderski

unread,
Nov 23, 2015, 4:00:26 AM11/23/15
to drools...@googlegroups.com
Steve,

this looks bit weird to me as you have different urls in there. The url you set in org.kie.server.location should the real URL that your kie server will be available at. If you give there localhost it will register itself as localhost

next, when it comes to failed initialization it most likely means project you built in workbench cannot be found be kie server as it resides on another machine. So you need to configure maven on  kie server to use workbench as it's repository. See this section it docs to understand how to do it -

Settings.xml and Remote Repository Setup:

http://docs.jboss.org/drools/release/6.3.0.Final/drools-docs/html/ch04.html#KIEDeployingSection

Maciej


Steve

unread,
Nov 23, 2015, 11:48:30 AM11/23/15
to Drools Setup
Thanks Maciej. 

I've configured the Kie Server now to point at the maven repository on the Workbench server... I got a few issues and noticed you'd recommended some fixes on another thread which I've implemented but I'm still seeing issues.

I've made the following changes

/domain/configuration/hosts.xml:

<property name="kie.maven.settings.custom" value="$M2_HOME" />


/usr/share/maven/conf/settings.xml


<servers>

<server>

     <id>jbpm-playground</id>

      <username>kb-user</username>

      <password>Password1!</password>

      <configuration>

        <wagonProvider>httpclient</wagonProvider>

        <httpConfiguration>

          <all>

            <usePreemptive>true</usePreemptive>

          </all>

        </httpConfiguration>

      </configuration>

    </server>

</servers>


 <profiles>

  <profile>

     <id>jbpm-playground</id>

     <activation>

       <activeByDefault>true</activeByDefault>

     </activation>

     <repositories>

       <repository>

         <id>jbpm-playground</id>

         <name>Drools Workbench</name>

         <url>http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/maven2wb</url>

       </repository>

     </repositories>

   </profile>

  </profiles>


I have added the following code but feel it's redundant:


  <activeProfiles>

   <activeProfile>jbpm-playground</activeProfile>

 </activeProfiles>


To start Wildfly 8.2.1.Final and Kie Server 6.3.0.Final


./standalone.sh -bmanagement=10.90.50.23 -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller -Dorg.kie.server.controller.user=kb-user -Dorg.kie.server.controller.pwd=Password1! -Dorg.jbpm.server.ext.disabled=true


I get the following error:


16:26:39,859 WARN  [org.kie.scanner.embedder.MavenSettings] (EJB default - 1) Environment variable M2_HOME is not set

16:26:40,131 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Deploying javax.ws.rs.core.Application: class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,133 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerRestImpl from Application class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,133 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerResource from Application class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,134 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Adding singleton resource org.kie.server.remote.rest.drools.CommandResource from Application class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,134 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Adding provider singleton org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider from Application class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,226 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017534: Registered web context: /kie-server-6.3.0.Final-ee7

16:26:40,281 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "kie-server-6.3.0.Final-ee7.war" (runtime-name : "kie-server-6.3.0.Final-ee7.war")

16:26:40,310 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.90.50.23:9990/management

16:26:40,310 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.90.50.23:9990

16:26:40,314 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.1.Final "Tweek" started in 9279ms - Started 406 of 458 services (106 services are lazy, passive or on-demand)

16:26:40,370 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: com.sky.sms:SMSTest:1.0

16:26:40,434 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: com.sky.sms:SMSTest:pom:1.0

16:26:40,435 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'sms' for module 'com.dummy.sms:SMSTest:1.0': java.lang.RuntimeException: Cannot find KieModule: com.dummy.sms:SMSTest:1.0


I clearly see that it's reporting $M2_HOME is not set and this is causing the issue of the modules not being found. When I print the environment variables of the machine I see M2_HOME=/usr/share/maven


I'm sure I've missed something simple, any ideas? Thanks in advance.

Maciej Swiderski

unread,
Nov 23, 2015, 11:55:49 AM11/23/15
to drools...@googlegroups.com
you should add following property to startup command of the kie server wildfly instance:
-Dkie.maven.settings.custom=/usr/share/maven/conf/settings.xml

and that should do the trick

Maciej

Steve

unread,
Nov 23, 2015, 12:10:00 PM11/23/15
to Drools Setup
Thanks for the quick reply... unfortunately that didn't work.

I ran with this command:

./standalone.sh -bmanagement=10.90.50.23 -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller -Dorg.kie.server.controller.user=kb-user -Dorg.kie.server.controller.pwd=Password1! -Dorg.jbpm.server.ext.disabled=true -Dkie.maven.settings.custom=/usr/share/maven/conf/settings.xml


and this is the output:

ie-server'name='kie-server'version='6.3.0.Final'location='http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server'}'

17:07:09,395 WARN  [org.kie.scanner.embedder.MavenSettings] (EJB default - 1) Environment variable M2_HOME is not set

17:07:09,696 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Deploying javax.ws.rs.core.Application: class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,698 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerRestImpl from Application class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,698 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerResource from Application class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,699 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.drools.CommandResource from Application class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,700 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding provider singleton org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider from Application class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,795 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /kie-server-6.3.0.Final-ee7

17:07:09,847 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "kie-server-6.3.0.Final-ee7.war" (runtime-name : "kie-server-6.3.0.Final-ee7.war")

17:07:09,871 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.90.50.23:9990/management

17:07:09,871 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.90.50.23:9990

17:07:09,872 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.1.Final "Tweek" started in 9304ms - Started 406 of 458 services (106 services are lazy, passive or on-demand)

17:07:09,985 WARN  [org.eclipse.aether.internal.impl.WarnChecksumPolicy] (EJB default - 1) Could not validate integrity of download from http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/maven2wb/com/dummy/sms/SMSTest/1.0/SMSTest-1.0.jar: Checksum validation failed, expected <!DOCTYPE but is e7afd2e2c208445f7eed4f63758ad303766dfd5d

17:07:09,991 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'sms' for module 'com.dummy.sms:SMSTest:1.0': java.lang.RuntimeException: Cannot find KieModule: com.dummy.sms:SMSTest:1.0

Maciej Swiderski

unread,
Nov 23, 2015, 12:17:26 PM11/23/15
to drools...@googlegroups.com
this is now the problem:
17:07:09,985 WARN  [org.eclipse.aether.internal.impl.WarnChecksumPolicy] (EJB default - 1) Could not validate integrity of download from http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/maven2wb/com/dummy/sms/SMSTest/1.0/SMSTest-1.0.jar: Checksum validation failed, expected <!DOCTYPE but is e7afd2e2c208445f7eed4f63758ad303766dfd5d

since this is difficult to say what it returns you might want to see the maven reference page about checksum policy settings: https://maven.apache.org/settings.html
check if the file was downloaded at all to the kie server server

integration between kie server and workbench works as expected (when you compare with previous logs where it couldn’t find the artifact at all).

Maciej

Steve

unread,
Nov 24, 2015, 5:34:37 AM11/24/15
to Drools Setup
thanks, I've implemented a warning on checksum policy now... Still appear to have the issue in the module not being found and it doesn't appear on the Kie Server? Also I still see the issue which I've highlighted in blue of M2_HOME not being set, it clearly is when I printenv

09:57:04,304 INFO  [org.kie.server.services.impl.storage.KieServerState] (MSC service thread 1-8) Added default controller located at http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller

09:57:04,329 INFO  [org.kie.server.services.impl.KieServerImpl] (MSC service thread 1-8) Server Default Extension has been successfully registered as server extension

09:57:04,330 INFO  [org.kie.server.services.impl.KieServerImpl] (MSC service thread 1-8) Drools KIE Server extension has been successfully registered as server extension

09:57:04,569 INFO  [org.kie.server.services.Bootstrap] (MSC service thread 1-8) KieServer (id kie-server) started successfully

09:57:04,574 INFO  [org.kie.server.services.impl.ContainerManager] (EJB default - 1) About to install containers '[KieContainerResource [containerId=demo, releaseId=com.sky.sms:SMSTest:1.0, resolvedReleaseId=null, status=STARTED]]' on kie server 'KieServer{id='kie-server'name='kie-server'version='6.3.0.Final'location='http://10.90.50.23/kie-server-6.3.0.Final-ee7/services/rest/server'}'

09:57:04,590 WARN  [org.kie.scanner.embedder.MavenSettings] (EJB default - 1) Environment variable M2_HOME is not set

09:57:04,761 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'demo' for module 'com.sky.sms:SMSTest:1.0': java.lang.RuntimeException: Cannot find KieModule: com.sky.sms:SMSTest:1.0

at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:117) [drools-compiler-6.3.0.Final.jar:6.3.0.Final]

at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:111) [drools-compiler-6.3.0.Final.jar:6.3.0.Final]

at org.kie.server.services.impl.KieServerImpl.createContainer(KieServerImpl.java:214) [kie-server-services-common-6.3.0.Final.jar:6.3.0.Final]

at org.kie.server.services.impl.ContainerManager.installContainers(ContainerManager.java:39) [kie-server-services-common-6.3.0.Final.jar:6.3.0.Final]

at org.kie.server.jms.ContainerManagerEJB.installContainers(ContainerManagerEJB.java:38) [kie-server-jms-6.3.0.Final.jar:6.3.0.Final]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_85]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_85]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_85]

at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_85]

at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

at org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:104) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:104) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.as.ejb3.tx.BMTInterceptor.processInvocation(BMTInterceptor.java:56) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) [weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]

at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:52) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)

at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)

at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.LogDiagnosticContextRecoveryInterceptor.processInvocation(LogDiagnosticContextRecoveryInterceptor.java:79) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.AsyncFutureInterceptorFactory$1$2.runInvocation(AsyncFutureInterceptorFactory.java:97) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.as.ejb3.component.interceptors.AsyncInvocationTask.run(AsyncInvocationTask.java:73) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_85]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_85]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_85]

at org.jboss.threads.JBossThread.run(JBossThread.java:122)


09:57:04,888 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Deploying javax.ws.rs.core.Application: class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,890 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerRestImpl from Application class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,890 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerResource from Application class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,890 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.drools.CommandResource from Application class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,891 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding provider singleton org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider from Application class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,968 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /kie-server-6.3.0.Final-ee7

09:57:05,015 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "kie-server-6.3.0.Final-ee7.war" (runtime-name : "kie-server-6.3.0.Final-ee7.war")

09:57:05,031 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.90.50.23:9990/management

09:57:05,031 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.90.50.23:9990

09:57:05,031 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.1.Final "Tweek" started in 9423ms - Started 406 of 458 services (106 services are lazy, passive or on-demand)

...

Steve

unread,
Nov 24, 2015, 8:06:50 AM11/24/15
to Drools Setup
Right I only see the below error if I stop and start the Kie Server... If the server is running and add a new endpoint I don't actually see anything in the /opt/wildfly/standalone/log/server.log to imply I've added a container? I see no warnings or errors?

I've attached the full server log from booting up the kit server and starting the container. 


I see this in Workbench:


...
serverlog.txt

Steve

unread,
Nov 25, 2015, 7:09:02 AM11/25/15
to Drools Setup
So we've solved the $M2_HOME issue and we now get the following error:

11:21:38,716 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: com.dom.sms:SMSTest:1.0

11:21:38,751 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: com.dom.sms:SMSTest:pom:1.0

11:21:38,752 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'demo' for module 'com.dom.sms:SMSTest:1.0': java.lang.RuntimeException: Cannot find KieModule: com.dom.sms:SMSTest:1.0


We check the the controller from the Workbench server and everything seems correct and our containers have started:


however when we check the containers from the Kie-Server we see they've failed with contradicts the controllers status:



You'll also notice that only one container is listed, if I restart the Kie-Server then both will appear and both be failed.


Any ideas or suggestions on what's happening? I've become a bit stuck on this at present


...

Maciej Swiderski

unread,
Nov 25, 2015, 12:39:15 PM11/25/15
to drools...@googlegroups.com
you have again problem with loading jars from maven repository as before. So double check how the configuration of maven on kie server side.

A bit of explanation, controller does rely only on data it has, so if you start the container via controller it will directly show it as started because it’s only configuration, then the actual status of kie server is when you open details of the container and that will show individual endpoints status - this is the actual status of running kie server.

$M2_HOME is not required at all as it does not need to have complete maven installed locally.

Maciej
-- 
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Steve

unread,
Nov 26, 2015, 11:27:44 AM11/26/15
to Drools Setup
Thanks again... we've still got nowhere so I'll try and give you every bit of information that I can

Machine 1 - Drools Workbench
Wildfly 8.2.1.Final
kie-drools-wb-distribution-wars-6.3.0.Final-wildfly8.war

changes in /opt/wildfly/domain/configuration/host.xml

<property name="kie.maven.settings.custom" value="$M2_HOME" />


changes in /usr/share/maven/conf/settings.xml

<localRepository>~/.m2/repository</localRepository>


we can confirm our Dummy Application is being deployed into the Maven directory.


run command to start the server is:

./bin/standalone.sh -bmanagement=IPADDRESS --server-config=standalone-full.xml


Machine 2 - Kie Server
Wildfly 8.2.1.Final
kie-server-6.3.0.Final-ee7.war

changes in /usr/share/maven/conf/settings.xml

<localRepository>~/.m2/repository</localRepository>


<server>

     <id>jbpm-playground</id>

      <username>kb-user</username>

      <password>Password1!</password>

      <configuration>

        <wagonProvider>httpclient</wagonProvider>

        <httpConfiguration>

          <all>

            <usePreemptive>true</usePreemptive>

          </all>

        </httpConfiguration>

      </configuration>

    </server>


<profile>

     <id>jbpm-playground</id>

     <activation>

       <activeByDefault>true</activeByDefault>

     </activation>

     <repositories>

       <repository>

         <id>jbpm-playground</id>

         <name>Drools Workbench</name>

         <url>http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/maven2wb</url>

          <releases>

            <enabled>false</enabled>

            <updatePolicy>always</updatePolicy>

            <checksumPolicy>warn</checksumPolicy>

          </releases>

          <!--<snapshots>

            <enabled>true</enabled>

            <updatePolicy>never</updatePolicy>

            <checksumPolicy>fail</checksumPolicy>

          </snapshots>-->

       </repository>

     </repositories>

   </profile>


  <activeProfiles>

   <activeProfile>jbpm-playground</activeProfile>

 </activeProfiles>


run command to start the server is:

./standalone.sh -bmanagement=10.90.50.23 -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller -Dorg.kie.server.controller.user=kb-user -Dorg.kie.server.controller.pwd=Password1! -Dorg.jbpm.server.ext.disabled=true -Dkie.maven.settings.custom=/usr/share/maven/conf/settings.xml


we have seen the following error:


14:32:21,087 WARN  [org.eclipse.aether.internal.impl.WarnChecksumPolicy] (EJB default - 1) Could not validate integrity of download from http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/maven2wb/demo/DummyApp/1.0/DummyApp-1.0.jar: Checksum validation failed, expected <!DOCTYPE but is e7afd2e2c208445f7eed4f63758ad303766dfd5d


this shows that our remote repository settings appear correct as the link to the jar is correct but if I just warn on the checksum I still get the following error:


14:32:21,092 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'dummy' for module 'demo:DummyApp:1.0': java.lang.RuntimeException: Cannot find KieModule: demo:DummyApp:1.0

at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:117) [drools-compiler-6.3.0.Final.jar:6.3.0.Final]


I get this error consistently EVEN when it complains about the checksum warning... I only see these errors when I start the server... if the server is running and I deploy from Drools Workbench then I never see these errors in the server.log nor do I see the containers appear http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server/containers


Really appreciate all your support on this but I'm still at a bit of a loss?

...

Maciej Swiderski

unread,
Nov 26, 2015, 11:37:42 AM11/26/15
to drools...@googlegroups.com
check if you can logon to workbench with kb-user as most likely you won’t be able and that’s why it cannot download artifacts from maven repo hosted on workbench. If you cannot logon make sure it give him one of workbench’s roles (admin, analyst, developer, manager, user).

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Steve

unread,
Nov 26, 2015, 11:51:21 AM11/26/15
to Drools Setup
I can definitely login with kb-user/Password1!

One thing I tried earlier was changing the username and password to incorrect details within the kie server /usr/share/maven/conf/settings.xml and the error showed no difference, I expected an authentication error.
...

Maciej Swiderski

unread,
Nov 26, 2015, 11:57:13 AM11/26/15
to drools...@googlegroups.com
Alright, finally I sopt it:

is wrong URL - one that is used by web UI and not maven integration as it requires FORM authentication instead of BASIC. So replace it with:

and you should be fine

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Steve

unread,
Nov 26, 2015, 1:52:07 PM11/26/15
to Drools Setup
still no joy

18:36:00,293 WARN  [org.kie.scanner.embedder.MavenSettings] (EJB default - 1) Environment variable M2_HOME is not set

18:36:00,429 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'dummy' for module 'demo:DummyApp:1.0': java.lang.RuntimeException: Cannot find KieModule: demo:DummyApp:1.0


exactly the same error... 

...

Maciej Swiderski

unread,
Nov 26, 2015, 1:55:26 PM11/26/15
to drools...@googlegroups.com
clean maven local cache (~/.m2/repository) on the machine where kie server is running, for the user that runs the kie server and you should see the new downloads from maven

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Steve

unread,
Nov 27, 2015, 6:40:40 AM11/27/15
to Drools Setup
So I cleaned the maven local cache... no luck so also created another fresh install of Kie-Server and I'm getting exactly the same issue.

On the new box I see this has been created:

~/.m2/repository/demo/DummyApp/1.0/


but no files are within that directory, the time stamp is exactly as I tried to deploy to that endpoint.

...

Maciej Swiderski

unread,
Nov 27, 2015, 6:50:56 AM11/27/15
to drools...@googlegroups.com
this clearly looks like authentication/authorization issue. Create simple maven project and declare that dependency in that project. then try to build (with maven) the project on the same machine where you have kie server and see if it builds - meaning resolves the dependencies.

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Steve

unread,
Dec 2, 2015, 10:43:09 AM12/2/15
to Drools Setup
thanks Maciej. You're right about it being an authorisation issue, on the server.logon the Wildfly machine when I try to deploy I get the following error:

15:23:42,140 WARN  [org.kie.server.client.impl.KieServicesClientImpl] (Thread-131) Unable to connect to server to get information about it due to Unexpected HTTP response code when requesting URI 'http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server'! Error code: 401, message: <html><head><title>Error</title></head><body>Unauthorized</body></html>


So it's the Workbench trying to deploy to the Kie Server...


Have I got my start up commands correctly set? I would have thought I'd have to set the login credentials of the Kie Server from the command line like  -Dorg.kie.server.user=ks-user -Dorg.kie.server.pwd=Password1


Workbench Server:
./bin/standalone.sh -c standalone-full.xml -bmanagement=10.107.2.91:9990 

Kie Server:

./standalone.sh -bmanagement=10.90.50.23 -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.user=ks-user -Dorg.kie.server.pwd=Password1! -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller -Dorg.kie.server.controller.user=kb-user -Dorg.kie.server.controller.pwd=Password1! -Dorg.jbpm.server.ext.disabled=true -Dkie.maven.settings.custom=/usr/share/maven/conf/settings.xml 

...

Nidhi Ajmera

unread,
Dec 3, 2015, 11:33:12 AM12/3/15
to Drools Setup
Just to add to the below, do we have to add any roles in wildfly? We already created users: kb-user (for Drools) & ks-user(for Kie Server)
For some reason when we try to deploy it to the Kie Server on the different wildfly instance, the drools workbench(on a different wildfly instance) throws the below error.

Thanks for your assistance so far, but we really need to get this one sorted ASAP, so would really appreciate if you could give us any pointers or directions further please.

Many thanks,
Nidhi

Maciej Swiderski

unread,
Dec 3, 2015, 12:08:02 PM12/3/15
to drools...@googlegroups.com
have you read the article Installing KIE Server and Workbench on same server that describes all step required and what users and roles must be created?

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Steve

unread,
Dec 4, 2015, 4:49:36 AM12/4/15
to Drools Setup
Hi Maciej,

I had read this but I'm still at a loss... Our separate instance servers are Ubuntu, we've one Workbench server and look to have multiple execution servers with Kie-Server in the future, at present we're just trying to get one instance up and running.

We're 100% positive the issue is the communication from Workbench as it tries to deploy to the Kie-Server/s... And the issue as you stated is around authorisation. 

Can you clarify a few things for me please?

How does Workbench authenticate with Kie-Servers and where do the credentials (and roles?) get set, workbench, kie-server or both?

Is this set from every start up of a Kie-Server by setting the bootstrap switches -Dorg.kie.server.user=ks-user -Dorg.kie.server.pwd=Password1!? (if this is the case it's ignoring these) - we did a curl from workbench to kie-server with these credentials and was successful.

what user and roles do we require on a workbench?

what user and roles do we require on Kie Server

thanks again for ALL your assistance, we're very grateful for your time helping us


...

Maciej Swiderski

unread,
Dec 4, 2015, 1:25:54 PM12/4/15
to drools...@googlegroups.com
On 04.12.2015, at 10:49, Steve <stee...@gmail.com> wrote:

Hi Maciej,

I had read this but I'm still at a loss... Our separate instance servers are Ubuntu, we've one Workbench server and look to have multiple execution servers with Kie-Server in the future, at present we're just trying to get one instance up and running.

We're 100% positive the issue is the communication from Workbench as it tries to deploy to the Kie-Server/s... And the issue as you stated is around authorisation. 

Can you clarify a few things for me please?

How does Workbench authenticate with Kie-Servers and where do the credentials (and roles?) get set, workbench, kie-server or both?
it’s HTTP Basic authentication and it’s required on both sides


Is this set from every start up of a Kie-Server by setting the bootstrap switches -Dorg.kie.server.user=ks-user -Dorg.kie.server.pwd=Password1!? (if this is the case it's ignoring these) - we did a curl from workbench to kie-server with these credentials and was successful.
you can either set them on application server level (standalone-full.xml) or pass as command line args. What was the url you used to check the authentication?


what user and roles do we require on a workbench?
best to start with defaults:
user: kieserver
password: kieserver1!
roles: kie-server


what user and roles do we require on Kie Server
user: kieserver
password: kieserver1!
roles: kie-server

once you confirm this is working you can continue with changes to the user and password settings.

so to curl from workbench machine to check if you can get successful response from running KIE Server instance:

next use curl from KIE Server machine to see if you can acess workbench controller end point

make sure you use correct host port and context path (in given examples they are kie-server and kie-wb respectively). Once these are successful you should be fine with kie server to workbench communication

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Nidhi Ajmera

unread,
Dec 7, 2015, 6:37:58 AM12/7/15
to Drools Setup
Thank you heaps for all the details Maciej, really appreciate it.

Unfortunately, we still have had no luck :(

Just to summarise everything, below are the steps that we have done so far:
1. On 10.x.x.91 - installed wildfly 8.2.1
2. Using .add-user.sh we added mgmt user with username/password as - kb-user:Password1!
3. Deployed Workbench  6.3.0.Final
4. On 10.x.x.23 - installed wildfly 8.2.1
5. Using .add-user.sh we added mgmt user with username/password as - ks-user:Password1!
6. Deployed Kie Server (kie-server-6.3.0.Final-ee7)
7. Start both the workbench and the kie server using the following commands:

Command run on workbench:

./standalone.sh -bmanagement=10.x.x.91 --server-config=standalone-full.xml


Command run on the kie-server:

./standalone.sh -bmanagement=10.x.x.23 -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.x.x.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.user=ks-user -Dorg.kie.server.pwd=Password1! -Dorg.kie.server.controller=http://10.x.x.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller -Dorg.kie.server.controller.user=kb-user -Dorg.kie.server.controller.pwd=Password1! -Dorg.jbpm.server.ext.disabled=true -Dkie.maven.settings.custom=/usr/share/maven/conf/settings.xml



8. When we try and deploy the dummy application we get the following error on the workbench log:

10:37:18,033 WARN  [org.kie.server.client.impl.KieServicesClientImpl] (Thread-134) Unable to connect to server to get information about it due to Error occurred when trying to retrieve response code

10:37:18,223 WARN  [org.kie.server.client.impl.KieServicesClientImpl] (Thread-134) Unable to connect to server to get information about it due to Unexpected HTTP response code when requesting URI 'http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server'! Error code: 401, message: <html><head><title>Error</title></head><body>Unauthorized</body></html>




We tried this URL from the workbench to test the connectivity:

curl -I http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server

HTTP/1.1 401 Unauthorized

Expires: 0

Cache-Control: no-cache, no-store, must-revalidate

X-Powered-By: Undertow/1

Server: WildFly/8

Pragma: no-cache

Date: Mon, 07 Dec 2015 11:14:56 GMT

Connection: keep-alive

WWW-Authenticate: Basic realm="KIE Server"

Content-Type: text/html;charset=UTF-8

Content-Length: 71


 However if we try this:

curl -I -u ks-user:Password1! http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server

It gives a 200 OK response.


In my opinion there is surely a communication between the workbench & the kie server, its actually unable to authenticate the user.


I also tried creating the default user & role as you mentioned in your post:

kieserver/kieserver1! on both the wildfly instances 


but I still get the Unauthorized error.


Is there anything else we have missed or misconfigured?


Thanks in advance.

Nidhi 

 

...

Maciej Swiderski

unread,
Dec 7, 2015, 1:05:49 PM12/7/15
to drools...@googlegroups.com
First of all - you should add application user and not management user when using add-user.sh script

then if you don’t specifly any user via system property on workbench it will use kieserver and kieserver1! password to connect to KIE Server. SO make sure you have this user created on kie server and that that user has kie-server role assigned to it.

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Nidhi Ajmera

unread,
Dec 10, 2015, 6:24:09 AM12/10/15
to Drools Setup
Finally got it working, thanks a ton for all your help, really really appreciate it :)
Maciej
Maciej
Maciej
still no joy

Maciej
<div c

EDISSON GEOVANNY CAMPOVERDE LLANOS

unread,
Jun 29, 2017, 11:22:03 AM6/29/17
to Drools Setup
I have the same error. It happened after I'have configured LDAP as auth system. How can I solve this ?




El miércoles, 11 de noviembre de 2015, 15:22:27 (UTC-5), Maciej Swiderski escribió:
Make sure you have properly defined user and password for kieserver on workbench as it clearly cannot be authenticated. 

Maciej

Dnia 11.11.2015 o godz. 17:02 Steve <stee...@gmail.com> napisał(a):

We have two servers:

Wildfly 8.2.1.Final with Drools Workbench 6.3.0.Final

I'm having an issue on the end point is not appearing in Workbench although connectivity all seems to be working... when running the starting the application I'm using the following commands

./bin/standalone.sh -c standalone-full.xml -bmanagement=10.107.2.91:9990 -Dorg.kie.server.user=ks-user -Dorg.kie.server.pwd=Password1!


Wildfly 8.2.1.Final with Kie Server 6.3.0.Final


./bin/standalone.sh -bmanagement=10.90.50.23  -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller

We get this error:


15:15:26,947 WARN  [org.kie.server.services.impl.controller.DefaultRestControllerImpl] (KieServer-ControllerConnect) Exception encountered while syncing with controller at http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller/server/kie-server error Error while sending PUT request to http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller/server/kie-server response code 401



--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Maciej Swiderski

unread,
Jun 29, 2017, 1:24:23 PM6/29/17
to drools...@googlegroups.com
Make sure user used to connect to controller can properly login. 

Maciej 
Advertencia legal: 
Este mensaje y, en su caso, los archivos anexos son confidenciales, especialmente en lo que respecta a los datos personales, y se dirigen exclusivamente al destinatario referenciado. Si usted no lo es y lo ha recibido por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique por este medio y proceda a destruirlo o borrarlo, y que en todo caso se abstenga de utilizar, reproducir, alterar, archivar o comunicar a terceros el presente mensaje y ficheros anexos, todo ello bajo pena de incurrir en responsabilidades legales. Las opiniones contenidas en este mensaje y en los archivos adjuntos, pertenecen exclusivamente a su remitente y no representan la opinión de la Universidad de Cuenca salvo que se diga expresamente y el remitente esté autorizado para ello. El emisor no garantiza la integridad, rapidez o seguridad del presente correo, ni se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros.

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Quin Zhou

unread,
Aug 6, 2017, 8:33:59 AM8/6/17
to Drools Setup
Maciej,

Sorry for picking up this old thread but reading through it it's like a journey that myself have been going through though I am not out of the woods yet (and facing pressure to get this resolved very soon).

I have almost all the same errors as Steve has, and captured in my posting last night in [drools-setup] group,

  https://groups.google.com/forum/#!topic/drools-setup/yUZ2FzfHbuQ

except my setup is with both kie-wb and kie-server on the same server (followed your posting) and I did have the users (kieserver and workbench) set up in Application realm.

Attached is my settings-kie.xml referenced in the cmd line to startup my Jboss EAP 6.4 server.

I did try one thing differently, which is to use curl to deploy the kjar from my windows machine (where the kjar is built in an Eclipse env) to the remote kieserver on EAP 6.4, with error code 401 results of " This request requires HTTP authentication", despite the fact that I did provide id/pwd in the cmdline:

C:\download\Drools\drools-hello-world-table\target>curl -X PUT -H 'Content-type:application/xml' -u 'kieserver:kieserver1!' --data @createDecisionTableContainer
.xml http://zlx72316.vci.att.com:8080/kie-server/services/rest/server/containers/IndigoLake
<html><head><title>JBWEB000065: HTTP Status 401 - </title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px
;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white
;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {col
or : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status re
port</p><p><b>JBWEB000068: message</b> <u></u></p><p><b>JBWEB000069: description</b> <u>JBWEB000121: This request requires HTTP authentication.</u></p><HR size=
"1" noshade="noshade"></body></html>
C:\download\Drools\drools-hello-world-table\target>

Any advice?

Quinn
Maciej
Maciej
Maciej
still no joy

Maciej
<div c
settings-kie.xml

Jeff Jensen

unread,
Aug 6, 2017, 9:25:39 AM8/6/17
to Drools Setup
> Any advice?

Can you successfully login to KWB via browser?

Can you successfully login to KES via browser?

I setup servers many times and helped others with config problems so I wrote some notes in a post to help, so sharing with you in case one of the steps helps you find the config issue:
https://www.intertech.com/Blog/simple-setup-of-drools-kie-workbench-and-kie-server-in-one-wildfly-instance/


--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Quin Zhou

unread,
Aug 6, 2017, 12:43:01 PM8/6/17
to drools...@googlegroups.com
Jeff,

Yes, I am able to access the kwb and kes from browser.  I only missed two param (KIE_CONTROLLER_USE and KIE_CONTROLLER_PWD) comparing with yours and I have them added.

Now I made some progress - I spotted errors that was not seen before on read permission issue on a .properties file in the jar folder in the maven repo configured for the kie-server:

08:36:01,114 WARN  [org.eclipse.aether.internal.impl.DefaultUpdateCheckManager] (EJB default - 4) Failed to read tracking file /opt/app/jboss/maven/kie-repository/com/javainuse/drools-hello-world/0.0.1-SNAPSHOT/resolver-status.properties: java.io.FileNotFoundException: /opt/app/jboss/maven/kie-repository/com/javainuse/drools-hello-world/0.0.1-SNAPSHOT/resolver-status.properties (Permission denied)

        at java.io.FileInputStream.open(Native Method) [rt.jar:1.7.0_99]

        at java.io.FileInputStream.<init>(FileInputStream.java:146) [rt.jar:1.7.0_99]

        at org.eclipse.aether.internal.impl.TrackingFileManager.read(TrackingFileManager.java:56) [aether-impl-1.0.0.v20140518.jar:]

 



After fixing that, however the container creation still failed due to:

09:09:54,937 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 5) Error creating container 'RuleSet' for module 'com.javainuse:drools-hello-world:0.0.1-SNAPSHOT': java.lang.RuntimeException: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at com.javainuse:drools-hello-world:jar:0.0.1-SNAPSHOT -> org.kie:kie-api:jar:6.4.0.Final

        at org.kie.scanner.MavenRepository.getArtifactDependecies(MavenRepository.java:113) [kie-ci-6.4.0.Final.jar:6.4.0.Final]

        at org.kie.scanner.ArtifactResolver.getArtifactDependecies(ArtifactResolver.java:72) [kie-ci-6.4.0.Final.jar:6.4.0.Final]

        at org.kie.scanner.KieRepositoryScannerImpl.buildArtifact(KieRepositoryScannerImpl.java:170) [kie-ci-6.4.0.Final.jar:6.4.0.Final]


I remember while reading the thread btw Maciel and Steve, Steve ran into exactly the same error. How was that fixed?

Many thanks,

Quinn 

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-setup/Bpt-r_bIa2U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-setup+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Jeff Jensen

unread,
Aug 6, 2017, 2:02:57 PM8/6/17
to Drools Setup
Good, glad that helped and you made further progress...

"Failed to collect dependencies" makes me think that the embedded Maven cannot find the deps, and if so, then perhaps the settings.xml file for the client isn't set correctly.  Are your deps coming through a repo manager, such as Nexus, or directly from Maven Central?


Quin Zhou

unread,
Aug 7, 2017, 5:19:48 PM8/7/17
to drools...@googlegroups.com
Jeff,

A bit more  progress, I found:

if I comment out below nexus repo:

 <repository>
          <id>jboss-public-repository-group</id>
          <name>JBoss Public Maven Repository Group</name>
          <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>

and keep my own repo:

<repository>
          <id>kie-workbench</id>
          <name>JBoss BRMS Guvnor M2 Repository</name>
          <url>http://xyx.com:8080/drools-wb/maven2</url>

then the [FATAL] Non-resolvable parent POM.. will go away, but I got an warning:

13:46:14,443 WARN  [org.eclipse.aether.internal.impl.WarnChecksumPolicy] (EJB default - 7) Could not validate integrity of download from http://repo1.maven.org/maven2/com/javainuse/drools-hello-world/0.0.2-SNAPSHOT/drools-hello-world-0.0.2-SNAPSHOT.jar: Checksum validation failed, expected <!doctype but is 159969b52e715d519d1f429e12d17e6b7596d5e8

I purposely changed the version to 0.0.2 so I see 0.0.2_SNAPSHOT folder showed up in both the local repo for the kie-server (Linux) and the local repo on my Windows machine where I built the kjar in Eclipse env.

However, still got:

 Error creating container 'RuleSet' for module 'com.javainuse:drools-hello-world:0.0.2-SNAPSHOT': java.lang.RuntimeException: Cannot find KieModule: com.javainuse:drools-hello-world:0.0.2-SNAPSHOT

Any pointer will be appreciated.

Quinn

   

On Sun, Aug 6, 2017 at 5:04 PM, Quin Zhou <quin...@gmail.com> wrote:
Now I fixed (set) M2_HOME, more errors occurred:

1) [FATAL] Non-resolvable parent POM: Failure to transfer org.guvnor:guvnor-asset-mgmt:pom:6.4.0.Final from https://repository.jboss.org/nexus/content/groups/public-jboss/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced. Original error: Could not transfer artifact org.guvnor:guvnor-asset-mgmt:pom:6.4.0.Final from/to jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/): connect timed out 

Can someone look into my settings.xml to see what's not right about it? Or a proxy issue is preventing connection?

2) the ultimate goal to get this working:

13:44:44,901 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 3) Error creating container 'RuleSet' for module 'com.javainuse:drools-hello-world:0.0.1-SNAPSHOT': java.lang.RuntimeException: Cannot find KieModule: com.javainuse:drools-hello-world:0.0.1-SNAPSHOT

Many Thanks,

Quinn

On Sun, Aug 6, 2017 at 2:45 PM, Quin Zhou <quin...@gmail.com> wrote:
The repo is from nexus:

<repository>
          <id>jboss-public-repository-group</id>
          <name>JBoss Public Maven Repository Group</name>
          <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
          <layout>default</layout>

..
<id>jboss-public-repository-group</id>
          <name>JBoss Public Maven Repository Group</name>
          <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
          <layout>default</layout>


What I found out is, the folder of ../kie/kie-api/6.4.0.Final (the local repo for the kie-server) is somehow empty, that's why that "Failed to collect dependencies"error. So I manually copied content into that folder from my Windows maven repo and rerun it, that error is gone.

However the Cannot find KieModule error is still there, while all other errors (except M2_HOME is not set) are gone, which makes it even harder to debug.

You can find the whole settings.xml referenced in server startup cmd in this thread. What else can I look into now?



11:12:00,974 WARN  [org.kie.scanner.embedder.MavenSettings] (EJB default - 4) Environment variable M2_HOME is not set
11:12:11,356 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 4) Error creating container 'RuleSet' for module 'com.javainuse:drools-hello-world:0.0.1-SNAPSHOT': java.lang.RuntimeException: Cannot find KieModule: com.javainuse:drools-hello-world:0.0.1-SNAPSHOT

ASHISH NATHANI

unread,
Aug 10, 2017, 1:47:52 AM8/10/17
to Drools Setup
Hi,

I am running kie server(7.0.0) integrated with workbench(7.0.0) in managed mode on wildfly 10. The server and workbench are running on different machines. I am trying to use the scanner functionality from workbench UI. Below are the steps that I have followed -

1. Changed my maven settings.xml file as below -

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <server>
      <id>mvnrepository</id>
      <username>kieserver</username>
      <password>kieserver</password>
      <configuration>
        <wagonProvider>httpclient</
wagonProvider>
        <httpConfiguration>
          <all>
            <usePreemptive>true</usePreemptive>
          </all>
        </httpConfiguration>
      </configuration>
    </server>
  </servers>

<profile>
    <id>wb</id>

<activation>
        <activeByDefault>true</activeByDefault>
      </activation>
<repositories>
    <repository>
        <id>mvnrepository</id>
        <url>http://{WorkbenchServerIp}:8080/kie-wb/maven2</url>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
      </releases>
    </repository>
</repositories>
    </profile> 
  </profiles>

 <activeProfiles>
    <activeProfile>wb</activeProfile>
  </activeProfiles>
</settings>

2. In the workbench I create a container with group id and artifact same as that of the project and version as - RELEASE. Then i gave the scan interval on UI as 10 and started the scanner and when I access the endpoint it gives the result as scanner started with pooling interval =10

3. I updated some rules in the project and increase the version (example from 1.0 to 1.1) with same group id and artifact. Save the pom.xml file and click on compile button.

As per my understanding from the documentation the new version should get picked up as the scanner scans for new version after every 10 seconds. But this is giving a very random behavior. As in some cases I see that the container gets updated as I can see that in resolved-release-id but sometimes it doesn't. Moreover I feel that the pooling interval is also not working on every 10 seconds.


In some cases when the container updates I get the below log message -

18:23:58,402 INFO  [org.drools.compiler.kie.
builder.impl.KieRepositoryImpl] (Timer-2) KieModule was added: ZipKieModule[releaseId=com.myteam:Demo:1.0.2,file=/root/.m2/repository/com/myteam/Demo/1.0.2/Demo-1.0.2.jar]
18:23:58,496 INFO  [org.kie.api.builder.KieScanner] (Timer-2) The following artifacts have been updated: {com.myteam:Demo:1.0.1=com.myteam:Demo:jar:1.0.2}



Can someone please suggest where I am going wrong with this.

Thanks in advance.

Regards,
Ashish

Mauricio Calcagno

unread,
Dec 5, 2017, 1:05:55 PM12/5/17
to Drools Setup
Could youi fix it?
Cause I'm having the same issue when I try to create a container in the managed kie-server.

18:00:57,909 WARN  [org.eclipse.aether.internal.impl.WarnChecksumPolicy] (http-0.0.0.0:9443-1) Could not validate integrity of download from http://bc-server:9443/business-central/maven2wb/NZealand/nz/1.0/nz-1.0.jar: Checksum validation failed, expected <!DOCTYPE but is 5f7305873cd48a7d83810120a059c024444b653c

18:00:57,913 ERROR [org.kie.server.services.impl.KieServerImpl] (http-0.0.0.0:9443-1) Error creating container 'NZTest002' for module 'NZealand:nz:1.0': java.lang.RuntimeException: Cannot find KieModule: NZealand:nz:1.0

In /root/.m2/repository/ I see the NZealand/nz/1.0 folder with the jar file in it.

Thanks

Mauricio Calcagno

unread,
Dec 6, 2017, 10:29:52 AM12/6/17
to Drools Setup
I could fix it, if some has the same error
On the .m2/settings.xml file when I configured the wb-maven as a repository i used the url /business-central/maven2wb, I just changed it to /business-central/maven2.
I also had to configure the http basic authorization on the settings.xml as Maciej mentioned on a post.

Thanks!!

Quin Zhou

unread,
Dec 6, 2017, 10:48:44 AM12/6/17
to drools...@googlegroups.com
Hi, I haven' t got a chance to work on this since last posting. I will try what you suggested to see how it works.

Thank you.

Quin

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-setup/Bpt-r_bIa2U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-setup+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Alexandre

unread,
Dec 20, 2017, 6:46:33 AM12/20/17
to Drools Setup
Hi!

Please, could you please share how to solve the problem with "Environment variable M2_HOME is not set" message during the starting of jboss/drools-workbench.?

Thank you


Em quarta-feira, 25 de novembro de 2015 10:09:02 UTC-2, Steve escreveu:
So we've solved the $M2_HOME issue and we now get the following error:

11:21:38,716 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: com.dom.sms:SMSTest:1.0

11:21:38,751 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: com.dom.sms:SMSTest:pom:1.0

11:21:38,752 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'demo' for module 'com.dom.sms:SMSTest:1.0': java.lang.RuntimeException: Cannot find KieModule: com.dom.sms:SMSTest:1.0


We check the the controller from the Workbench server and everything seems correct and our containers have started:


however when we check the containers from the Kie-Server we see they've failed with contradicts the controllers status:



You'll also notice that only one container is listed, if I restart the Kie-Server then both will appear and both be failed.


Any ideas or suggestions on what's happening? I've become a bit stuck on this at present




On Tuesday, 24 November 2015 13:06:50 UTC, Steve wrote:
Right I only see the below error if I stop and start the Kie Server... If the server is running and add a new endpoint I don't actually see anything in the /opt/wildfly/standalone/log/server.log to imply I've added a container? I see no warnings or errors?

I've attached the full server log from booting up the kit server and starting the container. 


I see this in Workbench:




On Tuesday, 24 November 2015 10:34:37 UTC, Steve wrote:
thanks, I've implemented a warning on checksum policy now... Still appear to have the issue in the module not being found and it doesn't appear on the Kie Server? Also I still see the issue which I've highlighted in blue of M2_HOME not being set, it clearly is when I printenv

09:57:04,304 INFO  [org.kie.server.services.impl.storage.KieServerState] (MSC service thread 1-8) Added default controller located at http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller

09:57:04,329 INFO  [org.kie.server.services.impl.KieServerImpl] (MSC service thread 1-8) Server Default Extension has been successfully registered as server extension

09:57:04,330 INFO  [org.kie.server.services.impl.KieServerImpl] (MSC service thread 1-8) Drools KIE Server extension has been successfully registered as server extension

09:57:04,569 INFO  [org.kie.server.services.Bootstrap] (MSC service thread 1-8) KieServer (id kie-server) started successfully

09:57:04,574 INFO  [org.kie.server.services.impl.ContainerManager] (EJB default - 1) About to install containers '[KieContainerResource [containerId=demo, releaseId=com.sky.sms:SMSTest:1.0, resolvedReleaseId=null, status=STARTED]]' on kie server 'KieServer{id='kie-server'name='kie-server'version='6.3.0.Final'location='http://10.90.50.23/kie-server-6.3.0.Final-ee7/services/rest/server'}'

09:57:04,590 WARN  [org.kie.scanner.embedder.MavenSettings] (EJB default - 1) Environment variable M2_HOME is not set

09:57:04,761 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'demo' for module 'com.sky.sms:SMSTest:1.0': java.lang.RuntimeException: Cannot find KieModule: com.sky.sms:SMSTest:1.0

at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:117) [drools-compiler-6.3.0.Final.jar:6.3.0.Final]

at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:111) [drools-compiler-6.3.0.Final.jar:6.3.0.Final]

at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:52) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)

at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)

at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.LogDiagnosticContextRecoveryInterceptor.processInvocation(LogDiagnosticContextRecoveryInterceptor.java:79) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

at org.jboss.as.ejb3.component.interceptors.AsyncFutureInterceptorFactory$1$2.runInvocation(AsyncFutureInterceptorFactory.java:97) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.as.ejb3.component.interceptors.AsyncInvocationTask.run(AsyncInvocationTask.java:73) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_85]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_85]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_85]

at org.jboss.threads.JBossThread.run(JBossThread.java:122)


09:57:04,888 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Deploying javax.ws.rs.core.Application: class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,890 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerRestImpl from Application class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,890 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerResource from Application class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,890 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.drools.CommandResource from Application class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,891 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding provider singleton org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider from Application class org.kie.server.remote.rest.common.KieServerApplication

09:57:04,968 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /kie-server-6.3.0.Final-ee7

09:57:05,015 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "kie-server-6.3.0.Final-ee7.war" (runtime-name : "kie-server-6.3.0.Final-ee7.war")

09:57:05,031 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.90.50.23:9990/management

09:57:05,031 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.90.50.23:9990

09:57:05,031 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.1.Final "Tweek" started in 9423ms - Started 406 of 458 services (106 services are lazy, passive or on-demand)


On Monday, 23 November 2015 17:17:26 UTC, Maciej Swiderski wrote:
this is now the problem:
17:07:09,985 WARN  [org.eclipse.aether.internal.impl.WarnChecksumPolicy] (EJB default - 1) Could not validate integrity of download from http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/maven2wb/com/dummy/sms/SMSTest/1.0/SMSTest-1.0.jar: Checksum validation failed, expected <!DOCTYPE but is e7afd2e2c208445f7eed4f63758ad303766dfd5d

since this is difficult to say what it returns you might want to see the maven reference page about checksum policy settings: https://maven.apache.org/settings.html
check if the file was downloaded at all to the kie server server

integration between kie server and workbench works as expected (when you compare with previous logs where it couldn’t find the artifact at all).

Maciej
On 23.11.2015, at 18:10, Steve <stee...@gmail.com> wrote:

Thanks for the quick reply... unfortunately that didn't work.

I ran with this command:

./standalone.sh -bmanagement=10.90.50.23 -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller -Dorg.kie.server.controller.user=kb-user -Dorg.kie.server.controller.pwd=Password1! -Dorg.jbpm.server.ext.disabled=true -Dkie.maven.settings.custom=/usr/share/maven/conf/settings.xml


and this is the output:

ie-server'name='kie-server'version='6.3.0.Final'location='http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server'}'

17:07:09,395 WARN  [org.kie.scanner.embedder.MavenSettings] (EJB default - 1) Environment variable M2_HOME is not set

17:07:09,696 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Deploying javax.ws.rs.core.Application: class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,698 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerRestImpl from Application class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,698 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerResource from Application class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,699 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.kie.server.remote.rest.drools.CommandResource from Application class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,700 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding provider singleton org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider from Application class org.kie.server.remote.rest.common.KieServerApplication

17:07:09,795 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /kie-server-6.3.0.Final-ee7

17:07:09,847 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "kie-server-6.3.0.Final-ee7.war" (runtime-name : "kie-server-6.3.0.Final-ee7.war")

17:07:09,871 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.90.50.23:9990/management

17:07:09,871 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.90.50.23:9990

17:07:09,872 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.1.Final "Tweek" started in 9304ms - Started 406 of 458 services (106 services are lazy, passive or on-demand)

17:07:09,985 WARN  [org.eclipse.aether.internal.impl.WarnChecksumPolicy] (EJB default - 1) Could not validate integrity of download from http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/maven2wb/com/dummy/sms/SMSTest/1.0/SMSTest-1.0.jar: Checksum validation failed, expected <!DOCTYPE but is e7afd2e2c208445f7eed4f63758ad303766dfd5d

17:07:09,991 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'sms' for module 'com.dummy.sms:SMSTest:1.0': java.lang.RuntimeException: Cannot find KieModule: com.dummy.sms:SMSTest:1.0


On Monday, 23 November 2015 16:55:49 UTC, Maciej Swiderski wrote:
you should add following property to startup command of the kie server wildfly instance:
-Dkie.maven.settings.custom=/usr/share/maven/conf/settings.xml

and that should do the trick

Maciej
On 23.11.2015, at 17:48, Steve <stee...@gmail.com> wrote:

Thanks Maciej. 

I've configured the Kie Server now to point at the maven repository on the Workbench server... I got a few issues and noticed you'd recommended some fixes on another thread which I've implemented but I'm still seeing issues.

I've made the following changes

/domain/configuration/hosts.xml:

<property name="kie.maven.settings.custom" value="$M2_HOME" />


/usr/share/maven/conf/settings.xml


<servers>

<server>

     <id>jbpm-playground</id>

      <username>kb-user</username>

      <password>Password1!</password>

      <configuration>

        <wagonProvider>httpclient</wagonProvider>

        <httpConfiguration>

          <all>

            <usePreemptive>true</usePreemptive>

          </all>

        </httpConfiguration>

      </configuration>


    </server>

</servers>


 <profiles>

  <profile>

     <id>jbpm-playground</id>

     <activation>

       <activeByDefault>true</activeByDefault>

     </activation>

     <repositories>

       <repository>

         <id>jbpm-playground</id>

         <name>Drools Workbench</name>

         <url>http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/maven2wb</url>

       </repository>

     </repositories>

   </profile>

  </profiles>


I have added the following code but feel it's redundant:


  <activeProfiles>

   <activeProfile>jbpm-playground</activeProfile>


 </activeProfiles>


To start Wildfly 8.2.1.Final and Kie Server 6.3.0.Final



./standalone.sh -bmanagement=10.90.50.23 -c standalone-full.xml -

...

Alexandre

unread,
Dec 20, 2017, 1:42:43 PM12/20/17
to Drools Setup
I understood that I should add the property in the startup command of kie server to fix it but please, let me know how to? Even we can not change the image, should I add it when I execute run:

docker run -p 8080:8080 -p 8001:8001 -t -i --name drools-workbench jboss/drools-workbench-showcase:latest

Can you please, let me know how to do it?
Maciej

./standalone.sh -bmanagement=10.90.50.23 -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller -Dorg.kie.server.controller.user=kb-user -Dorg.kie.server.controller.pwd=Password1! -Dorg.jbpm.server.ext.disabled=true


I get the following error:


16:26:39,859 WARN  [org.kie.scanner.embedder.MavenSettings] (EJB default - 1) Environment variable M2_HOME is not set

16:26:40,131 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Deploying javax.ws.rs.core.Application: class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,133 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerRestImpl from Application class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,133 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Adding singleton resource org.kie.server.remote.rest.common.resource.KieServerResource from Application class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,134 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Adding singleton resource org.kie.server.remote.rest.drools.CommandResource from Application class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,134 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Adding provider singleton org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider from Application class org.kie.server.remote.rest.common.KieServerApplication

16:26:40,226 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017534: Registered web context: /kie-server-6.3.0.Final-ee7

16:26:40,281 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "kie-server-6.3.0.Final-ee7.war" (runtime-name : "kie-server-6.3.0.Final-ee7.war")

16:26:40,310 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.90.50.23:9990/management

16:26:40,310 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.90.50.23:9990

16:26:40,314 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.1.Final "Tweek" started in 9279ms - Started 406 of 458 services (106 services are lazy, passive or on-demand)

16:26:40,370 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: com.sky.sms:SMSTest:1.0

16:26:40,434 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: com.sky.sms:SMSTest:pom:1.0


16:26:40,435 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'sms' for module 'com.dummy.sms:SMSTest:1.0': java.lang.RuntimeException: Cannot find KieModule: com.dummy.sms:SMSTest:1.0


I clearly see that it's reporting $M2_HOME is not set and this is causing the issue of the modules not being found. When I print the environment variables of the machine I see M2_HOME=/usr/share/maven


I'm sure I've missed something simple, any ideas? Thanks in advance.

 

On Monday, 23 November 2015 09:00:26 UTC, Maciej Swiderski wrote:
Steve,

this looks bit weird to me as you have different urls in there. The url you set in org.kie.server.location should the real URL that your kie server will be available at. If you give there localhost it will register itself as localhost

next, when it comes to failed initialization it most likely means project you built in workbench cannot be found be kie server as it resides on another machine. So you need to configure maven on  kie server to use workbench as it's repository. See this section it docs to understand how to do it -

Settings.xml and Remote Repository Setup:

http://docs.jboss.org/drools/release/6.3.0.Final/drools-docs/html/ch04.html#KIEDeployingSection

Maciej


2015-11-20 13:55 GMT+01:00 Steve <stee...@gmail.com>:
thanks you were right and this was sorted.... The issue I'm having now is it appears by the Drools Workbench I've successfully deployed my Dummy Application


does this appear correct to you? I'm not 100% sure it should be showing the endpoint on localhost? When I try and see the container via the URL I see they've failed:


The error I see in the server.log in Wildfly is:


 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'Dummy' for module 'demo:DummyApplication:1.0': java.lang.RuntimeException: Cannot find KieModule: demo:DummyApplication:1.0


and looking in the /.m2/repository/demo/DummyApplication/1.0 directory structure I don't see the module at all... Any ideas, I'm a bit lost of this one?






On Wednesday, November 11, 2015 at 8:22:27 PM UTC, Maciej Swiderski wrote:
Make sure you have properly defined user and password for kieserver on workbench as it clearly cannot be authenticated. 

Maciej

Dnia 11.11.2015 o godz. 17:02 Steve <stee...@gmail.com> napisał(a):

We have two servers:

Wildfly 8.2.1.Final with Drools Workbench 6.3.0.Final

I'm having an issue on the end point is not appearing in Workbench although connectivity all seems to be working... when running the starting the application I'm using the following commands


./bin/standalone.sh -c standalone-full.xml -bmanagement=10.107.2.91:9990 -Dorg.kie.server.user=ks-user -Dorg.kie.server.pwd=Password1!



Wildfly 8.2.1.Final with Kie Server 6.3.0.Final



./bin/standalone.sh -bmanagement=10.90.50.23  -c standalone-full.xml -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://10.90.50.23:8080/kie-server-6.3.0.Final-ee7/services/rest/server -Dorg.kie.server.controller=http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller

We get this error:



15:15:26,947 WARN  [org.kie.server.services.impl.controller.DefaultRestControllerImpl] (KieServer-ControllerConnect) Exception encountered while syncing with controller at http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller/server/kie-server error Error while sending PUT request to http://10.107.2.91:8080/kie-wb-distribution-wars-6.3.0.Final-wildfly8/rest/controller/server/kie-server response code 401




--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

prabhat kumar

unread,
Jul 21, 2020, 5:20:49 AM7/21/20
to Drools Setup

Hi Maciej,

I have configured the kie buisness central and kie server on the wildfly and its working fine. But we need to implement LDAP security authentication and have configured the same in wildfly standalone-full.xml . I am able to login to workbench and performed the rules related action.

But My issue is that Buisness central workbench is unable to registered with kieserver at time of startup,even I have created users on the LDAP server with below roles:-

User:- prabhatA
password:-password
role:- rest-all,admin

User:- prabhatServer
password:-password
role:- kie-server,admin

And mentioned the credentionl in system properties tag of standalone-full.xml:-
<property name="org.kie.server.controller.user" value="prabhatA"/>
<property name="org.kie.server.controller.password" value="password"/>
<property name="org.kie.server.user" value="prabhatServer"/>
<property name="org.kie.server.pwd" value="password"/>
   <property name="org.kie.server.controller" value="http://localhost:8080/business-central/rest/controller"/>
   <property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server"/>
   <property name="org.kie.server.id" value="wildfly-kieserver"/>

Also add ldap configuration for the login module as below:-

<security-domain name="ldap" cache-type="default">
                    <authentication>
                        <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
                            <module-option name="java.naming.provider.url" value="ldap://localhost:10389"/>
                            <module-option name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
                            <module-option name="java.naming.security.authentication" value="simple"/>
                            <module-option name="bindDN" value="uid=admin,ou=system"/>
                            <module-option name="bindCredential" value="secret"/>
                            <module-option name="baseCtxDN" value="ou=pepoleTest,dc=example,dc=com"/>
                            <module-option name="baseFilter" value="(uid={0})"/>
                            <module-option name="rolesCtxDN" value="ou=ruleTest,dc=example,dc=com"/>
                            <module-option name="roleFilter" value="(member={1})"/>
                            <module-option name="roleAttributeID" value="cn"/>
                            <module-option name="roleAttributeIsDN" value="true"/>
                            <module-option name="roleNameAttributeID" value="cn"/>
                            <module-option name="roleRecursion" value="2"/>
                            <module-option name="searchScope" value="SUBTREE_SCOPE"/>
                        </login-module>
                    </authentication>
                </security-domain>

I have also updated the security doman value in jboss-web.xml  of business central and kie server wars.

<security-domain>ldap</security-domain>


Note:----
If I create user on LDAP server with below details:-
 username =kieserver 
password = kieserver1!
role= kie-server

Then both business central and kie server are able to register themselves successfully.But this approcah forcing us to create user on LDAP server with above details(kieserver).
Could you please suggest the way so that I don't need to create user with details  (userName=kieserver and password=kieserver1!).
To unsubscribe from this group and stop receiving emails from it, send an email to drools...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages