./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
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.
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.
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?
http://docs.jboss.org/drools/release/6.3.0.Final/drools-docs/html/ch04.html#KIEDeployingSection
Maciej
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/5c902984-4c98-4f29-b62b-2656cca31635%40googlegroups.com.
<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>
<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.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/40bdfe34-bf55-412a-886f-a9a63405a118%40googlegroups.com.
./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
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
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/3771d710-404f-4d3d-b27e-5c1327ffa1db%40googlegroups.com.
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)
...
...
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
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
...
--
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/a0932125-9cf4-433c-bffa-5c59215d4447%40googlegroups.com.
<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
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?
...
--
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/53d888b8-c6b1-4b97-9016-4c1e4fb50b64%40googlegroups.com.
...
--
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/41aecf6e-4ff9-4fce-b7e1-598a7a21b0d6%40googlegroups.com.
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...
...
--
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/afd93d03-397d-465e-bd36-bf1ec23a2024%40googlegroups.com.
~/.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.
...
--
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/032a5917-09d1-4d8b-8fe7-7d8499bbb106%40googlegroups.com.
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!
./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
...
--
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/da445270-eaa0-48d6-b645-94c22da42c21%40googlegroups.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?
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
--
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/b1eef8d9-0c3e-4645-9664-733b7d31df60%40googlegroups.com.
./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
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>
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
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
...
--
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/24dbeef8-465e-47e5-9824-b75ad2504f6a%40googlegroups.com.
Maciej
Maciej
Maciej
still no joy
Maciej
<div c
Make sure you have properly defined user and password for kieserver on workbench as it clearly cannot be authenticated.Maciej
We have two servers:Wildfly 8.2.1.Final with Drools Workbench 6.3.0.FinalI'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.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/2b5b26de-dca8-4b72-a6e3-f89d5e5dda45%40googlegroups.com.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/cce02db5-efb0-4c53-bdb2-7855ca4a595c%40googlegroups.com.
Maciej
Maciej
Maciej
still no joy
Maciej
<div c
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/a6770df2-fbd6-4ad2-96df-bf8b3f218e21%40googlegroups.com.
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:]
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]--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/CAKumxBz0EbPcf_7z7r5shx%2B%3Dz6sCOpcK-ox%3D-91%3Dv_ge3m_oCg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/CAD0dhhSSaX3q1i%3DfBTSQwHCCqsmrfw5YsDjBOi5RoaQ2PPnDQQ%40mail.gmail.com.
QuinnMany Thanks,2) the ultimate goal to get this working: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?
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-SNAPSHOTOn Sun, Aug 6, 2017 at 2:45 PM, Quin Zhou <quin...@gmail.com> wrote:You can find the whole settings.xml referenced in server startup cmd in this thread. What else can I look into now?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.The repo is from nexus: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.
<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>
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
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/CAKumxBzcfdEr-svx7VeuygogBnPpTy7xOPBfcYudf4nSm2S3CA%40mail.gmail.com.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/f0274cd5-22fd-4a78-9084-59e1e231857e%40googlegroups.com.
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?
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 e7afd2e2c208445f7eed4f63758ad303766dfd5dsince 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.htmlcheck if the file was downloaded at all to the kie server serverintegration between kie server and workbench works as expected (when you compare with previous logs where it couldn’t find the artifact at all).MaciejOn 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.xmland that should do the trickMaciejOn 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 -
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: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 -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 localhostSettings.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
We have two servers:Wildfly 8.2.1.Final with Drools Workbench 6.3.0.FinalI'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.
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.
--
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/5c902984-4c98-4f29-b62b-2656cca31635%40googlegroups.com.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/40bdfe34-bf55-412a-886f-a9a63405a118%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to drools...@googlegroups.com.