gpt4 book ai didi

tomcat - "java.lang.RuntimeException: Cannot find KieModule"在使用 Tomcat 设置 Drool 中

转载 作者:行者123 更新时间:2023-11-28 22:39:12 24 4
gpt4 key购买 nike

我们已经使用 Tomcat 8.0 设置和部署了 Drool 7.15 应用程序。但是,问题是当我们尝试部署规则时出现以下异常。 java.lang.RuntimeException:找不到 KieModule:com.tisl.mpl.ruleengine:rrt-kjar:1.0.0

修复这个问题的方法是什么?同样的 jar 在 Wildfly(jBOSS) 中运行良好

14-Sep-2019 18:24:06.510 SEVERE [http-nio-8080-exec-8] org.kie.server.services.impl.KieServerImpl.createContainer Error creating container 'RRTRULE' for module 'com.tisl.mpl.ruleengine:rrt-kjar:1.0.0' java.lang.RuntimeException: Cannot find KieModule: com.tisl.mpl.ruleengine:rrt-kjar:1.0.0 at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:117) at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:111) at org.kie.server.services.impl.KieServerImpl.createContainer(KieServerImpl.java:214) at org.kie.server.remote.rest.common.resource.KieServerRestImpl.createContainer(KieServerRestImpl.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:541) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:523) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.kie.server.services.impl.security.web.CaptureHttpRequestFilter.doFilter(CaptureHttpRequestFilter.java:42) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:645) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:810) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)

-拉姆

最佳答案

您遇到的错误有多种可能的解释。

1) 类路径上缺少 kie-ci 库 - 要解决此问题,您需要将其声明为 Maven 依赖项(或以任何其他方式将其与您的应用程序捆绑在一起)

2) 您在 ReleaseId 中输入错误,带有以下 GAV 的 KJAR 确实不存在:com.tisl.mpl.ruleengine:rrt-kjar:1.0.0

3) KJAR 确实存在,但您错误配置了 settings.xml - 即它缺少上传 KJAR 的远程存储库(或代理等)的配置

4) 您的 settings.xml 已正确配置,但它们未存储在默认位置 ~/.m2/settings.xml。如果是这种情况,您需要设置系统属性 kie.maven.settings.custom 并将其配置到 settings.xml 的位置。即./start.sh -Dkie.maven.settings.custom=/opt/kie/settings.xml

我作为 Drools 的支持工程师工作了 6 年,总是是上述情况之一。

关于tomcat - "java.lang.RuntimeException: Cannot find KieModule"在使用 Tomcat 设置 Drool 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57937865/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com