Fixed ehCache issue. Still having issues finding the persistence.xml

file at runtime.
This commit is contained in:
Gregory Burd 2021-07-06 11:58:44 -04:00 committed by Greg Burd
parent 384a43d4d4
commit 5c89d4c9b6
4 changed files with 20 additions and 4 deletions

2
README
View file

@ -3,7 +3,7 @@ docker run --name castrato -p 9042:9042 -p 9162:9162 -p 7000:7000 -e CASSANDRA_S
drop table books; drop table products; drop table inventory; drop table magazines; desc tables; drop table books; drop table products; drop table inventory; drop table magazines; desc tables;
mvn clean compile -Dmaven.compiler.showDeprecation=true -Dmaven.compiler.showWarnings=true mvn -U clean compile -Dmaven.compiler.showDeprecation=true -Dmaven.compiler.showWarnings=true
https://www.one-tab.com/page/K4XlsjF2TyugqYE_8ORqxg https://www.one-tab.com/page/K4XlsjF2TyugqYE_8ORqxg

17
log4j.properties Normal file
View file

@ -0,0 +1,17 @@
# Define the destination and format of our logging
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=datanucleus.log
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} (%t) %-5p [%c] - %m%n
# DataNucleus Categories
log4j.category.DataNucleus.JDO=INFO, A1
log4j.category.DataNucleus.Cache=INFO, A1
log4j.category.DataNucleus.MetaData=INFO, A1
log4j.category.DataNucleus.General=INFO, A1
log4j.category.DataNucleus.Transaction=INFO, A1
log4j.category.DataNucleus.Datastore=DEBUG, A1
log4j.category.DataNucleus.ValueGeneration=DEBUG, A1
log4j.category.DataNucleus.Enhancer=INFO, A1
log4j.category.DataNucleus.SchemaTool=INFO, A1

View file

@ -202,7 +202,7 @@
<dependency> <dependency>
<groupId>net.sf.ehcache</groupId> <groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId> <artifactId>ehcache</artifactId>
<version>2.10.4</version> <version>2.10.9.2</version>
<type>pom</type> <type>pom</type>
</dependency> </dependency>

View file

@ -18,7 +18,6 @@ public class EhCacheConfiguration {
@Bean @Bean
public EhCacheManagerFactoryBean ehCacheManagerFactoryBean() { public EhCacheManagerFactoryBean ehCacheManagerFactoryBean() {
EhCacheManagerFactoryBean cacheManagerFactoryBean = new EhCacheManagerFactoryBean(); EhCacheManagerFactoryBean cacheManagerFactoryBean = new EhCacheManagerFactoryBean();
cacheManagerFactoryBean.setConfigLocation(new ClassPathResource("ehcache.xml"));
cacheManagerFactoryBean.setShared(true); cacheManagerFactoryBean.setShared(true);
return cacheManagerFactoryBean; return cacheManagerFactoryBean;
} }