Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6632

Unable to create replicated cache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 9.0.2.Final
    • Clustering
    • None
    • Hide

      1. Add new cache in infinispan subsystem

      <cache-container name="tompOtp" default-cache="default" jndi-name="java:jboss/infinispan/tompOtp" aliases="test123" statistics-enabled="false">
                      <replicated-cache name="default" mode="SYNC"/>
      </cache-container>
      <cache-container name="tomp" default-cache="default" jndi-name="java:jboss/infinispan/tomp" aliases="test1234" statistics-enabled="false">
                      <replicated-cache name="default" mode="SYNC"/>
      </cache-container>
      

      2. Deploy a sample application which use that cache. (You will need to update web.xml also as mentioned in https://issues.jboss.org/browse/WFLY-4562)

      3. Server startup fail saying

      2016-05-20 17:33:52,308 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 62) MSC000001: Failed to start service jboss.infinispan.tompOtp.default.config: org.jboss.msc.service.StartException in service jboss.infinispan.tompOtp.default.config: org.infinispan.commons.CacheConfigurationException: ISPN000343: Must have a transport set in the global configuration in order to define a clustered cache
      
      

      4. Try adding trasport configuration manually

      <cache-container name="tompOtp" default-cache="default" jndi-name="java:jboss/infinispan/tompOtp" aliases="test123" statistics-enabled="false">
      		<transport channel="TCP" lock-timeout="60000"/>
                      <replicated-cache name="default" mode="SYNC"/>
      </cache-container>
      <cache-container name="tomp" default-cache="default" jndi-name="java:jboss/infinispan/tomp" aliases="test1234" statistics-enabled="false">
      		<transport channel="TCP" lock-timeout="60000"/>
                      <replicated-cache name="default" mode="SYNC"/>
      </cache-container>
      

      5. server still fail to start

      Show
      1. Add new cache in infinispan subsystem <cache-container name= "tompOtp" default-cache= "default" jndi-name= "java:jboss/infinispan/tompOtp" aliases= "test123" statistics-enabled= "false" > <replicated-cache name= "default" mode= "SYNC" /> </cache-container> <cache-container name= "tomp" default-cache= "default" jndi-name= "java:jboss/infinispan/tomp" aliases= "test1234" statistics-enabled= "false" > <replicated-cache name= "default" mode= "SYNC" /> </cache-container> 2. Deploy a sample application which use that cache. (You will need to update web.xml also as mentioned in https://issues.jboss.org/browse/WFLY-4562 ) 3. Server startup fail saying 2016-05-20 17:33:52,308 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 62) MSC000001: Failed to start service jboss.infinispan.tompOtp. default .config: org.jboss.msc.service.StartException in service jboss.infinispan.tompOtp. default .config: org.infinispan.commons.CacheConfigurationException: ISPN000343: Must have a transport set in the global configuration in order to define a clustered cache 4. Try adding trasport configuration manually <cache-container name= "tompOtp" default-cache= "default" jndi-name= "java:jboss/infinispan/tompOtp" aliases= "test123" statistics-enabled= "false" > <transport channel= "TCP" lock-timeout= "60000" /> <replicated-cache name= "default" mode= "SYNC" /> </cache-container> <cache-container name= "tomp" default-cache= "default" jndi-name= "java:jboss/infinispan/tomp" aliases= "test1234" statistics-enabled= "false" > <transport channel= "TCP" lock-timeout= "60000" /> <replicated-cache name= "default" mode= "SYNC" /> </cache-container> 5. server still fail to start

      servers is unable to create replicated or distributed infinispan cache,

        1. server.log
          22 kB
        2. setp 5 server.log
          32 kB
        3. spring2-mvc-xml.zip
          5 kB
        4. spring2-mvc-xml-hello-world-1.0-SNAPSHOT.war
          2.05 MB
        5. standalone.xml
          21 kB

            pferraro@redhat.com Paul Ferraro
            vinay.lodha Vinay Lodha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: