]
Brian Stansberry updated WFLY-4028:
-----------------------------------
Component/s: Clustering
Can't register cache-container with more than one local-cache
entries
---------------------------------------------------------------------
Key: WFLY-4028
URL:
https://issues.jboss.org/browse/WFLY-4028
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 9.0.0.Alpha1
Reporter: Dmitry Lisovsky
Assignee: Jason Greene
When I try to add my cache-container with more then one local-cache entries in
standalone-full.xml I got error:
{noformat}
ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 38)
WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "infinispan"),
("cache-container" => "my-container-name"),
("local-cache" => "my-2nd-local-cache-name")
]): org.jboss.msc.service.DuplicateServiceException: Service
jboss.naming.context.java.jboss.true is already registered
at
org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at
org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:767)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at
org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at
org.jboss.as.controller.OperationContextImpl$ContextServiceBuilder.install(OperationContextImpl.java:1866)
[wildfly-controller-1.0.0.Alpha8.jar:1.0.0.Alpha8]
at
org.jboss.as.clustering.infinispan.subsystem.CacheAddHandler.installJndiService(CacheAddHandler.java:318)
at
org.jboss.as.clustering.infinispan.subsystem.CacheAddHandler.installRuntimeServices(CacheAddHandler.java:225)
at
org.jboss.as.clustering.infinispan.subsystem.CacheAddHandler.performRuntime(CacheAddHandler.java:180)
at
org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:131)
[wildfly-controller-1.0.0.Alpha8.jar:1.0.0.Alpha8]
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:695)
[wildfly-controller-1.0.0.Alpha8.jar:1.0.0.Alpha8]
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:530)
[wildfly-controller-1.0.0.Alpha8.jar:1.0.0.Alpha8]
at
org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:303)
[wildfly-controller-1.0.0.Alpha8.jar:1.0.0.Alpha8]
at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:298)
[wildfly-controller-1.0.0.Alpha8.jar:1.0.0.Alpha8]
at
org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:355)
[wildfly-controller-1.0.0.Alpha8.jar:1.0.0.Alpha8]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_65]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
[jboss-threads-2.1.1.Final.jar:2.1.1.Final]
{noformat}
The XML I'm trying to add:
{noformat}
<cache-container name="my-container-name"
jndi-name="java:jboss/infinispan/container/my-container-name">
<local-cache name="my-1st-local-cache-name"
batching="true">
<eviction strategy="LRU"
max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="my-2nd-local-cache-name"
batching="true">
<eviction strategy="LRU"
max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="my-3rd-local-cache-name"
batching="true">
<eviction strategy="LRU"
max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
</cache-container>
{noformat}
In the Wildfly 8.1.0 it worked OK.