Hi,
I'm just taking a look at the Inifinispan query functionality but when I use it I get an exception thrown in the slf4j logging framework ?
Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60) at org.hibernate.search.util.LoggerFactory.make(LoggerFactory.java:31) at org.hibernate.search.Version.<clinit>(Version.java:17) at org.hibernate.search.impl.SearchFactoryImpl.<clinit>(SearchFactoryImpl.java:63) at org.infinispan.query.backend.QueryHelper.<init>(QueryHelper.java:87)
cache = new DefaultCacheManager(resource.openStream()).getCache("distributedCache"); Properties p = new Properties(); p.setProperty("hibernate.search.default.directory_provider", "org.hibernate.search.store.RAMDirectoryProvider"); qh = new QueryHelper(cache, p, VirusDataRec.class);
Problem fixed....
The issue was the different versions of the slf4j libraries included in BETA2....
The api was 1.4.2 and the simple was 1.5.8....
To solve this issue just download and use the slf4j 1.5.8 jars