[wildfly-dev] Add persistend store to infinispan via CLI fail

Tomaž Cerar tomaz.cerar at gmail.com
Fri Dec 15 05:37:03 EST 2017


Does it work if you run you commands in batch?

--
Tomaž

From: Domenico Briganti
Sent: petek, 15. december 2017 09:39
To: wildfly-dev at lists.jboss.org
Subject: [wildfly-dev] Add persistend store to infinispan via CLI fail

Hi all!

 I'm trying to configure a persistent file for a local-cache in
widlfly-11 via CLI but fail, it however works if I put the
configuration directly on standalone.xml:

<local-cache...
  <file-store path="authtoken.dat" relative-to="jboss.home.dir"
passivation="false" preload="true" purge="false"/>

I try this CLI command in a fresh wildfly-11 installation, and the last
fail:
 
[standalone at localhost:9990 /] /subsystem=infinispan/cache-
container=reservation:add

{"outcome" => "success"}


[standalone at localhost:9990 /] /subsystem=infinispan/cache-
container=reservation/local-cache=authtoken:add(statistics-
enabled=true)

{"outcome" => "success"}


[standalone at localhost:9990 /] /subsystem=infinispan/cache-
container=reservation/local-
cache=authtoken/store=file:add(path=authtoken.dat,relative-
to=jboss.home.dir,passivation=false,preload=true,purge=true)

{
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0158: Operation handler failed:
org.jboss.msc.service.DuplicateServiceException: Service
org.wildfly.clustering.infinispan.cache.store.reservation.authtoken is
already registered",
    "rolled-back" => true
}


Maybe I submit a wrong CLI command?

Thanks,
Domenico Briganti


_______________________________________________
wildfly-dev mailing list
wildfly-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20171215/766830cb/attachment-0001.html 


More information about the wildfly-dev mailing list