JBoss Community

Configuring AS7 to use Infinispan to connect to Amazon S3 for Modeshape 3

created by Walter Sze in JBoss AS 7 Development - View the full discussion

I'm trying to configure AS7 to use Infinispan to connect to Amazon S3 for Modeshape 3.  So I downloaded and installed jboss-as-7.1.1.Final and copied modeshape-3.0.0.Beta2-jbossas-7-dist.  I then added the following to standalone-modeshape.xml:

 

 

<server xmlns="urn:jboss:domain:1.2">

    <extensions>

         :

    </extensions>

    <management>

         :

    </management>

    <profile>

         :

        <subsystem xmlns="urn:jboss:domain:infinispan:1.2" default-cache-container="hibernate">

              :

        <local-cache name="xxx">

            <store class="org.infinispan.loaders.cloud.CloudCacheStore" preload="true" purge="false">

                <property name="identity">{s3_accessKeyId}</property>

                <property name="password">{s3_secretAccessKey}</property>

                <property name="bucketPrefix">{s3_bucket}</property>

                <property name="requestTimeout">20000</property>

                <property name="cloudService">s3</property>

                <property name="secure">true</property>

                <property name="compress">true</property>

            </store>

        </local-cache>

    </profile>

    <interfaces>

         :

    </interfaces>

    <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

        :

    </socket-binding-group>

</server>

 

But it returns the following error:

 

 

Pool -- 32) JBAS014612: Operation ("add") failed - address: ([

    ("subsystem" => "infinispan"),

    ("cache-container" => "modeshape"),

    ("local-cache" => "xxx")

]): java.lang.IllegalArgumentException: org.infinispan.loaders.cloud.CloudCacheStore is not a valid cache store

    at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.buildCacheStore(CacheAdd.java:545)

    at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.processModelNode(CacheAdd.java:426)

    at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.performRuntime(CacheAdd.java:165)

    at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

 

Can someone tell me what I did wrong?  I originally posted this on ModeShape (https://community.jboss.org/message/753031), but it has been suggested trying the AS 7 community.

 

Thanks

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community