Hi,
I'm trying to use hibernate 2.1 beta 5 and I get the following error while it's starting. What could be the problem?
11:25:05,633 INFO [net.sf.hibernate.cfg.Environment:432] Hibernate 2.1 beta 5 11:25:05,679 INFO [net.sf.hibernate.cfg.Environment:466] loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=com.mysql.jdbc.Driver, hibernate.cglib.use_reflection_optimizer=true, hibernate.max_fetch_depth=1, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.jdbc.batch_size=0, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=onix, hibernate.connection.url=jdbc:mysql://localhost/booky3, hibernate.connection.password=********, hibernate.statement_cache.size=25, hibernate.connection.pool_size=1} 11:25:05,679 INFO [net.sf.hibernate.cfg.Environment:480] using java.io streams to persist binary types 11:25:05,679 INFO [net.sf.hibernate.cfg.Environment:481] using CGLIB reflection optimizer 11:25:05,695 INFO [net.sf.hibernate.cfg.Configuration:303] Mapping resource: ro/level7/booky3/beans/Client.hbm.xml
11:25:06,099 INFO [net.sf.hibernate.cfg.Binder:197] Mapping class: ro.level7.booky3.beans.Client -> clients 11:25:06,471 INFO [net.sf.hibernate.cfg.Configuration:303] Mapping resource: ro/level7/booky3/beans/Clientp1.hbm.xml
11:25:06,549 INFO [net.sf.hibernate.cfg.Binder:197] Mapping class: ro.level7.booky3.beans.Clientp1 -> clientp1 11:25:06,549 INFO [net.sf.hibernate.cfg.Configuration:303] Mapping resource: ro/level7/booky3/beans/Country.hbm.xml
11:25:06,595 INFO [net.sf.hibernate.cfg.Binder:197] Mapping class: ro.level7.booky3.beans.Country -> country 11:25:06,642 INFO [net.sf.hibernate.cfg.Configuration:563] processing one-to-many association mappings 11:25:06,642 INFO [net.sf.hibernate.cfg.Binder:1077] Mapping collection: ro.level7.booky3.beans.Country.clients -> clients 11:25:06,657 INFO [net.sf.hibernate.cfg.Configuration:572] processing one-to-one association property references 11:25:06,657 INFO [net.sf.hibernate.cfg.Configuration:597] processing foreign key constraints 11:25:06,797 INFO [net.sf.hibernate.dialect.Dialect:82] Using dialect: net.sf.hibernate.dialect.MySQLDialect
11:25:06,828 WARN [net.sf.hibernate.cfg.SettingsFactory:50] No dialect set - using GenericDialect: Could not instantiate dialect class 11:25:06,828 INFO [net.sf.hibernate.dialect.Dialect:82] Using dialect: net.sf.hibernate.dialect.GenericDialect
11:25:06,828 INFO [net.sf.hibernate.cfg.SettingsFactory:58] Maximim outer join fetch depth: 1 11:25:06,828 INFO [net.sf.hibernate.cfg.SettingsFactory:62] Use outer join fetching: false 11:25:06,844 INFO [net.sf.hibernate.connection.DriverManagerConnectionProvider:41] Using Hibernate built-in connection pool (not for production use!) 11:25:06,844 INFO [net.sf.hibernate.connection.DriverManagerConnectionProvider:42] Hibernate connection pool size: 1 11:25:06,859 INFO [net.sf.hibernate.connection.DriverManagerConnectionProvider:71] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/booky3 11:25:06,859 INFO [net.sf.hibernate.connection.DriverManagerConnectionProvider:72] connection properties: {user=onix, password=abracadabra} 11:25:06,875 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory:33] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) 11:25:07,356 INFO [net.sf.hibernate.cfg.SettingsFactory:89] Use scrollable result sets: true 11:25:07,356 INFO [net.sf.hibernate.cfg.SettingsFactory:99] Query language substitutions: {no='N', true=1, yes='Y', false=0} 11:25:07,371 INFO [net.sf.hibernate.cfg.SettingsFactory:110] cache provider: net.sf.hibernate.cache.JCSCacheProvider
net.sf.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.hibernate.cache.JCSCacheProvider
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:115)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1023)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:716)
at ro.level7.common.db.directimpl.ManagerImpl.configure(ManagerImpl.java:85)
at ro.level7.booky3.plugins.core.CorePlugin.initDB(CorePlugin.java:135)
at ro.level7.booky3.plugins.core.CorePlugin.handleMessage(CorePlugin.java:167)
at ro.level7.bootstrap.BootstrapPanel.messageCommon(BootstrapPanel.java:317)
at ro.level7.bootstrap.BootstrapPanel.sendMessage(BootstrapPanel.java:345)
at ro.level7.bootstrap.BootstrapUtils.sendMessage(BootstrapUtils.java:58)
at ro.level7.bootstrap.BootstrapPanel.run(BootstrapPanel.java:65)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.ClassCastException
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:112)
... 10 more
|