Hi Team,
I am using Infinispan (ver.13.0.2) in Embedded/library mode using JCache Implementation in wildfly 20.0(we are not using subsystem of wildfly).
Below is my infinispanConfig.xml which contains Infinispan cache
<?xml version="1.0" encoding="UTF-8"?>
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:13.0 http://www.infinispan.org/schemas/infinispan-config-13.0.xsd"
xmlns="urn:infinispan:config:13.0">
<cache-container default-cache="default">
<caches>
<local-cache name="xml-configured-cache">
</local-cache>
<local-cache name="testCache" statistics="true">
<encoding>
<key media-type="application/x-java-serialized-object"/>
<value media-type="application/x-java-serialized-object"/>
</encoding>
<locking concurrency-level="13" acquire-timeout="15000" striping="false"/>
</local-cache>
</caches>
</cache-container>
</infinispan>
also we did config by removing <caches> tag as well but for both we are getting below error.
org.infinispan.commons.CacheConfigurationException: ISPN000327: Cannot find a parser for element 'infinispan' in namespace 'urn:infinispan:config:13.0'. Check that your configuration is up-to date for Infinispan '13.0.2.Final' and if you have the proper dependency in the classpath
By using the same configuration in normal standalone java program this is working as expected and its storing the data and also I am able to retrieve the data from cache.
NOTE : we are not using wildfly sybsystem for embedded cache. We have deployed all the necessary jars in the class path
Below are the jars
1. infinispan-core-13.0.2.Final.jar
2. infinispan-jcache-13.0.2.Final.jar
3. infinispan-commons-13.0.2.Final.jar
4. infinispan-cdi-common-13.0.2.Final.jar
5. infinispan-cdi-embedded-13.0.2.Final.jar
6. infinispan-client-hotrod-13.0.2.Final.jar
7. infinispan-jcache-commons-13.0.2.Final.jar
8. infinispan-jboss-marshalling-13.0.2.Final.jar