错误创建使用名称' kieserver的bean'在运行Kie-Server-Spring-boot-sample时

发布于 2025-01-30 08:42:00 字数 956 浏览 4 评论 0原文

我正在尝试启动一个居住在此处的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如若梦似彩虹 2025-02-06 08:42:00

我永远找不到上述问题的原因。但是,我只需将以下依赖项添加到我的pom.xml,就可以构建一个工作的drools Protype应用程序

    <version.org.kie>7.69.0.Final</version.org.kie>
    <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-server-spring-boot-starter-drools</artifactId>
        <version>${version.org.kie}</version>
    </dependency>

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

    <version.org.kie>7.69.0.Final</version.org.kie>
    <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-server-spring-boot-starter-drools</artifactId>
        <version>${version.org.kie}</version>
    </dependency>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文