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><jpa:repositories base-package="my.spring.repository"<br>        entity-manager-factory-ref="entityManagerFactory" transaction-manager-ref="transactionManager" /><br><br><bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager"><br>
        <property name="dataSource" ref="dataSource" /><br>        <property name="sessionFactory" ref="sessionFactory" /><br>    </bean><br><br>    <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"><br>
        <property name="dataSource" ref="dataSource"/><br>        <property name="hibernateProperties"><br>            <props><br>                <prop key="hibernate.current_session_context_class">org.hibernate.context.ThreadLocalSessionContext</prop><br>
                <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</prop><br>                <prop key="hibernate.cache.use_query_cache">true</prop><br>
                <prop key="hibernate.cache.use_second_level_cache">true</prop><br>                <prop key="hibernate.cache.provider_configuration_file_resource_path">classpath:ehcache.xml</prop><br>
                <prop key="hibernate.generate_statistics">true</prop><br>                <prop key="hibernate.cache.use_structured_entries">true</prop><br>            </props><br>
        </property><br>        <property name="packagesToScan" value="my.spring.model" /><br>    </bean><br>    <br>    <bean id="entityManagerFactory"<br>        class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"><br>
        <property name="dataSource" ref="dataSource" /><br>        <property name="packagesToScan" value="my.spring.model" /><br>        <property name="jpaVendorAdapter"><br>
            <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"><br>                <property name="showSql" value="$persistence{hibernate.show_sql}" /><br>
            </bean><br>        </property><br>        <property name="persistenceUnitName" value="myUnit" /><br>    </bean><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 'org.hibernate.cache.UpdateTimestampsCache'.<br>
2013-02-06 16:34:11,146 DEBUG [][] n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for 'org.hibernate.cache.UpdateTimestampsCache'.<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 'org.hibernate.cache.StandardQueryCache'.<br>
2013-02-06 16:34:11,164 DEBUG [][] n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for 'org.hibernate.cache.StandardQueryCache'.<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 'my.spring.model.Entity1'.<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 'my.spring.model.Entity2'.<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 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' 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.<init>(SessionFactoryImpl.java:347)<br>    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1740)<br>
    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(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><dependency><br>            <groupId>org.hibernate</groupId><br>
            <artifactId>hibernate-entitymanager</artifactId><br>            <version>${hibernate.version}</version><br>        </dependency><br>        <dependency><br>            <groupId>org.hibernate</groupId><br>
            <artifactId>hibernate-validator</artifactId><br>            <version>${hibernate.validator.version}</version><br>        </dependency><br>        <dependency><br>            <groupId>org.hibernate</groupId><br>
            <artifactId>hibernate-ehcache</artifactId><br>            <version>${hibernate.version}</version><br>        </dependency><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>