Kie Execution Server Errors when adding Container

3,043 views
Skip to first unread message

Webster Homer

unread,
May 23, 2016, 3:26:21 PM5/23/16
to Drools Usage
I am looking at using the Kie Execution Server to replace one of our applications. So I installed the 6.4.0 Final execution server in my Wildfly 8.2 server.

Following the directions I did a PUT to add the container to wildfly. It succeeded, but I noticed that there were lots of and lots of errors and warnings in the Wildfly log.
Is this expected? The request did succeed, but why all of these errors? They look bad. If this is what I should expect, then we will not be using the execution server:

14:13:13,299 WARN  [org.jboss.modules] (default task-21) Failed to define class org.kie.api.osgi.Activator in Module "deployment.kie-server.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/kie/api/osgi/Activator (Module "deployment.kie-server.war:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
...
Caused by: java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_51]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_51]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
... 61 more
Caused by: java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator from [Module "deployment.kie-server.war:main" from Service Module Loader]

and
lots of 
14:13:14,845 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type org.eclipse.jdt.internal.compiler.ast.IntersectionCastTypeReference due to class org.eclipse.jdt.internal.compiler.lookup.IntersectionCastTypeBinding overrides final method canBeSeenBy.(Lorg/eclipse/jdt/internal/compiler/lookup/Scope;)Z
14:13:14,846 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type org.eclipse.jdt.internal.compiler.ast.ReferenceExpression due to Could not initialize class org.eclipse.jdt.internal.compiler.ast.ReferenceExpression
14:13:14,847 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type org.eclipse.jdt.internal.compiler.ast.FunctionalExpression due to Could not initialize class org.eclipse.jdt.internal.compiler.ast.FunctionalExpression
14:13:14,847 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type org.eclipse.jdt.internal.compiler.ast.AllocationExpression$ResolutionState due to org.eclipse.jdt.internal.compiler.ast.AllocationExpression and org.eclipse.jdt.internal.compiler.ast.AllocationExpression$ResolutionState disagree on InnerClasses attribute
14:13:14,848 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type org.eclipse.jdt.internal.compiler.ast.TypeReference$AnnotationCollector due to org.eclipse.jdt.internal.compiler.ast.TypeReference and org.eclipse.jdt.internal.compiler.ast.TypeReference$AnnotationCollector disagree on InnerClasses attribute
14:13:14,850 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type org.drools.osgi.api.Activator due to org/osgi/framework/BundleActivator
14:13:14,851 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type org.drools.osgi.api.Activator$BundleContextInstantiator due to org/osgi/framework/BundleActivator
14:13:14,852 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type org.drools.osgi.api.Activator$DroolsServiceTracker due to org/osgi/util/tracker/ServiceTrackerCustomizer
14:13:14,873 WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-21) Unexpected error while create instance of type com.google.inject.internal.ProxyFactory due to class com.google.inject.internal.ProxyFactory cannot access its superinterface com.google.inject.internal.ConstructionProxyFactory



Webster Homer

unread,
May 23, 2016, 4:36:55 PM5/23/16
to Drools Usage
I believe that the issue is that the KIE Execution server 6.4.0.Final is not compatible with Wildfly 8.2. The errors indicate that it expects different versions of Modules than are installed in Wildfly

Maciej Swiderski

unread,
May 24, 2016, 2:24:01 AM5/24/16
to Drools Usage
This is most likely caused by your project dependencies. I believe you have declared drools-core or drools-compiler as part of your kjar dependencies and thus kie server is trying to resolve all the classes from the dependencies to see if they can be used for remote invocation. Since drools has dependency on osgi it uses that too and cannot find it, so it prints the warning messages.

To resolve that, make sure all drools, kie, jbpm dependencies are set to scope provided thus it will remove it from scanning process and should not cause these errors to be printed.

Maciej

This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you must not copy this message or attachment or disclose the contents to any other person. If you have received this transmission in error, please notify the sender immediately and delete the message and any attachment from your system. Merck KGaA, Darmstadt, Germany and any of its subsidiaries do not accept liability for any omissions or errors in this message which may arise as a result of E-Mail-transmission or for damages resulting from any unauthorized changes of the content of this message and any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its subsidiaries do not guarantee that this message is free of viruses and does not accept liability for any damages caused by any virus transmitted therewith.

Click http://www.merckgroup.com/disclaimer to access the German, French, Spanish and Portuguese versions of this disclaimer.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@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-usage/7e8db4c6-0ad9-4581-b0ff-c7a4fa733fbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Webster Homer

unread,
May 24, 2016, 11:09:45 AM5/24/16
to Drools Usage
Some of that may be true.I'm thinking that whatever benefit we'd get from the Execution Server is will not be worth the extra complexity from builds etc.

I also think that there may be more issues than making KIE dependencies "provided"

 We don't use this, but it as well as a number of injection related code comes up with errors.
Caused by: java.lang.NoClassDefFoundError: com/google/gson/JsonDeserializer
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_51]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_51]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
... 61 more
Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonDeserializer from [Module "deployment.kie-server.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
... 65 more

On Monday, May 23, 2016 at 2:26:21 PM UTC-5, Webster Homer wrote:

Maciej Swiderski

unread,
May 24, 2016, 11:48:11 AM5/24/16
to drools...@googlegroups.com
it must be a transitive dependency of another dependency of your project.

Maciej

This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you must not copy this message or attachment or disclose the contents to any other person. If you have received this transmission in error, please notify the sender immediately and delete the message and any attachment from your system. Merck KGaA, Darmstadt, Germany and any of its subsidiaries do not accept liability for any omissions or errors in this message which may arise as a result of E-Mail-transmission or for damages resulting from any unauthorized changes of the content of this message and any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its subsidiaries do not guarantee that this message is free of viruses and does not accept liability for any damages caused by any virus transmitted therewith.

Click http://www.merckgroup.com/disclaimer to access the German, French, Spanish and Portuguese versions of this disclaimer.


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

Webster Homer

unread,
May 24, 2016, 4:39:28 PM5/24/16
to Drools Usage
There was a dependency that I missed. I am now down to some errors around log4j2. I wrote a couple of functions that lets us use log4j2 calls in our rules. This may be the cause. I know log4j2 is not included in Wildfly does the Execution Server use it?

My main use case is to have JavaScript call the server to execute business rules. The only examples I've seen is an AngularJS demo that calls the server to run jBPM processes, are there examples where JavaScript calls to fire rules as a normal Rules Session? 


On Monday, May 23, 2016 at 2:26:21 PM UTC-5, Webster Homer wrote:

palak...@gmail.com

unread,
Jul 5, 2016, 9:53:55 PM7/5/16
to Drools Usage
Cool. I happy to be here and see someone faced this problem.  could you please share the dependency(if its Kjar related) which you had missed? Thanks in advance!

palak...@gmail.com

unread,
Jul 5, 2016, 10:04:56 PM7/5/16
to Drools Usage
I am seeing the below error when I add the scope to 'provided' for all KIE dependencies. Any help would be greatly appreciated. 

22:01:10,269 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/kie-server].[org.kie.server.remote.rest.common.KieServerApplication]] (http-127.0.0.1:8080-1) JBWEB000236: Servlet.service() for servlet org.kie.server.remote.rest.common.KieServerApplication threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: org/kie/remote/client/jaxb/JaxbCommandsRequest
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:367) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:235) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:211) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:576) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:543) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:128) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]
Caused by: java.lang.NoClassDefFoundError: org/kie/remote/client/jaxb/JaxbCommandsRequest
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.7.0_75]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) [rt.jar:1.7.0_75]
at java.lang.Class.getDeclaredMethods(Class.java:1860) [rt.jar:1.7.0_75]
at org.drools.compiler.rule.builder.dialect.mvel.MVELDialect.addStaticImport(MVELDialect.java:427) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.compiler.DialectCompiletimeRegistry.addStaticImport(DialectCompiletimeRegistry.java:112) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.compiler.PackageRegistry.addStaticImport(PackageRegistry.java:130) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.processFunctions(KnowledgeBuilderImpl.java:1708) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.processOtherDeclarations(KnowledgeBuilderImpl.java:1612) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildOtherDeclarations(CompositeKnowledgeBuilderImpl.java:251) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildPackages(CompositeKnowledgeBuilderImpl.java:119) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:105) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.AbstractKieModule.buildKnowledgePackages(AbstractKieModule.java:243) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:64) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:230) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieModule(KieBuilderImpl.java:222) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.kie.scanner.KieRepositoryScannerImpl.build(KieRepositoryScannerImpl.java:221) [kie-ci-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.kie.scanner.KieRepositoryScannerImpl.buildArtifact(KieRepositoryScannerImpl.java:171) [kie-ci-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:127) [kie-ci-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:122) [kie-ci-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.loadKieModuleFromMavenRepo(KieRepositoryImpl.java:130) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:116) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:93) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:115) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:111) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.kie.server.services.impl.KieServerImpl.createContainer(KieServerImpl.java:241) [kie-server-services-common-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at org.kie.server.remote.rest.common.resource.KieServerRestImpl.createContainer(KieServerRestImpl.java:91) [kie-server-rest-common-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_75]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_75]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_75]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_75]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:561) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
... 21 more
Caused by: java.lang.ClassNotFoundException: org.kie.remote.client.jaxb.JaxbCommandsRequest
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [rt.jar:1.7.0_75]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [rt.jar:1.7.0_75]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_75]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [rt.jar:1.7.0_75]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) [rt.jar:1.7.0_75]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) [rt.jar:1.7.0_75]
... 56 more
Reply all
Reply to author
Forward
0 new messages