I had the same problem and found in order to fix it I did not need to include ehcache in my project/classpath. Make sure you include the jar files the docs say to.
For me to fix it I wrote a log4j.properties file as follows:
Code:
log4j.rootCategory=Info, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p $c{1}:%L - %m%n
log4j.logger.net.sf.hibernate=info
log4j.logger.net.sf.hibernate.type=info
and included the following in my Oracle config file:
Code:
<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>
<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
If any of the above doesnt work for then do some reading in doc files cos thats where I found all this stuff . Good luck.