I'm trying to configure OGM under JBoss 7.2.0.Final using the instructions at: https://docs.jboss.org/author/display/AS72/JPA+Reference+Guide#JPAReferenceGuide-UsingHibernateOGM
When I deploy my application I get the following error:
Code:
14:05:00,291 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 48) MSC00001: Failed to start service jboss.persistenceunit."XXX.ear#XXXDomainPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."XXX.ear#XXXDomainPU": javax.persistence.PersistenceException: [PersistenceUnit: XXXDomainPU] Unable to build EntityManagerFactory
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: XXXDomainPU] Unable to build EntityManagerFactory
Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.ogm.persister.OgmEntityPersister
Caused by: org.hibernate.HibernateException: OGM000004: Unable to find or initialize Infinispan CacheManager
at org.hibernate.ogm.datastore.infinispan.impl.InfinispanDatastoreProvider.start(InfinispanDatastoreProvider.java:115)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.startService(AbstractServiceRegistryImpl.java:254)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:162)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.ogm.datastore.impl.DatastoreServicesImpl.configure(DatastoreServicesImpl.java:53)
at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.ogm.persister.OgmEntityPersister.<init>(OgmEntityPersister.java:127)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_09]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_09]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_09]
at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_09]
at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163)
... 15 more
Caused by: org.hibernate.HibernateException: Could not start Infinispan CacheManager using as configuration file: org/hibernate/ogm/datastore/infinispan/default-config.xml
at org.hibernate.ogm.datastore.infinispan.impl.InfinispanDatastoreProvider.raiseConfigurationError(InfinispanDatastoreProvider.java:195)
at org.hibernate.ogm.datastore.infinispan.impl.InfinispanDatastoreProvider.createCustomCacheManager(InfinispanDatastoreProvider.java:172)
at org.hibernate.ogm.datastore.infinispan.impl.InfinispanDatastoreProvider.start(InfinispanDatastoreProvider.java:105)
... 28 more
Caused by: org.infinispan.config.ConfigurationException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[22,1]
Message: Unexpected element '{urn:infinispan:config:5.1}infinispan'
at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:87)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:353)
at org.hibernate.ogm.datastore.infinispan.impl.InfinispanDatastoreProvider.createCustomCacheManager(InfinispanDatastoreProvider.java:151)
... 29 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[22,1]
Message: Unexpected element '{urn:infinispan:config:5.1}infinispan'
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:77)
... 31 more
14:05:00,513 ERROR [org.jboss.as.server] (management-handler-thread - 1) JBAS015870: Deploy of deployment "XXX.ear" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.persistenceunit.\"XXX.ear#XXXDomainPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"XXX.ear#XXXDomainPU\": javax.persistence.PersistenceException: [PersistenceUnit: XXXDomainPU] Unable to build EntityManagerFactory
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: XXXDomainPU] Unable to build EntityManagerFactory
Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.ogm.persister.OgmEntityPersister
Caused by: org.hibernate.HibernateException: OGM000004: Unable to find or initialize Infinispan CacheManager
Caused by: org.hibernate.HibernateException: Could not start Infinispan CacheManager using as configuration file: org/hibernate/ogm/datastore/infinispan/default-config.xml
Caused by: org.infinispan.config.ConfigurationException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[22,1]
Message: Unexpected element '{urn:infinispan:config:5.1}infinispan'
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[22,1]
Message: Unexpected element '{urn:infinispan:config:5.1}infinispan'"}}
I can't see what is wrong with the "infinispan" tag in "org/hibernate/ogm/datastore/infinispan/default-config.xml"
Code:
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
xmlns="urn:infinispan:config:5.1">