-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: problem related to ehcache
PostPosted: Sat Jan 05, 2008 10:32 am 
Newbie

Joined: Sat Jan 05, 2008 9:44 am
Posts: 3
I am getting issue related to ehache....

if anybody knowsm, please sort out this issue...

Jan 5, 2008 7:53:11 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.0rc1
Jan 5, 2008 7:53:11 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Jan 5, 2008 7:53:11 PM org.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Jan 5, 2008 7:53:11 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: com/ibm/myhibernate/config/hibernate.cfg.xml
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: com/ibm/myhibernate/config/hibernate.cfg.xml
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/ibm/myhibernate/hbm/BwAnobagActivityDE.hbm.xml
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.ibm.vista.bw.dm.impl.BwAnobagActivityDE -> TBWANOBAGACTIVITY
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
Jan 5, 2008 7:53:12 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.DB2Dialect
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Jan 5, 2008 7:53:12 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Jan 5, 2008 7:53:12 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Jan 5, 2008 7:53:12 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
Jan 5, 2008 7:53:12 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
Jan 5, 2008 7:53:12 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
Jan 5, 2008 7:53:12 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:db2://9.182.249.18:50000/VISTADB
Jan 5, 2008 7:53:12 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=dbuser, password=****}
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
Jan 5, 2008 7:53:13 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
Jan 5, 2008 7:53:13 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: enabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Jan 5, 2008 7:53:13 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Jan 5, 2008 7:53:13 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Jan 5, 2008 7:53:13 PM net.sf.ehcache.config.Configurator configure
WARNING: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Documents%20and%20Settings/rohgoyal/Desktop/Video%20DS/hibernate/hibernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 4:51 am 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
That simply means that the application could not find a definition of yours of an ehcache.xml file (which should be in the classpath if you are interested in defining one), and it is using a default ehcache configuration file that comes inside the ehcahce library's jar.

You can ignore this, or create your own ehcache.xml file with some very generic value. Here's an example:

Code:
<ehcache>

    <diskStore path="java.io.tmpdir/somedirectory"/>


    <defaultCache
        maxElementsInMemory="5000"
        eternal="true"
        timeToIdleSeconds="0"
        timeToLiveSeconds="0"
        overflowToDisk="true"
        diskPersistent="true"
        diskExpiryThreadIntervalSeconds="120"
        memoryStoreEvictionPolicy="LRU"
     />

</ehcache>


Just put it underl your WEB-INF/classes file (or whatever your classpath is, if your application is not a web one), and the message will disappear.

_________________
Gonzalo Díaz


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.