Fixed ehCache issue. Still having issues finding the persistence.xml
file at runtime.
This commit is contained in:
parent
384a43d4d4
commit
5c89d4c9b6
4 changed files with 20 additions and 4 deletions
2
README
2
README
|
@ -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;
|
||||
|
||||
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
|
||||
|
||||
|
|
17
log4j.properties
Normal file
17
log4j.properties
Normal 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
|
2
pom.xml
2
pom.xml
|
@ -202,7 +202,7 @@
|
|||
<dependency>
|
||||
<groupId>net.sf.ehcache</groupId>
|
||||
<artifactId>ehcache</artifactId>
|
||||
<version>2.10.4</version>
|
||||
<version>2.10.9.2</version>
|
||||
<type>pom</type>
|
||||
</dependency>
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ public class EhCacheConfiguration {
|
|||
@Bean
|
||||
public EhCacheManagerFactoryBean ehCacheManagerFactoryBean() {
|
||||
EhCacheManagerFactoryBean cacheManagerFactoryBean = new EhCacheManagerFactoryBean();
|
||||
cacheManagerFactoryBean.setConfigLocation(new ClassPathResource("ehcache.xml"));
|
||||
cacheManagerFactoryBean.setShared(true);
|
||||
return cacheManagerFactoryBean;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue