0
我試圖使用嵌入式作爲Hibernate 2LC提供程序的Infinispan。 我在哪裏可以找到infinispan-embedded
依賴關係的正確版本,以便與hibernate-infinispan
集成?休眠和Infinispan嵌入式兼容性
我嘗試了休眠4.3.x與不同版本的infinispan-embedded
dep(6,7和8)。我收到一些初始化錯誤。例如,磨片我用infinispan-embedded
8.0.1.Final
我得到以下錯誤:
Caused by: org.hibernate.cache.CacheException: Unable to start region factory at org.hibernate.cache.infinispan.InfinispanRegionFactory.start(InfinispanRegionFactory.java:340) at org.hibernate.internal.CacheImpl.(CacheImpl.java:70) at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:40) at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:35) at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:91) at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:251) ... 32 more Caused by: java.lang.NoSuchMethodError: org.infinispan.commons.util.ServiceFinder.load(Ljava/lang/Class;[Ljava/lang/ClassLoader;)Ljava/util/Collection; at org.infinispan.configuration.parsing.ParserRegistry.(ParserRegistry.java:53) at org.hibernate.cache.infinispan.InfinispanRegionFactory.createCacheManager(InfinispanRegionFactory.java:414) at org.hibernate.cache.infinispan.InfinispanRegionFactory.start(InfinispanRegionFactory.java:323) ... 37 more
其實你不必指定'infinispan-embedded'作爲顯式依賴。你只需要添加'hibernate-infinispan' dep,並將'infinispan-core'作爲傳遞代價。 – Tuelho