【问题标题】:Wildfly 19 - error WFLYCTL0362: Capabilities required by resourceWildfly 19 - 错误 WFLYCTL0362:资源所需的功能
【发布时间】:2021-06-29 20:23:07
【问题描述】:

我在WildFly 19 standalone.xml的“infinispan”子系统中添加了一个缓存容器,如下:

        <cache-container name="appCacheContainer" default-cache="passivation">
            <local-cache name="appCache">
                    <!-- expiration, eviction, security... -->
            </local-cache>
        </cache-container>

但是,当我启动 Wildfly 时,我收到以下错误:

 00:25:41,885 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=infinispan/cache-container=appCacheContainer' are not available:
org.wildfly.clustering.infinispan.cache-configuration.appCacheContainer.passivation; Possible registration points for this capability: 
    /subsystem=infinispan/cache-container=*/local-cache=*
    /subsystem=infinispan/cache-container=*/invalidation-cache=*
    /subsystem=infinispan/cache-container=*/replicated-cache=*
    /subsystem=infinispan/cache-container=*/distributed-cache=*
    /subsystem=infinispan/cache-container=*/scattered-cache=*
00:25:41,893 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

我错过了任何配置设置吗?

【问题讨论】:

    标签: wildfly infinispan


    【解决方案1】:

    我已通过从缓存容器标签中删除属性“default-cache”解决了这个问题。

    现在,我的缓存容器如下所示:

        <cache-container name="appCacheContainer">
            <local-cache name="appCache">
                    <!-- expiration, eviction, security... -->
            </local-cache>
        </cache-container>
    

    但是,我不确定为什么属性“default-cache”会产生错误。

    【讨论】:

    • 通过设置默认缓存,您在请求默认缓存时要求获取称为“钝化”的缓存,例如通过调用无参数的cacheManager.getCache()。但是,在缓存列表(错误列表可能的类型)中没有定义具有此名称的缓存。
    猜你喜欢
    • 2020-11-01
    • 2017-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-31
    • 1970-01-01
    • 2021-06-02
    • 1970-01-01
    相关资源
    最近更新 更多