Infinispan Error While Migrating from KC19 to KC23

We had a working KC 19 and I plan to move to KC 23 I am trying to build my code on my mac m1 pro Sonoma

I had a working system and it was building on the same machine

KC 19
JDK 17
Infinispan 13

Now

KC 23
JDK 17
Infinispan 14

While moving these are the errors I see. I have enabled logs in verbose mode but I have no clue which field is missing or extra in the below file. I have looked up multiple examples and unable to find anything that might help

ERROR [org.inf.CONFIG] (keycloak-cache-init) ISPN000660: Cache actionTokens start failed, stopping any running components: org.infinispan.commons.CacheConfigurationException: ISPN000659: Component ComponentWrapper{name=org.infinispan.persistence.manager.PersistenceManager, instance=org.infinispan.persistence.manager.PersistenceManagerImpl@64d9de78, status=FAILED} failed to start

Caused by: java.util.concurrent.CompletionException: java.lang.NoSuchFieldError: NETWORK_INTERFACES

My file

<?xml version="1.0" encoding="UTF-8"?>

<jgroups>
    <stack name="dns_ping_tcp">
        <!-- jgroups.tcp.address is deprecated and will be removed, see ISPN-11867 -->
        <TCP bind_addr="${jgroups.bind.address,jgroups.tcp.address:SITE_LOCAL}"
             bind_port="${jgroups.bind.port,jgroups.tcp.port:7800}"
             diag.enabled="${jgroups.diag.enabled:false}"
             thread_naming_pattern="pl"
             send_buf_size="640k"
             sock_conn_timeout="500"
             bundler_type="transfer-queue"
             bundler.max_size="${jgroups.bundler.max_size:64000}"
             logical_addr_cache_expiration="360000"
             port_range="0"
             thread_pool.min_threads="${jgroups.thread_pool.min_threads:0}"
             thread_pool.max_threads="${jgroups.thread_pool.max_threads:200}"
             thread_pool.keep_alive_time="60000"
             thread_dumps_threshold="${jgroups.thread_dumps_threshold:10000}"
             use_virtual_threads="${jgroups.thread.virtual,org.infinispan.threads.virtual:false}"
        />
        <RED/>
        <dns.DNS_PING dns_query="keycloak-jgrp-svc-blue.XXX.svc.cluster.local"
                      num_discovery_runs="5"
                      stack.combine="REPLACE"
                      stack.position="MPING"
        />
        <MERGE3 min_interval="10000" max_interval="30000"/>
        <FD_SOCK2/>
        <!-- Suspect node `timeout` to `timeout + timeout_check_interval` millis after the last heartbeat -->
        <FD_ALL3 timeout="10000" interval="2000"/>
        <VERIFY_SUSPECT2 timeout="1000"/>
        <pbcast.NAKACK2 use_mcast_xmit="false"
                        xmit_interval="200" xmit_table_num_rows="50"
                        xmit_table_msgs_per_row="1024"
                        xmit_table_max_compaction_time="30000"
                        resend_last_seqno="true"/>
        <UNICAST3 conn_close_timeout="5000"
                  xmit_interval="200"
                  xmit_table_num_rows="50"
                  xmit_table_msgs_per_row="1024"
                  xmit_table_max_compaction_time="30000"/>
        <pbcast.STABLE desired_avg_gossip="5000" max_bytes="1M"/>
        <pbcast.GMS print_local_addr="false"
                    join_timeout="${jgroups.join_timeout:2000}"/>
        <UFC max_credits="4m" min_threshold="0.40"/>
        <MFC max_credits="4m" min_threshold="0.40"/>
        <FRAG4/>
    </stack>
</jgroups>

<cache-container name="keycloak" statistics="true">
    <transport lock-timeout="60000" site="dce">

    </transport>

    <local-cache name="realms" statistics="true">
        <encoding>
            <key media-type="application/x-java-object"/>
            <value media-type="application/x-java-object"/>
        </encoding>
        <expiration max-idle="-1" lifespan="-1"/>
        <memory max-count="10000"/>
    </local-cache>

    <local-cache name="users">
        <encoding>
            <key media-type="application/x-java-object"/>
            <value media-type="application/x-java-object"/>
        </encoding>
        <expiration max-idle="900000"/>
        <memory max-count="10000"/>
    </local-cache>

    <local-cache name="keys">
        <encoding>
            <key media-type="application/x-java-object"/>
            <value media-type="application/x-java-object"/>
        </encoding>
        <expiration max-idle="3600000"/>
        <memory max-count="1000"/>
    </local-cache>

    <local-cache name="authorization">
        <encoding>
            <key media-type="application/x-java-object"/>
            <value media-type="application/x-java-object"/>
        </encoding>
        <expiration max-idle="900000"/>
        <memory max-count="10000"/>
    </local-cache>

    <distributed-cache name="sessions" owners="2" statistics="true">
        <expiration lifespan="-1"/>
        <persistence passivation="false">
            <remote-store xmlns="urn:infinispan:config:store:remote:14.0"
                          cache="sessions"
                          purge="false"
                          preload="false"
                          segmented="false"
                          shared="true"
                          raw-values="true"
                          marshaller="org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory"
            >
                <remote-server host="${env.KEYCLOAK_REMOTE_ISPN_URL}" port="11222"/>
                <connection-pool max-active="16"
                                 exhausted-action="CREATE_NEW"/>
                <security>
                    <authentication server-name="infinispan">
                        <digest
                                username="${env.KEYCLOAK_REMOTE_ISPN_USERNAME:admin}"
                                password="${env.KEYCLOAK_REMOTE_ISPN_PASSWORD:admin}"
                                realm="default"/>
                    </authentication>
                </security>
            </remote-store>
        </persistence>
    </distributed-cache>

    <distributed-cache name="authenticationSessions" owners="2" statistics="true">
        <expiration lifespan="-1"/>
        <persistence passivation="false">
            <remote-store xmlns="urn:infinispan:config:store:remote:14.0"
                          cache="authenticationSessions"
                          purge="false"
                          preload="false"
                          segmented="false"
                          shared="true"
                          raw-values="true"
                          marshaller="org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory"
            >
                <remote-server host="${env.KEYCLOAK_REMOTE_ISPN_URL}" port="11222"/>
                <connection-pool max-active="16"
                                 exhausted-action="CREATE_NEW"/>
                <security>
                    <authentication server-name="infinispan">
                        <digest
                                username="${env.KEYCLOAK_REMOTE_ISPN_USERNAME:admin}"
                                password="${env.KEYCLOAK_REMOTE_ISPN_PASSWORD:admin}"
                                realm="default"/>
                    </authentication>
                </security>
            </remote-store>
        </persistence>
    </distributed-cache>

    <distributed-cache name="offlineSessions" owners="2" statistics="true">
        <expiration lifespan="-1"/>
        <persistence passivation="false">
            <remote-store xmlns="urn:infinispan:config:store:remote:14.0"
                          cache="offlineSessions"
                          purge="false"
                          preload="false"
                          segmented="false"
                          shared="true"
                          raw-values="true"
                          marshaller="org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory"
            >
                <remote-server host="${env.KEYCLOAK_REMOTE_ISPN_URL}" port="11222" />
                <connection-pool max-active="16"
                                 exhausted-action="CREATE_NEW"/>
                <security>
                    <authentication server-name="infinispan">
                        <digest
                                username="${env.KEYCLOAK_REMOTE_ISPN_USERNAME:admin}"
                                password="${env.KEYCLOAK_REMOTE_ISPN_PASSWORD:admin}"
                                realm="default"/>
                    </authentication>
                </security>
            </remote-store>
        </persistence>
    </distributed-cache>

    <distributed-cache name="clientSessions" owners="2" statistics="true">
        <expiration lifespan="-1"/>
        <persistence passivation="false">
            <remote-store xmlns="urn:infinispan:config:store:remote:14.0"
                          cache="clientSessions"
                          purge="false"
                          preload="false"
                          segmented="false"
                          shared="true"
                          raw-values="true"
                          marshaller="org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory"
            >
                <remote-server host="${env.KEYCLOAK_REMOTE_ISPN_URL}" port="11222"/>
                <connection-pool max-active="16"
                                 exhausted-action="CREATE_NEW"/>
                <security>
                    <authentication server-name="infinispan">
                        <digest
                                username="${env.KEYCLOAK_REMOTE_ISPN_USERNAME:admin}"
                                password="${env.KEYCLOAK_REMOTE_ISPN_PASSWORD:admin}"
                                realm="default"/>
                    </authentication>
                </security>
            </remote-store>
        </persistence>
    </distributed-cache>

    <distributed-cache name="offlineClientSessions" owners="2" statistics="true">
        <expiration lifespan="-1"/>
        <persistence passivation="false">
            <remote-store xmlns="urn:infinispan:config:store:remote:14.0"
                          cache="offlineClientSessions"
                          purge="false"
                          preload="false"
                          segmented="false"
                          shared="true"
                          raw-values="true"
                          marshaller="org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory"
            >
                <remote-server host="${env.KEYCLOAK_REMOTE_ISPN_URL}" port="11222"/>
                <connection-pool max-active="16"
                                 exhausted-action="CREATE_NEW"/>
                <security>
                    <authentication server-name="infinispan">
                        <digest
                                username="${env.KEYCLOAK_REMOTE_ISPN_USERNAME:admin}"
                                password="${env.KEYCLOAK_REMOTE_ISPN_PASSWORD:admin}"
                                realm="default"/>
                    </authentication>
                </security>
            </remote-store>
        </persistence>
    </distributed-cache>

    <distributed-cache name="loginFailures" owners="2" statistics="true">
        <expiration lifespan="-1"/>
        <persistence passivation="false">
            <remote-store xmlns="urn:infinispan:config:store:remote:14.0"
                          cache="loginFailures"
                          purge="false"
                          preload="false"
                          segmented="false"
                          shared="true"
                          raw-values="true"
                          marshaller="org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory"
            >
                <remote-server host="${env.KEYCLOAK_REMOTE_ISPN_URL}" port="11222"/>
                <security>
                    <authentication server-name="infinispan">
                        <digest
                                username="${env.KEYCLOAK_REMOTE_ISPN_USERNAME:admin}"
                                password="${env.KEYCLOAK_REMOTE_ISPN_PASSWORD:admin}"
                                realm="default"/>
                    </authentication>
                </security>
            </remote-store>
        </persistence>
    </distributed-cache>



   <!-- <replicated-cache name="work" mode="SYNC">
        <expiration lifespan="-1"/>
    </replicated-cache>-->

    <replicated-cache name="work">
        <expiration lifespan="-1"/>
        <persistence passivation="false">
            <remote-store xmlns="urn:infinispan:config:store:remote:14.0"
                          cache="work"
                          purge="false"
                          preload="false"
                          segmented="false"
                          shared="true"
                          raw-values="true"
                          marshaller="org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory">
                <remote-server host="${env.KEYCLOAK_REMOTE_ISPN_URL}" port="11222"/>
                <connection-pool max-active="16"
                                 exhausted-action="CREATE_NEW"/>
                <security>
                    <authentication server-name="infinispan">
                        <digest username="${env.KC_REMOTE_STORE_USERNAME:admin}"
                                password="${env.KC_REMOTE_STORE_PASSWORD:admin}"
                                realm="default"/>
                    </authentication>
                </security>
            </remote-store>
        </persistence>
    </replicated-cache>


    <distributed-cache name="actionTokens" owners="2">
        <encoding>
            <key media-type="application/x-java-object"/>
            <value media-type="application/x-java-object"/>
        </encoding>
        <expiration max-idle="-1" lifespan="-1" interval="300000"/>
        <memory max-count="-1"/>
        <persistence passivation="false">
            <remote-store xmlns="urn:infinispan:config:store:remote:14.0"
                          cache="actionTokens"
                          purge="false"
                          preload="false"
                          segmented="false"
                          shared="true"
                          raw-values="true"
                          marshaller="org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory"
            >
                <remote-server host="${env.KEYCLOAK_REMOTE_ISPN_URL}" port="11222"/>
                <connection-pool max-active="16"
                                 exhausted-action="CREATE_NEW"/>
                <security>
                    <authentication server-name="infinispan">
                        <digest
                                username="${env.KEYCLOAK_REMOTE_ISPN_USERNAME:admin}"
                                password="${env.KEYCLOAK_REMOTE_ISPN_PASSWORD:admin}"
                                realm="default"/>
                    </authentication>
                </security>
            </remote-store>
        </persistence>
    </distributed-cache>
</cache-container>

The moment I enable the share=true attribute the code starts to fail but I make it false it complains and fails again with another message