Hi All When I replace the Hibernate 3.2 with 3.6 jar in my JSF application. I get following error. I can run individual Hibernate queries fine, only in TOMCAT web application the query is producing following error.
Caused by: javax.faces.el.EvaluationException: Bean: com.utmb.web.beans.datadictBean, property: existstudyChoice at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:463) at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85) ... 98 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:459) ... 99 more Caused by: java.lang.ExceptionInInitializerError at com.utmb.util.HibernateUtil.<clinit>(Unknown Source) at com.utmb.web.beans.datadictBean.getExiststudyChoice(Unknown Source) ... 104 more Caused by: java.lang.NoSuchMethodError: org.hibernate.util.SoftLimitMRUCache.<init>(II)V at org.hibernate.engine.query.QueryPlanCache.<init>(QueryPlanCache.java:77) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:237) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1842) ... 106 more
FOLLOWING LOG trace
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Database -> name : MySQL version : 5.1.39-community major : 5 minor : 1 Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Driver -> name : MySQL-AB JDBC Driver version : mysql-connector-java-5.1.12 ( Revision: ${bzr.revision-id} ) major : 5 minor : 1 Oct 22, 2010 4:29:11 PM org.hibernate.dialect.Dialect <init> INFO: Using dialect: org.hibernate.dialect.MySQLDialect Oct 22, 2010 4:29:11 PM org.hibernate.engine.jdbc.JdbcSupportLoader useContextu lLobCreation INFO: Disabling contextual LOB creation as JDBC driver reported JDBC version [3 less than 4 Oct 22, 2010 4:29:11 PM org.hibernate.transaction.TransactionFactoryFactory bui dTransactionFactory INFO: Using default transaction strategy (direct JDBC transactions) Oct 22, 2010 4:29:11 PM org.hibernate.transaction.TransactionManagerLookupFacto y getTransactionManagerLookup INFO: No TransactionManagerLookup configured (in JTA environment, use of read-w ite or transactional second-level cache is not recommended) Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic flush during beforeCompletion(): disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic session close at end of transaction: disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch size: 15 Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch updates for versioned data: disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Scrollable result sets: enabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC3 getGeneratedKeys(): enabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Connection release mode: auto Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Maximum outer join fetch depth: 2 Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Default batch fetch size: 1 Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Generate SQL with comments: disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL updates by primary key: disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL inserts for batching: disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory createQueryTranslator actory INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory Oct 22, 2010 4:29:11 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init> INFO: Using ASTQueryTranslatorFactory Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query language substitutions: {} Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JPA-QL strict compliance: disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Second-level cache: enabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query cache: enabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory createRegionFactory INFO: Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCache roviderBridge Oct 22, 2010 4:29:11 PM org.hibernate.cache.impl.bridge.RegionFactoryCacheProvi erBridge <init> INFO: Cache provider: org.hibernate.cache.EhCacheProvider Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Optimize cache for minimal puts: disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Structured second-level cache entries: enabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory createQueryCacheFacto y INFO: Query cache factory: org.hibernate.cache.StandardQueryCacheFactory Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Echoing all SQL to stdout Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Statistics: enabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Deleted entity synthetic identifier rollback: disabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Default entity-mode: pojo Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Named query checking : enabled Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Check Nullability in Core (should be disabled when Bean Validation is on) enabled Oct 22, 2010 4:29:11 PM org.hibernate.impl.SessionFactoryImpl <init> INFO: building session factory Initial SessionFactory creation failed.java.lang.NoSuchMethodError: org.hiberna e.util.SoftLimitMRUCache.<init>(II)V
|