Embedded Infinispan is not getting started using wildfly 20.0

257 views
Skip to first unread message

Harshit Bhuva

unread,
May 13, 2022, 9:45:29 AM5/13/22
to WildFly
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



Paul Ferraro

unread,
May 13, 2022, 2:01:58 PM5/13/22
to WildFly
Have you defined any dependencies within deployment-structure.xml or /META-INF/MANIFEST.MF?

Paul Ferraro

unread,
May 13, 2022, 2:54:08 PM5/13/22
to WildFly
Of the jars you listed that are bundled with your application, you did not mention jgroups.
This library is required in order to be able to load the org.infinispan.configuration.parsing.Parser class.

Harshit Bhuva

unread,
May 14, 2022, 2:17:40 AM5/14/22
to Paul Ferraro, WildFly
No we have not defined any dependencies in deployment structure 

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/1efddf6e-592b-4eec-b827-6662515c9ac7n%40googlegroups.com.

Harshit Bhuva

unread,
May 14, 2022, 2:18:16 AM5/14/22
to Paul Ferraro, WildFly
Yes we have not included jgroup jars...let me try that and will confirm

--
You received this message because you are subscribed to a topic in the Google Groups "WildFly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wildfly/HIBzMCRr9_U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/eafbac34-72a7-4c6e-aac5-f89d17013bbfn%40googlegroups.com.

Harshit Bhuva

unread,
Jun 16, 2022, 11:25:50 AM6/16/22
to WildFly
Hi Paul,

We have included the jgroup jar and its working now !!!!

Thanks for your support :-)

Reply all
Reply to author
Forward
0 new messages