D:\hibernate1>java client Dec 16, 2010 12:21:42 PM org.hibernate.cfg.Environment <clinit> INFO: Hibernate 3.1rc1 Dec 16, 2010 12:21:42 PM org.hibernate.cfg.Environment <clinit> INFO: hibernate.properties not found Dec 16, 2010 12:21:42 PM org.hibernate.cfg.Environment <clinit> INFO: using CGLIB reflection optimizer Dec 16, 2010 12:21:42 PM org.hibernate.cfg.Environment <clinit> INFO: using JDK 1.4 java.sql.Timestamp handling Dec 16, 2010 12:21:42 PM org.hibernate.cfg.Configuration configure INFO: configuring from resource: hibernate.cfg.xml Dec 16, 2010 12:21:42 PM org.hibernate.cfg.Configuration getConfigurationInputSt ream INFO: Configuration resource: hibernate.cfg.xml Dec 16, 2010 12:21:42 PM org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource: product.hbm.xml Dec 16, 2010 12:21:43 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassComm onValues INFO: Mapping class: product -> product Dec 16, 2010 12:21:43 PM org.hibernate.cfg.Configuration doConfigure INFO: Configured SessionFactory: null Dec 16, 2010 12:21:43 PM org.hibernate.cfg.Configuration secondPassCompile INFO: processing extends queue Dec 16, 2010 12:21:43 PM org.hibernate.cfg.Configuration secondPassCompile INFO: processing collection mappings Dec 16, 2010 12:21:43 PM org.hibernate.cfg.Configuration secondPassCompile INFO: processing association property references Dec 16, 2010 12:21:43 PM org.hibernate.cfg.Configuration secondPassCompile INFO: processing foreign key constraints Dec 16, 2010 12:21:43 PM org.hibernate.connection.DriverManagerConnectionProvide r configure INFO: Using Hibernate built-in connection pool (not for production use!) Dec 16, 2010 12:21:43 PM org.hibernate.connection.DriverManagerConnectionProvide r configure INFO: Hibernate connection pool size: 10 Dec 16, 2010 12:21:43 PM org.hibernate.connection.DriverManagerConnectionProvide r configure INFO: autocommit mode: false Dec 16, 2010 12:21:43 PM org.hibernate.connection.DriverManagerConnectionProvide r configure INFO: using driver: sun.jdbc.odbc.JdbcOdbcDriver at URL: jdbc:odbc:siva Dec 16, 2010 12:21:43 PM org.hibernate.connection.DriverManagerConnectionProvide r configure INFO: connection properties: {user=system, password=****} Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: RDBMS: Oracle, version: 00.00.0000 Oracle Database 10g Express Edition Rel ease 10.2.0.1.0 - Product Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC driver: JDBC-ODBC Bridge (msorcl32.dll), version: 2.0001 (02.575.1117 ) Dec 16, 2010 12:21:43 PM org.hibernate.dialect.Dialect <init> INFO: Using dialect: org.hibernate.dialect.Oracle9Dialect Dec 16, 2010 12:21:43 PM org.hibernate.transaction.TransactionFactoryFactory bui ldTransactionFactory INFO: Using default transaction strategy (direct JDBC transactions) Dec 16, 2010 12:21:43 PM org.hibernate.transaction.TransactionManagerLookupFacto ry getTransactionManagerLookup INFO: No TransactionManagerLookup configured (in JTA environment, use of read-wr ite or transactional second-level cache is not recommended) Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic flush during beforeCompletion(): disabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic session close at end of transaction: disabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch size: 15 Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch updates for versioned data: disabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Scrollable result sets: enabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC3 getGeneratedKeys(): disabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Connection release mode: null Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Default batch fetch size: 1 Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Generate SQL with comments: disabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL updates by primary key: disabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory createQueryTranslator Factory INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory Dec 16, 2010 12:21:43 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init> INFO: Using ASTQueryTranslatorFactory Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query language substitutions: {} Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Second-level cache: enabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query cache: disabled Dec 16, 2010 12:21:43 PM org.hibernate.cfg.SettingsFactory createCacheProvider INFO: Cache provider: net.sf.ehcache.hiberna te.EhCacheProvider Exception in thread "main" org.hibernate.HibernateException: could not instantia te CacheProvider: net.sf.ehcache.hiberna te.EhCacheProvider at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory .java:330) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java: 219) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1803 ) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav a:1124) at client.main(clint.java:9) Caused by: java.lang.ClassNotFoundException: net.sf.ehcache.hiberna te.EhCachePr ovider at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory .java:327) ... 4 more
|