posted 13 years ago
Here is the new code with sysouts :
And here is the stack :
before creation of session factory
May 23, 2011 2:22:56 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.3
May 23, 2011 2:22:56 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
May 23, 2011 2:22:56 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
May 23, 2011 2:22:56 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
May 23, 2011 2:22:56 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
May 23, 2011 2:22:56 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
May 23, 2011 2:22:56 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : tracker.hbm.xml
May 23, 2011 2:22:56 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: org.nav.tracker.hdto.JournalDTO -> JOURNAL_MAS
May 23, 2011 2:22:56 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
May 23, 2011 2:22:57 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
May 23, 2011 2:22:57 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 10
May 23, 2011 2:22:57 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
May 23, 2011 2:22:57 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/trackerdb
May 23, 2011 2:22:57 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=root, password=****}
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: MySQL, version: 5.5.11
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.16 ( Revision: ${bzr.revision-id} )
May 23, 2011 2:22:57 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.MySQLDialect
May 23, 2011 2:22:57 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
May 23, 2011 2:22:57 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)
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 2
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
May 23, 2011 2:22:57 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
May 23, 2011 2:22:57 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
May 23, 2011 2:22:58 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
May 23, 2011 2:22:58 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
after creation of session factory
in finally block
I thought some problem must be there with the jar file(hibernate3) i used and replaced it with hibernate 2 jar file. Still facing the same problem.