?

ezhuravlev wrote
> I've added maven dependency as was described before and this problem was
> resolved.
> 
> Evgenii
> 
> 2018-07-12 15:25 GMT+03:00 monstereo <

> mehmetozanguven@

> >:
> 
>> I can not solve this error :
>>
>> *Exception in thread "main" org.hibernate.service.spi.ServiceException:
>> Unable to create requested service
>> [org.hibernate.cache.spi.RegionFactory]
>>
>> at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(
>> AbstractServiceRegistryImpl.java:244)
>> at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.
>> initializeService(AbstractServiceRegistryImpl.java:208)
>> at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(
>> AbstractServiceRegistryImpl.java:189)
>> at
>> org.hibernate.boot.internal.MetadataBuilderImpl$
>> MetadataBuildingOptionsImpl.
> <init>
> (MetadataBuilderImpl.java:663)
>> at
>> org.hibernate.boot.internal.MetadataBuilderImpl.
> <init>
> (MetadataBuilderImpl.java:127)
>>
>> at
>> org.hibernate.boot.internal.MetadataBuilderImpl.
> <init>
> (MetadataBuilderImpl.java:94)
>>
>> at
>> org.hibernate.boot.MetadataSources.getMetadataBuilder(MetadataSources.java:125)
>>
>> at
>> org.hibernate.boot.MetadataSources.buildMetadata(MetadataSources.java:179)
>>
>> at MainApp.createHibernateSessionFactory(MainApp.java:31)       at
>> MainApp.main(MainApp.java:65) Caused by:
>> org.hibernate.HibernateException:
>> could not instantiate RegionFactory
>> [org.apache.ignite.cache.hibernate.HibernateRegionFactory]      at
>> org.hibernate.cache.internal.RegionFactoryInitiator.initiateService(
>> RegionFactoryInitiator.java:84)
>> at
>> org.hibernate.cache.internal.RegionFactoryInitiator.initiateService(
>> RegionFactoryInitiator.java:29)
>> at
>> org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.
>> initiateService(StandardServiceRegistryImpl.java:88)
>> at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(
>> AbstractServiceRegistryImpl.java:234)
>> ... 9 more Caused by:
>> org.hibernate.boot.registry.selector.spi.StrategySelectionException:
>> Unable
>> to resolve name
>> [org.apache.ignite.cache.hibernate.HibernateRegionFactory]
>> as strategy [org.hibernate.cache.spi.RegionFactory]     at
>> org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.
>> selectStrategyImplementor(StrategySelectorImpl.java:113)
>> at
>> org.hibernate.cache.internal.RegionFactoryInitiator.initiateService(
>> RegionFactoryInitiator.java:71)
>> ... 12 more*
>>
>>
>> I have a database (postgres) which has Person table in testdb database,
>> and
>> includes id, name, age, salary columns
>>
>> Here is the my hibernate config file :  hibernate-cfg.xml
>> &lt;http://apache-ignite-users.70518.x6.nabble.com/file/
> &gt; t1901/hibernate-cfg.xml>
>>
>> Here is the Person class  :  Person.java
>> &lt;http://apache-ignite-users.70518.x6.nabble.com/file/t1901/Person.java&gt;
>>
>> Here is the ignite configuration:  ignite-configuration.xml
>> &lt;http://apache-ignite-users.70518.x6.nabble.com/file/
> &gt; t1901/ignite-configuration.xml>
>>
>> Here is the IgniteFactory class(I have created) :  IgniteFactory.java
>> &lt;http://apache-ignite-users.70518.x6.nabble.com/file/
> &gt; t1901/IgniteFactory.java>
>>
>> Finally main class :  MainApp.java
>> &lt;http://apache-ignite-users.70518.x6.nabble.com/file/t1901/MainApp.java&gt;
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to