Grails 5.2 无法部署到 JBoss EAP 7.4

问题描述 投票:0回答:1

Grails 5.2

  1. 创建应用程序 helloworld
  2. create-controller hello(添加渲染“Hello” 线)
  3. 将 jboss-deployment-struct.xml 文件添加到 WEB-INF 文件夹以实现 JBoss 日志记录兼容性。
  4. 运行应用程序(有效)
  5. 战争
  6. 部署到 JBoss EAP 7.4 并收到以下错误
    ERROR [org.springframework.boot.SpringApplication] (ServerService Thread Pool -- 85) Application run failed: io.micronaut.context.exceptions.NoSuchBeanException: No bean of type [io.micronaut.context.event.ApplicationEventPublisher<io.micronaut.context.event.StartupEvent>] exists. Make sure the bean is not disabled by bean requirements (enable trace logging for 'io.micronaut.context.condition' to check) and if the bean is enabled then ensure the class is declared a bean and annotation processing is enabled (for Java and Kotlin the 'micronaut-inject-java' dependency should be configured as an annotation processor).
    at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2778)

我确实将 is.micronaut.context.condition 的日志记录级别设置为 TRACE,但 TRACE 级别没有记录任何内容。

我添加的 JBoss jboss-deployment-struct.xml 文件(我认为它是 JBoss EAP 的标准)如下所示。我不相信这是相关的,我只是将其包含在这里,以便其他人可以重现我生成 war 文件的操作。

<jboss-deployment-structure>
<deployment>
    <!-- Exclusions allow you to prevent the server from automatically adding some dependencies     -->
    <exclusions>
        <module name="org.slf4j" />
        <module name="org.slf4j.impl" />
    </exclusions>
</deployment>

如何使 grails 5 应用程序可部署到 JBoss EAP 7.4?

grails jboss jboss-eap-7 grails-5
1个回答
0
投票

你解决这个问题了吗?我也面临着同样的问题。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.