尝试使用infinispan提供的 Wildfly 10.1.0.Final ,但在线查看任何文档只会产生以下结果。似乎输出中几乎有没有帮助的信息。
有关如何进一步排除故障并最终解决错误的任何想法?
注意:
将Cache
类替换为HashMap
(并删除@Resource
)会导致问题消失,但显然我想使用Cache
。
相关的pom.xml
<infinispan.version>8.2.4.Final</infinispan.version>
...
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-commons</artifactId>
<version>${infinispan.version}</version>
<scope>provided</scope>
</dependency>
相关的standalone.xml
<subsystem xmlns="urn:jboss:domain:ee:4.0">
<global-modules>
<module name="org.infinispan" slot="main"/>
<module name="org.infinispan.commons"/>
</global-modules>
...
</subsystem>
...
<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
...
<cache-container name="replicated-cache" default-cache="default" module="org.wildfly.clustering.server" jndi-name="infinispan/replicated-cache">
<transport lock-timeout="60000"/>
<replicated-cache name="default" jndi-name="infinispan/replicated-cache/default" mode="SYNC">
<transaction locking="OPTIMISTIC" mode="FULL_XA"/>
<eviction strategy="NONE"/>
</replicated-cache>
</cache-container>
</subsystem>
相关代码:
@Path("/")
@NoAuthentication
@Slf4j
@Stateful
public class SomeEndpoint {
@Resource(lookup = "java:jboss/infinispan/replicated-cache/default")
private Cache<String, AudioCache> cache;
// ...
}
服务器日志输出:
17:32:24,144 INFO [org.hibernate.hql.internal.QueryTranslatorFactoryInitiator] (ServerService Thread Pool -- 26) HHH000397: Using ASTQueryTranslatorFactory
17:32:24,392 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "tcs.ear")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
17:32:24,394 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "some.ear" was rolled back with the following failure message: {"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
17:32:24,435 INFO [org.infinispan.eviction.impl.PassivationManagerImpl] (ServerService Thread Pool -- 22) ISPN000029: Passivating all entries to disk
17:32:24,438 INFO [org.infinispan.eviction.impl.PassivationManagerImpl] (ServerService Thread Pool -- 22) ISPN000030: Passivated 0 entries in 2 milliseconds
17:32:24,439 INFO [org.infinispan.eviction.impl.PassivationManagerImpl] (ServerService Thread Pool -- 69) ISPN000029: Passivating all entries to disk
17:32:24,440 INFO [org.infinispan.eviction.impl.PassivationManagerImpl] (ServerService Thread Pool -- 69) ISPN000030: Passivated 0 entries in 0 milliseconds
答案 0 :(得分:1)
为了澄清一下,您的应用程序中是否包含任何Infinispan罐子?如果是这样,请删除它们。
这是一条奇怪的错误消息,因为通常这些错误与无法启动的服务列表相关联。
你能用WF11重现这个吗?