<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=SL link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Does it work if you run you commands in batch?</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>--</p><p class=MsoNormal>Tomaž</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:dometec@gmail.com">Domenico Briganti</a><br><b>Sent: </b>petek, 15. december 2017 09:39<br><b>To: </b><a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br><b>Subject: </b>[wildfly-dev] Add persistend store to infinispan via CLI fail</p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Hi all!</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal> I'm trying to configure a persistent file for a local-cache in</p><p class=MsoNormal>widlfly-11 via CLI but fail, it however works if I put the</p><p class=MsoNormal>configuration directly on standalone.xml:</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>&lt;local-cache...</p><p class=MsoNormal>  &lt;file-store path=&quot;authtoken.dat&quot; relative-to=&quot;jboss.home.dir&quot;</p><p class=MsoNormal>passivation=&quot;false&quot; preload=&quot;true&quot; purge=&quot;false&quot;/&gt;</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I try this CLI command in a fresh wildfly-11 installation, and the last</p><p class=MsoNormal>fail:</p><p class=MsoNormal> </p><p class=MsoNormal>[standalone@localhost:9990 /] /subsystem=infinispan/cache-</p><p class=MsoNormal>container=reservation:add</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>{&quot;outcome&quot; =&gt; &quot;success&quot;}</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>[standalone@localhost:9990 /] /subsystem=infinispan/cache-</p><p class=MsoNormal>container=reservation/local-cache=authtoken:add(statistics-</p><p class=MsoNormal>enabled=true)</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>{&quot;outcome&quot; =&gt; &quot;success&quot;}</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>[standalone@localhost:9990 /] /subsystem=infinispan/cache-</p><p class=MsoNormal>container=reservation/local-</p><p class=MsoNormal>cache=authtoken/store=file:add(path=authtoken.dat,relative-</p><p class=MsoNormal>to=jboss.home.dir,passivation=false,preload=true,purge=true)</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>{</p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&quot;outcome&quot; =&gt; &quot;failed&quot;,</p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&quot;failure-description&quot; =&gt; &quot;WFLYCTL0158: Operation handler failed:</p><p class=MsoNormal>org.jboss.msc.service.DuplicateServiceException: Service</p><p class=MsoNormal>org.wildfly.clustering.infinispan.cache.store.reservation.authtoken is</p><p class=MsoNormal>already registered&quot;,</p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&quot;rolled-back&quot; =&gt; true</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Maybe I submit a wrong CLI command?</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks,</p><p class=MsoNormal>Domenico Briganti</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>_______________________________________________</p><p class=MsoNormal>wildfly-dev mailing list</p><p class=MsoNormal>wildfly-dev@lists.jboss.org</p><p class=MsoNormal>https://lists.jboss.org/mailman/listinfo/wildfly-dev</p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>