2 Replies Latest reply on Nov 18, 2014 12:43 AM by ratking

    new Infinispan 7.0.0 has wrong beans.xml

    wangliyu

      Hi,

      I tried to upgrade my infinispan from 6.0.2 to 7.0.0, and after upgrade, the arquillian test failed, I checked the infinispan-embeded-7.0.0.jar, it has beans.xml like this:

       

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

      <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">

        <interceptors>

          <class>org.infinispan.jcache.annotation.CacheResultInterceptor</class>

          <class>org.infinispan.jcache.annotation.CachePutInterceptor</class>

          <class>org.infinispan.jcache.annotation.CacheRemoveEntryInterceptor</class>

          <class>org.infinispan.jcache.annotation.CacheRemoveAllInterceptor</class>

        </interceptors>

        <interceptors>

          <class>org.infinispan.jcache.annotation.CacheResultInterceptor</class>

          <class>org.infinispan.jcache.annotation.CachePutInterceptor</class>

          <class>org.infinispan.jcache.annotation.CacheRemoveEntryInterceptor</class>

          <class>org.infinispan.jcache.annotation.CacheRemoveAllInterceptor</class>

        </interceptors>

        <interceptors>

          <class>org.infinispan.jcache.annotation.CacheResultInterceptor</class>

          <class>org.infinispan.jcache.annotation.CachePutInterceptor</class>

          <class>org.infinispan.jcache.annotation.CacheRemoveEntryInterceptor</class>

          <class>org.infinispan.jcache.annotation.CacheRemoveAllInterceptor</class>

        </interceptors>

      </beans>

       

      and this will fail with the error:

       

      Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-001205: <interceptors> can only be specified once, but it is specified multiple times: jar:file:/D:/tmp/apache-tomcat-7.0.56/lib/infinispan-embedded-7.0.0.Final.jar!/META-INF/beans.xml@9

       

      Is this some kind of typo?

       

      Thanks,

      Liyu