错误创建使用名称' kieserver的bean'在运行Kie-Server-Spring-boot-sample时
我正在尝试启动一个居住在此处的Springboot应用程序-spring-boot-sample“ rel =” nofollow noreferrer“> https://github.com/kiegroup/droolsjbpm-integration/tree/tree/main/main/main/main/kie-spring-boot/kie-boot/kie-spring-spring-boot-spring-boot-samples/kie-server-server-server-server-server-server-server-server-server-server-server-server-server-server-server--nel.-弹簧启动样本。 我克隆了存储库,并进行了Maven Clean Install.Later,当IM启动以下内容时。
org.springframework.beans.factory.factory.beancreationexception:错误创建使用类“ Kieserver”的BEAN在类路径资源[org/kie/kie/server/server/springboot/autoconfiguration/kieserverautoconfiguration.class.class.class.class.class.class]:Bean通过工厂方法失败;嵌套的例外是org.springframework.beans.BeanInstantiationException:无法实例化[org.kie.server.services.services.api.kieserver]:Factory Method'Kieserver'turd exception;嵌套异常是Java.lang.noclassDeffoundError:org/junit/runner/runner
为什么我无法将自己的头缠绕在junit类中。我尝试将Junit依赖项明确地添加到我的POM中,这是行不通的。
任何帮助将不胜感激,谢谢。
I am trying to start a springboot application residing here https://github.com/kiegroup/droolsjbpm-integration/tree/main/kie-spring-boot/kie-spring-boot-samples/kie-server-spring-boot-sample.
I cloned the repo and did maven clean install.Later when Im starting the app Im seeing below.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kieServer' defined in class path resource [org/kie/server/springboot/autoconfiguration/KieServerAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.kie.server.services.api.KieServer]: Factory method 'kieServer' threw exception; nested exception is java.lang.NoClassDefFoundError: org/junit/runner/Runner
Why is the application classloader looking for a junit class is what I am not able wrap my head around. I tried adding junit dependencies explicitly to my pom that doesn't work.
Any help is appreciated,thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我永远找不到上述问题的原因。但是,我只需将以下依赖项添加到我的pom.xml,就可以构建一个工作的drools Protype应用程序
I could never find the cause for above issue. However I was able to build a working Drools protype application just by adding below dependency to my pom.xml