1 Reply Latest reply on Dec 31, 2012 5:27 PM by jeetu

    Errai CDI fails after adding Infinispan CDI on the server side

    jeetu

      Hi,

       

      I am working on a Maven project built for JBOSS EAP6.

      The project is built from the Errai Kichensink quick start archetype.

       

      I did make some changes by adding Infinispan cache to it and was able to start and use it as non-cdi component.

       

      I wanted Infinispan to work as CDI so that i can use events to let the UI know if anything changed on the Infinispan cache through a cache listener.

       

      I added the infinispan-cdi dependency to the pom.xml and tried deploying the war to the EAP6 server. All goes well till the deployment tries to start the Errai CDI and it fails with a WELD deployment error.

       

      Attached the pom.xml and the server logs for reference. Please let me know, what is that i am doing wrong here.

       

      NOTE : I have moved this from Errai forums as Mike Brock said that it's some incompatibility between Infinispan CDI and WELD SE.

        • 1. Re: Errai CDI fails after adding Infinispan CDI on the server side
          jeetu

          i worked this out myself. The issue was the version mismatch.

          I was using infinispan 5.1.3 version which had compatibility issues with Weld SE and cdi 1.1. Upgrading the version to 5.2.0.ALPHA2 corrected it, if using infinispan stand-alone.

           

          If using the jboss eap6/jboss as7's in-built infinispan, we need to upgrade the infinispan module from whatever version that's available by default on the installation to the 5.2.0.ALPHA2.