3 Replies Latest reply on Mar 27, 2015 8:42 AM by mmr11408

    Issues upgrading infinispan 6.0 to 7.1.1

    mmr11408

      My configuration file that used to work before now gets an error after the upgrade. Unless I missed it, neither "Release notes 7.1.1.Final" nor "Fixed issues 7.1.1.Final" provided any hint of having to make config changes. Is there an upgrade guide somewhere or am I defining something wrong here or missing something obvious?

       

      The error is:

       

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'global'. One of

      '{"urn:infinispan:config:7.0":jgroups,

      "urn:infinispan:config:7.0":threads,

      "urn:infinispan:config:7.0":cache-container}'

      is expected. jbossDataGridConfiguration.xml /xxx/src/main/resources line 5 XML Problem

       

      Top of my config file before the upgrade:

       

      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       

         xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd"

       

         xmlns="urn:infinispan:config:6.0">

       

      <global>

       

      <!-- for distributed cache -->

       

      <transport>

       

      <properties>

       

      <property name="configurationFile" value="jgroups.xml"/>

       

      </properties>

       

      </transport>

       

         </global>

       

       

      After:

       

       

      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       

         xsi:schemaLocation="urn:infinispan:config:7.0 http://www.infinispan.org/schemas/infinispan-config-7.0.xsd"

       

         xmlns="urn:infinispan:config:7.0">

       

      <global>

       

      <!-- for distributed cache -->

       

      <transport>

       

      <properties>

       

      <property name="configurationFile" value="jgroups.xml"/>

       

      </properties>

       

      </transport>

       

         </global>

       

       

        • 1. Re: Issues upgrading infinispan 6.0 to 7.1.1
          nadirx

          Your file should look like this (the cache-container section is identical now between library and server and WildFly):

           

          <infinispan
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="urn:infinispan:config:7.1 http://www.infinispan.org/schemas/infinispan-config-7.1.xsd"
                xmlns="urn:infinispan:config:7.1">
             <jgroups transport="org.infinispan.remoting.transport.jgroups.JGroupsTransport">
                <stack-file name="udp" path="jgroups-udp.xml"/>
                <stack-file name="tcp" path="jgroups-tcp.xml"/>
             </jgroups>
          
             <cache-container default-cache="default">
                <local-cache name="default">
                   <transaction mode="BATCH" stop-timeout="2"/>
                </local-cache>
                <local-cache name="tml">
                   <transaction mode="NON_XA" transaction-manager-lookup="org.infinispan.transaction.lookup.DummyTransactionManagerLookup" stop-timeout="2"/>
                </local-cache>
             </cache-container>
          
          </infinispan>
          
          
          • 2. Re: Issues upgrading infinispan 6.0 to 7.1.1
            mmr11408

            The new format does not look very familiar. I am using Infinispan in a tomcat application using UDP for replicating the clustered cache. Below is the full config file. jgroups.xml right now is the one that comes with Infinispan. Does the new format apply to this scenario? Is the conversion process written up somewhere?

             

             

            <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd"
                        xmlns="urn:infinispan:config:6.0">

            <global>
              <!-- for distributed cache -->
              <transport>
              <properties>
                <property name="configurationFile" value="jgroups.xml"/>
              </properties>
              </transport>
              </global>
             
              <default>
                <locking
                  isolationLevel="REPEATABLE_READ"
                />
                <eviction
                  maxEntries="2000000"
                  strategy="LIRS"     
                />
                <expiration
                  lifespan="-1"
                />
                <persistence passivation="false">
              <!-- If ignoreModifications is set to true items that are evicted will not be in the store
                and hence not found -->
            <!--
              <singleFile
                shared="false"
                fetchPersistentState="false"
                ignoreModifications="false"
                purgeOnStartup="true"
                preload="false"
                location="Infinispan-SingleFileCacheStore">
                        </singleFile>
            -->
                </persistence>
              <!-- Configure a local, synchronous -->
              <clustering mode="local">
              <sync/>
              </clustering>
              <jmxStatistics
              enabled="true"
              />
              </default>

             
            <namedCache name ="EdiCache">
              <clustering mode="replication">
              <stateTransfer chunkSize="0" fetchInMemoryState="true" timeout="240000"/>
              <sync replTimeout="20000"/>
              </clustering>
            </namedCache>

            <namedCache name ="BuCache">
              <clustering mode="replication">
              <stateTransfer chunkSize="0" fetchInMemoryState="true" timeout="240000"/>
              <sync replTimeout="20000"/>
              </clustering>
            </namedCache>

            <namedCache name ="ManagerCache">
                <eviction
                  maxEntries="1"
                />
              <clustering mode="replication">
              <stateTransfer chunkSize="0" fetchInMemoryState="true" timeout="240000"/>
              <sync replTimeout="20000"/>
              </clustering>
            </namedCache>

            <namedCache name ="ClusterCache">
                <eviction
                  maxEntries="2"
                />
              <clustering mode="replication">
              <stateTransfer chunkSize="0" fetchInMemoryState="true" timeout="240000"/>
              <sync replTimeout="20000"/>
              </clustering>
            </namedCache>

            </infinispan>

            • 3. Re: Issues upgrading infinispan 6.0 to 7.1.1
              mmr11408

              Since we are in the early stages of using Infinispan I want to stay with the latest version and not be locked into an old release. I have not had any luck converting my 6.0 configuration file to 7.1.1 or finding any similar examples. The error continues to display even after the above section was added. Any help in converting the full configuration which I appended in the previous reply would be appreciated.