Grails 5.2
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?
你解决这个问题了吗?我也面临着同样的问题。