2 Replies Latest reply on Jun 21, 2016 3:49 PM by Rafael Pereira

    Infinispan Server enabling file store

    Rafael Pereira Newbie

      Dear Community,

       

      I'm trying to use Infinispan Server 8.2.2.Final in standalone mode with persistence to a file store like the following config in standalone.xml:

       

              <subsystem xmlns="urn:infinispan:server:core:8.2" default-cache-container="local">
                  <cache-container name="local" default-cache="pessoa" statistics="true">
                      <global-state/>
                      <local-cache name="pessoa" start="EAGER">                 
                          <persistence passivation="false">
                              <file-store
                                  shared="false"
                                  preload="true"
                                  purge="false"
                                  path="${java.io.tmpdir}">
                                  <write-behind flush-lock-timeout="15000" thread-pool-size="5" />
                              </file-store>
                          </persistence>
                      </local-cache>
                  </cache-container>
              </subsystem>
      
      

       

      But When I start standalone.sh the following error appears:

       

      5:13:57,168 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
        at org.jboss.as.server.ServerService.boot(ServerService.java:356)
        at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
        at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[144,21]
      Message: WFLYCTL0198: Unexpected element '{urn:infinispan:server:core:8.2}persistence' encountered
        at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:89)
        at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.parseCacheElement(InfinispanSubsystemXMLReader.java:986)
        at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.parseLocalCache(InfinispanSubsystemXMLReader.java:720)
        at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.parseContainer(InfinispanSubsystemXMLReader.java:245)
        at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.readElement(InfinispanSubsystemXMLReader.java:95)
        at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.readElement(InfinispanSubsystemXMLReader.java:68)
        at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
        at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
        at org.jboss.as.server.parsing.StandaloneXml_4.parseServerProfile(StandaloneXml_4.java:546)
        at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:242)
        at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
        at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
        at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
        ... 3 more
      
      15:13:57,170 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      
      

       

       

      I'm following the urn:infinispan:config:8.2 documentation for standard infinispan. Is there a way I can configure persistence in Infinispan Server? If yes, is there a place with documented configuration options?


      Thank you.

       

      Best Regards