Sziasztok!<br><br>Meggyűlt a bajom a ${subject} kombóval, és már sajnos a 30+ konfig után már nem tudom merre menjek tovább. Erre a felállásra nem találtam sajno howto.<br><br>Jelen pillanatban a releváns spring konfigok így néznek ki:<br>

<br>&lt;jpa:repositories base-package=&quot;my.spring.repository&quot;<br>        entity-manager-factory-ref=&quot;entityManagerFactory&quot; transaction-manager-ref=&quot;transactionManager&quot; /&gt;<br><br>&lt;bean id=&quot;transactionManager&quot; class=&quot;org.springframework.orm.hibernate4.HibernateTransactionManager&quot;&gt;<br>

        &lt;property name=&quot;dataSource&quot; ref=&quot;dataSource&quot; /&gt;<br>        &lt;property name=&quot;sessionFactory&quot; ref=&quot;sessionFactory&quot; /&gt;<br>    &lt;/bean&gt;<br><br>    &lt;bean id=&quot;sessionFactory&quot; class=&quot;org.springframework.orm.hibernate4.LocalSessionFactoryBean&quot;&gt;<br>

        &lt;property name=&quot;dataSource&quot; ref=&quot;dataSource&quot;/&gt;<br>        &lt;property name=&quot;hibernateProperties&quot;&gt;<br>            &lt;props&gt;<br>                &lt;prop key=&quot;hibernate.current_session_context_class&quot;&gt;org.hibernate.context.ThreadLocalSessionContext&lt;/prop&gt;<br>

                &lt;prop key=&quot;hibernate.cache.region.factory_class&quot;&gt;org.hibernate.cache.ehcache.EhCacheRegionFactory&lt;/prop&gt;<br>                &lt;prop key=&quot;hibernate.cache.use_query_cache&quot;&gt;true&lt;/prop&gt;<br>

                &lt;prop key=&quot;hibernate.cache.use_second_level_cache&quot;&gt;true&lt;/prop&gt;<br>                &lt;prop key=&quot;hibernate.cache.provider_configuration_file_resource_path&quot;&gt;classpath:ehcache.xml&lt;/prop&gt;<br>

                &lt;prop key=&quot;hibernate.generate_statistics&quot;&gt;true&lt;/prop&gt;<br>                &lt;prop key=&quot;hibernate.cache.use_structured_entries&quot;&gt;true&lt;/prop&gt;<br>            &lt;/props&gt;<br>

        &lt;/property&gt;<br>        &lt;property name=&quot;packagesToScan&quot; value=&quot;my.spring.model&quot; /&gt;<br>    &lt;/bean&gt;<br>    <br>    &lt;bean id=&quot;entityManagerFactory&quot;<br>        class=&quot;org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean&quot;&gt;<br>

        &lt;property name=&quot;dataSource&quot; ref=&quot;dataSource&quot; /&gt;<br>        &lt;property name=&quot;packagesToScan&quot; value=&quot;my.spring.model&quot; /&gt;<br>        &lt;property name=&quot;jpaVendorAdapter&quot;&gt;<br>

            &lt;bean class=&quot;org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter&quot;&gt;<br>                &lt;property name=&quot;showSql&quot; value=&quot;$persistence{hibernate.show_sql}&quot; /&gt;<br>

            &lt;/bean&gt;<br>        &lt;/property&gt;<br>        &lt;property name=&quot;persistenceUnitName&quot; value=&quot;myUnit&quot; /&gt;<br>    &lt;/bean&gt;<br><br>A logban a lényegi bejegyzések:<br>2013-02-06 16:34:11,031 DEBUG [][] n.s.e.config.ConfigurationFactory - Configuring ehcache from ehcache.xml found in the classpath: file:/home/bartuszekv/.../target/classes/ehcache.xml<br>

2013-02-06 16:34:11,031 DEBUG [][] n.s.e.config.ConfigurationFactory - Configuring ehcache from URL: file:/home/bartuszekv/.../target/classes/ehcache.xml<br>2013-02-06 16:34:11,031 DEBUG [][] n.s.e.config.ConfigurationFactory - Configuring ehcache from InputStream<br>

2013-02-06 16:34:11,040 DEBUG [][] net.sf.ehcache.config.BeanHandler - Ignoring ehcache attribute xmlns:xsi<br>2013-02-06 16:34:11,040 DEBUG [][] net.sf.ehcache.config.BeanHandler - Ignoring ehcache attribute xsi:noNamespaceSchemaLocation<br>

2013-02-06 16:34:11,040 DEBUG [][] n.s.e.config.DiskStoreConfiguration - Disk Store Path: /tmp/EhCacheSpringStore<br>2013-02-06 16:34:11,084 DEBUG [][] net.sf.ehcache.util.PropertyUtil - propertiesString is null.<br>2013-02-06 16:34:11,088 DEBUG [][] n.s.e.config.ConfigurationHelper - No CacheManagerEventListenerFactory class specified. Skipping...<br>

2013-02-06 16:34:11,125 DEBUG [][] net.sf.ehcache.Cache - No BootstrapCacheLoaderFactory class specified. Skipping...<br>2013-02-06 16:34:11,125 DEBUG [][] net.sf.ehcache.Cache - CacheWriter factory not configured. Skipping...<br>

2013-02-06 16:34:11,126 DEBUG [][] n.s.e.config.ConfigurationHelper - No CacheExceptionHandlerFactory class specified. Skipping...<br>2013-02-06 16:34:11,128 DEBUG [][] net.sf.ehcache.Cache - No BootstrapCacheLoaderFactory class specified. Skipping...<br>

2013-02-06 16:34:11,129 DEBUG [][] net.sf.ehcache.Cache - CacheWriter factory not configured. Skipping...<br>2013-02-06 16:34:11,129 DEBUG [][] n.s.e.config.ConfigurationHelper - No CacheExceptionHandlerFactory class specified. Skipping...<br>

2013-02-06 16:34:11,129 DEBUG [][] net.sf.ehcache.Cache - No BootstrapCacheLoaderFactory class specified. Skipping...<br>2013-02-06 16:34:11,129 DEBUG [][] net.sf.ehcache.Cache - CacheWriter factory not configured. Skipping...<br>

2013-02-06 16:34:11,129 DEBUG [][] n.s.e.config.ConfigurationHelper - No CacheExceptionHandlerFactory class specified. Skipping...<br>2013-02-06 16:34:11,129 WARN  [][] net.sf.ehcache.Cache - Cache: org.hibernate.cache.UpdateTimestampsCache has a maxElementsInMemory of 0.  In Ehcache 2.0 this has been changed to mean a store with no capacity limit. Set it to 1 if you want no elements cached in memory<br>

2013-02-06 16:34:11,146 DEBUG [][] net.sf.ehcache.Cache - Initialised cache: org.hibernate.cache.UpdateTimestampsCache<br>2013-02-06 16:34:11,146 DEBUG [][] n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured. Skipping for &#39;org.hibernate.cache.UpdateTimestampsCache&#39;.<br>

2013-02-06 16:34:11,146 DEBUG [][] n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for &#39;org.hibernate.cache.UpdateTimestampsCache&#39;.<br>2013-02-06 16:34:11,153 DEBUG [][] n.s.e.s.c.f.DiskOverflowStorageFactory - Deleting data file org.hibernate.cache.StandardQueryCache.data<br>

2013-02-06 16:34:11,164 DEBUG [][] net.sf.ehcache.Cache - Initialised cache: org.hibernate.cache.StandardQueryCache<br>2013-02-06 16:34:11,164 DEBUG [][] n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured. Skipping for &#39;org.hibernate.cache.StandardQueryCache&#39;.<br>

2013-02-06 16:34:11,164 DEBUG [][] n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for &#39;org.hibernate.cache.StandardQueryCache&#39;.<br>2013-02-06 16:34:11,193 INFO  [][] org.hibernate.validator.util.Version - Hibernate Validator 4.2.0.Final<br>

2013-02-06 16:34:11,499 DEBUG [][] net.sf.ehcache.Cache - Initialised cache: my.spring.model.Entity1<br>2013-02-06 16:34:11,500 DEBUG [][] n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for &#39;my.spring.model.Entity1&#39;.<br>

2013-02-06 16:34:11,514 DEBUG [][] net.sf.ehcache.Cache - Initialised cache: my.spring.model.Entity2<br>2013-02-06 16:34:11,515 DEBUG [][] n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for &#39;my.spring.model.Entity2&#39;.<br>

...<br><br>Majd mikor nekifekszik az entitásoknak:<br><br>2013-02-06 16:34:13.151:WARN::Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0&#39;: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;entityManagerFactory&#39; defined in class path resource [persistence-context.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: myUnit] Unable to build EntityManagerFactory:<br>

org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_classis not gaven, please either disable second level cache or set correct region factory class name to property hibernate.cache.region.factory_class (and make sure the second level cache provider, hibernate-infinispan, for example, available in the classpath).<br>

    at org.hibernate.cache.internal.NoCachingRegionFactory.buildEntityRegion(NoCachingRegionFactory.java:69)<br>    at org.hibernate.internal.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:347)<br>    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1740)<br>

    at org.hibernate.ejb.EntityManagerFactoryImpl.&lt;init&gt;(EntityManagerFactoryImpl.java:94)<br>    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)<br>    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)<br>

    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)<br><br>pom.xml erre vonatkozó bejegyzése:<br><br>&lt;dependency&gt;<br>            &lt;groupId&gt;org.hibernate&lt;/groupId&gt;<br>

            &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;<br>            &lt;version&gt;${hibernate.version}&lt;/version&gt;<br>        &lt;/dependency&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.hibernate&lt;/groupId&gt;<br>

            &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;<br>            &lt;version&gt;${hibernate.validator.version}&lt;/version&gt;<br>        &lt;/dependency&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.hibernate&lt;/groupId&gt;<br>

            &lt;artifactId&gt;hibernate-ehcache&lt;/artifactId&gt;<br>            &lt;version&gt;${hibernate.version}&lt;/version&gt;<br>        &lt;/dependency&gt;<br><br>Aholis a hibernate verzió 4.1.1.Final<br><br>Megbírkózott már esetleg valaki ezzel? Az is nagy segítség lenne, ha valami erre vonatkozó dokumentációt tudna linkelni valaki.<br clear="all">

<div><br>A válaszokat előre is köszönöm,<br>Bartuszek Viktor<a href="http://www.rhodeus.hu/" target="_blank"></a></div>