有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

从Wildfly 8.2迁移到Wildfly 11后的java无限期问题

我想把我的项目从Wildfly 8.2升级到新版本(即11版)。 当然在WF8上。2.一切正常。 在使用jboss迁移工具并尝试在较新版本上部署软件包后,我每次都得到:

12:55:36,838 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "my-app.war")]) - failure description: { "WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.jboss.infinispan.container.myapp"], "WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.naming.context.java.module.myapp-core.myapp.env.\"com.myapp.core.midware.server.services.ws.services.SingletonEJB\"._embeddedCacheContainer is missing ] }

我不知道该怎么办。我试图将InfiniteSpan从8.2(版本6.0.2-Final)移动,但整个WF应用程序无法启动。现在我更新pom。xml来获取更新版本(8.2.8-Final),制作包,但它仍然出现

甚至我也试图从文件(com.myapp.core.midware.server.services.ws.services.SingletonEJB)中发表评论:

//  @Resource(lookup="java:jboss/infinispan/container/nmarket")
//  private CacheContainer _embeddedCacheContainer;

并为其分配了新的DefaultCacheManager以供参考:

_cacheManager = new DefaultCacheManager();   //_embeddedCacheContainer.getCache().getCacheManager();

它出现了

谢谢你的帮助

编辑:

这是独立完整版的InfiniteSpan部分。xml:

<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
        <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan">
            <local-cache name="passivation">
                <transaction mode="BATCH"/>
                <file-store passivation="true" purge="false"/>
            </local-cache>
            <local-cache name="persistent">
                <transaction mode="BATCH"/>
                <file-store passivation="false" purge="false"/>
            </local-cache>
            <local-cache name="concurrent">
                <file-store passivation="true" purge="false"/>
            </local-cache>
        </cache-container>
        <cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan">
            <local-cache name="passivation">
                <transaction mode="BATCH"/>
                <file-store passivation="true" purge="false"/>
            </local-cache>
            <local-cache name="persistent">
                <transaction mode="BATCH"/>
                <file-store passivation="false" purge="false"/>
            </local-cache>
        </cache-container>
        <cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan">
            <local-cache name="entity">
                <transaction mode="NON_XA"/>
                <eviction strategy="LRU" max-entries="10000"/>
                <expiration max-idle="100000"/>
            </local-cache>
            <local-cache name="local-query">
                <transaction mode="NONE"/>
                <eviction strategy="LRU" max-entries="10000"/>
                <expiration max-idle="100000"/>
            </local-cache>
            <local-cache name="timestamps">
                <transaction mode="NONE"/>
                <eviction strategy="NONE"/>
            </local-cache>
        </cache-container>
        <cache-container name="server" default-cache="default" module="org.wildfly.clustering.server">
            <local-cache name="default">
                <transaction mode="BATCH"/>
            </local-cache>
        </cache-container>
    </subsystem>

共 (0) 个答案