简体   繁体   English

找不到 CDI BeanManager

[英]Unable to find CDI BeanManager

I'm trying to set up a simple application to use SpringBoot 2.1.1 and Java 11 over Wildfly 14 (because Wildfly 15 isn't supported by Eclipse).我正在尝试设置一个简单的应用程序以在 Wildfly 14 上使用 SpringBoot 2.1.1 和 Java 11(因为 Eclipse 不支持 Wildfly 15)。

The deploy failed because Wildfly cannot find the CDI BeanManager in the project.部署失败,因为 Wildfly 在项目中找不到 CDI BeanManager。 I'm only trying to follow the simple (official) tutorial, so I don't understand why the error appears.我只是想遵循简单的(官方)教程,所以我不明白为什么会出现错误。

This is the code:这是代码:

pom.xml pom.xml

<properties>
    <start-class>main</start-class>
</properties>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.1.RELEASE</version>
</parent>

<!-- Add typical dependencies for a web application -->
<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
</dependencies>

<!-- Package as an executable jar -->
<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

Application.java应用程序.java

package main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableAutoConfiguration
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}

This is the stacktrace:这是堆栈跟踪:

12:51:13,365 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "SpringBoot-0.0.1.war" (runtime-name: "SpringBoot-0.0.1.war") WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by io.undertow.util.FlexBase64$1 (jar:file:/C:/Users/87003556/Documents/Java/Wildfly%2014/modules/system/layers/base/io/undertow/core/main/undertow-core-2.0.13.Final.jar!/) to constructor java.lang.String(char[],boolean) WARNING: Please consider reporting this to the maintainers of io.undertow.util.FlexBase64$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 12:51:13,429 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443 12:51:13,531 INFO [org.jboss.ws.common.management] (MSC service thread 1-8) JBWS022052: Startin 12:51:13,365 INFO [org.jboss.as.server.deployment](MSC 服务线程 1-8)WFLYSRV0027:开始部署“SpringBoot-0.0.1.war”(运行时名称:“SpringBoot-0.0.1” .war") 警告:发生非法反射访问操作警告:io.undertow.util.FlexBase64$1 非法反射访问(jar:file:/C:/Users/87003556/Documents/Java/Wildfly%2014/modules/ system/layers/base/io/undertow/core/main/undertow-core-2.0.13.Final.jar!/) 到构造函数 java.lang.String(char[],boolean) 警告:请考虑将此报告给io.undertow.util.FlexBase64$1 的维护者 警告:使用 --illegal-access=warn 启用进一步非法反射访问操作的警告警告:所有非法访问操作将在未来版本中被拒绝 12:51:13,429 INFO [org .wildfly.extension.undertow](MSC 服务线程 1-6)WFLYUT0006:Undertow HTTPS 监听器 https 监听 127.0.0.1:8443 12:51:13,531 INFO [org.jboss.ws.common.management](MSC 服务线程 1 -8) JBWS022052:开始g JBossWS 5.2.3.Final (Apache CXF 3.2.5.jbossorg-1) 12:51:15,606 WARN [org.jboss.as.ee] (MSC service thread 1-1) WFLYEE0007: Not installing optional component org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener due to an exception (enable DEBUG log level to see the cause) 12:51:15,606 WARN [org.jboss.as.ee] (MSC service thread 1-1) WFLYEE0007: Not installing optional component org.springframework.http.server.reactive.ServletHttpHandlerAdapter$HandlerResultAsyncListener due to an exception (enable DEBUG log level to see the cause) 12:51:15,622 WARN [org.jboss.as.ee] (MSC service thread 1-1) WFLYEE0007: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to an exception (enable DEBUG log level to see the cause) 12:51:15,622 WARN [org.jboss.as.ee] (MSC service thread 1-1) WFLYEE0007: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due t g JBossWS 5.2.3.Final (Apache CXF 3.2.5.jbossorg-1) 12:51:15,606 WARN [org.jboss.as.ee](MSC 服务线程 1-1)WFLYEE0007:未安装可选组件 org.springframework .http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener 由于异常(启用 DEBUG 日志级别以查看原因) 12:51:15,606 WARN [org.jboss.as.ee](MSC 服务线程 1-1) WFLYEE0007: Not安装可选组件 org.springframework.http.server.reactive.ServletHttpHandlerAdapter$HandlerResultAsyncListener 由于异常(启用 DEBUG 日志级别以查看原因)12:51:15,622 WARN [org.jboss.as.ee](MSC 服务线程 1 -1) WFLYEE0007:由于异常,未安装可选组件 org.springframework.http.server.ServletServerHttpAsyncRequestControl(启用 DEBUG 日志级别以查看原因)12:51:15,622 WARN [org.jboss.as.ee](MSC 服务线程 1-1) WFLYEE0007:未安装可选组件 org.springframework.web.context.request.async.StandardServletAsyncWebRequest 由于 t o an exception (enable DEBUG log level to see the cause) 12:51:15,622 WARN [org.jboss.as.ee] (MSC service thread 1-1) WFLYEE0007: Not installing optional component org.springframework.http.server.reactive.ServletServerHttpRequest$RequestAsyncListener due to an exception (enable DEBUG log level to see the cause) 12:51:15,794 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-7) ISPN000128: Infinispan version: Infinispan 'Estrella Galicia' 9.3.1.Final 12:51:15,966 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 72) WFLYCLINF0002: Started client-mappings cache from ejb container 12:51:16,075 INFO [io.undertow.servlet] (ServerService Thread Pool -- 85) 1 Spring WebApplicationInitializers detected on classpath 12:51:16,153 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 85) Initializing Mojarra 2.3.5.SP2 for context '/SpringBoot-0.0.1' 12:51:16,761 SEVERE [javax.enterprise.resource.webcontainer.jsf.con o 异常(启用 DEBUG 日志级别以查看原因)12:51:15,622 WARN [org.jboss.as.ee](MSC 服务线程 1-1)WFLYEE0007:未安装可选组件 org.springframework.http.server。 react.ServletServerHttpRequest$RequestAsyncListener 由于异常(启用 DEBUG 日志级别以查看原因)12:51:15,794 INFO [org.infinispan.factories.GlobalComponentRegistry](MSC 服务线程 1-7)ISPN000128:Infinispan 版本:Infinispan 'Estrella Galicia' 9.3.1.Final 12:51:15,966 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 72) WFLYCLINF0002:从 ejb 容器启动客户端映射缓存 12:51:16,075 INFO [信息] .undertow.servlet] (ServerService Thread Pool -- 85) 1 Spring WebApplicationInitializers 在类路径上检测到 12:51:16,153 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService 线程池 -- 85) 初始化 Mojarra 2.3。 5.SP2 上下文 '/SpringBoot-0.0.1' 12:51:16,761 严重 [javax.enterprise.resource.webcontainer.jsf.con fig] (ServerService Thread Pool -- 85) Critical error during deployment: : com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly.图] (ServerService 线程池 -- 85) 部署期间出现严重错误::com.sun.faces.config.ConfigurationException:工厂“javax.faces.lifecycle.ClientWindowFactory”未正确配置。 at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:357) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:243) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:443) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:237) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:216) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) ... at org.jboss.threads.JBossThread.run(JBossThread.java:485) Caused by: javax.faces.FacesException: Unable to find CDI BeanM在 com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:357) 在 com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:243) 在 com.sun.faces.config .ConfigManager.initialize(ConfigManager.java:443) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:237) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:216) 在 io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185) 在 io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1 .call(ServletRequestContextThreadSetupAction.java:42) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) ... at org.jboss.threads.JBossThread.run(JBossThread.java:485) 引起作者:javax.faces.FacesException:无法找到 CDI BeanM anager at com.sun.faces.application.ApplicationImpl.isJsf23(ApplicationImpl.java:2714) at com.sun.faces.application.ApplicationImpl.addELResolver(ApplicationImpl.java:549) ... at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:292) at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:354) ... 29 more位于 com.sun.faces.application.ApplicationImpl.isJsf23(ApplicationImpl.java:2714) 的 anager,位于 com.sun.faces.application.ApplicationImpl.addELResolver(ApplicationImpl.java:549) ...位于 javax.faces.FactoryFinder.getFactory (FactoryFinder.java:292) 在 com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:354) ... 29 更多

12:51:16,761 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 85) MSC000001: Failed to start service jboss.deployment.unit."SpringBoot-0.0.1.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."SpringBoot-0.0.1.war".undertow-deployment: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly. 12:51:16,761 错误 [org.jboss.msc.service.fail](ServerService 线程池 - 85)MSC000001:无法启动服务 jboss.deployment.unit。“SpringBoot-0.0.1.war”.undertow-deployment : org.jboss.msc.service.StartException in service jboss.deployment.unit."SpringBoot-0.0.1.war".undertow-deployment: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces。 config.ConfigurationException:未正确配置工厂“javax.faces.lifecycle.ClientWindowFactory”。 at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ... at java.base/java.lang.Thread.run(Thread.java:825) at org.jboss.threads.JBossThread.run(JBossThread.java:485) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly.在 org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81) 在 java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ...在 java .base/java.lang.Thread.run(Thread.java:825) at org.jboss.threads.JBossThread.run(JBossThread.java:485) 引起:java.lang.RuntimeException:java.lang.RuntimeException:com .sun.faces.config.ConfigurationException:未正确配置工厂“javax.faces.lifecycle.ClientWindowFactory”。 at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78) ... 8 more Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly.在 io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252) 在 org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96) 在 org.wildfly.extension.undertow.deploy .UndertowDeploymentService$1.run(UndertowDeploymentService.java:78) ... 8 导致:java.lang.RuntimeException:com.sun.faces.config.ConfigurationException:工厂'javax.faces.lifecycle.ClientWindowFactory'没有正确配置. at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:315) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:216) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) ... at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250) ... 10 more Caused by: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly.在 com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:315) 在 io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) 在 io.undertow.servlet.core.DeploymentManagerImpl$1。 call(DeploymentManagerImpl.java:216) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) .. . 在 io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250) ... 10 多个引起:com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' 不是配置正确。 at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:357) ... at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:237) ... 26 more Caused by: javax.faces.FacesException: Unable to find CDI BeanManager at com.sun.faces.application.ApplicationImpl.isJsf23(ApplicationImpl.java:2714) at com.sun.faces.application.ApplicationImpl.addELResolver(ApplicationImpl.java:549) at org.jboss.as.jsf.injection.weld.WeldApplication.(WeldApplication.java:60) at org.jboss.as.jsf.injection.weld.WeldApplicationFactory.getApplication(WeldApplicationFactory.java:52) at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:88) ... at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:292) at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:354) ... 29 more在 com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:357) ... 在 com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:237) ... 26 更多: javax.faces.FacesException: 无法在 com.sun.faces.application.ApplicationImpl.isJsf23(ApplicationImpl.java:2714) 的 com.sun.faces.application.ApplicationImpl.addELResolver(ApplicationImpl.java:549) 找到 CDI BeanManager在 org.jboss.as.jsf.injection.weld.WeldApplication.(WeldApplication.java:60) 在 org.jboss.as.jsf.injection.weld.WeldApplicationFactory.getApplication(WeldApplicationFactory.java:52) 在 com.sun。 faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:88) ... 在 javax.faces.FactoryFinder.getFactory(FactoryFinder.java:292) 在 com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java) :354) ... 29 更多

12:51:16,762 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "SpringBoot-0.0.1.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\\"SpringBoot-0.0.1.war\\".undertow-deployment" => "java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly. Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly. Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly. Caused by: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly. Cau 12:51:16,762 错误 [org.jboss.as.controller.management-operation](控制器启动线程)WFLYCTL0013:操作(“部署”)失败 - 地址:([(“部署”=>“SpringBoot-0.0.1 .war")]) - 失败描述:{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\\"SpringBoot-0.0.1.war\\".undertow-deployment" => "java.lang. RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' 没有正确配置。引起:java.lang.RuntimeException: java.lang.RuntimeException: com。 sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' 没有正确配置。导致:java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle. ClientWindowFactory' 没有正确配置。引起:com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' 没有正确配置。Cau sed by: javax.faces.FacesException: Unable to find CDI BeanManager"}} 12:51:16,762 INFO [org.jboss.as.server] (ServerService Thread Pool -- 42) WFLYSRV0010: Deployed "SpringBoot-0.0.1.war" (runtime-name : "SpringBoot-0.0.1.war") 12:51:16,762 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."SpringBoot-0.0.1.war".undertow-deployment: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly. sed 者:javax.faces.FacesException:无法找到 CDI BeanManager"}} 12:51:16,762 信息 [org.jboss.as.server] (ServerService 线程池 -- 42) WFLYSRV0010:部署了“SpringBoot-0.0.1. war”(运行时名称:“SpringBoot-0.0.1.war”)12:51:16,762 INFO [org.jboss.as.controller](控制器启动线程)WFLYCTL0183:服务状态报告 WFLYCTL0186:服务启动失败:服务 jboss.deployment.unit."SpringBoot-0.0.1.war".undertow-deployment: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle .ClientWindowFactory' 配置不正确。

As we discussed in the comments, the solution might be as simple as adding the cdi-api to your pom.xml dependencies.正如我们在评论中所讨论的,解决方案可能就像将cdi-api添加到pom.xml依赖项一样简单。 It's not included within the dependencies you specified.它不包含在您指定的依赖项中。

<dependency> 
    <groupId>javax.enterprise</groupId> 
    <artifactId>cdi-api</artifactId> 
    <version>1.2</version> 
</dependency>

Remember, is necessary to include the context that start the CDI configuration.请记住,必须包含启动 CDI 配置的上下文。

<Resource name="BeanManager" auth="Container" type="javax.enterprise.inject.spi.BeanManager" factory="org.apache.webbeans.container.ManagerObjectFactory" />

You can check the all setup here 您可以在此处检查所有设置

Or you can review this blog或者您可以查看此博客

Not directly related to your Problem, but maybe it might help someone else.与您的问题没有直接关系,但也许对其他人有帮助。

We are using SpringBoot with joinfaces , in our case the problem was caused by an error in the faces-config.xml - specifically in the header part <faces-config ...> .我们将 SpringBoot 与joinfaces一起使用,在我们的案例中,问题是由faces-config.xml的错误引起的 - 特别是在标题部分<faces-config ...> Maybe check your git , if the file was updated recently.也许检查你的git ,如果文件最近更新了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MyBatis CDI beanManager.getBeans无法在GlassFish 4和4.1中找到SqlSessionFactory bean - MyBatis CDI beanManager.getBeans fails to find SqlSessionFactory bean in GlassFish 4 and 4.1 CDI:通过静态方法获取对beanManager的引用 - CDI: get reference to beanManager via static method CDI.current()。select()。get()和BeanManager.getReference()在功能上是否相同? - Are CDI.current().select().get() and BeanManager.getReference() functionally equivalent? 如何通过BeanManager创建和销毁CDI(Weld)托管Bean? - How to create and destroy CDI (Weld) Managed Beans via the BeanManager? PAX-CDI:如何在不使用CDI的情况下获取对捆绑软件中BeanManager的引用 - PAX-CDI: how to get reference to BeanManager in bundle without using CDI java.lang.IllegalStateException:在此环境中CDI API不可用。 在org.omnifaces.config.BeanManager处 - java.lang.IllegalStateException: CDI API is not available in this environment. at org.omnifaces.config.BeanManager 无法访问 CDI - Unable to access CDI 无法使用cdi注入bean:NullPointerException - Unable to inject bean with cdi : NullPointerException 无法轻松注入CDI Bean - Unable to Inject CDI Bean with rest Easy 如何使用带有参数的自定义注释查找CDI bean? - How to find CDI beans with a custom annotation with parameters?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM