I am using Hibernate version 3.6.0.Final and although it is NOT working, I am not having the problems you are.
On Mon, May 21, 2012 at 12:49 PM, Laura McCord <[email protected]>wrote: > ** > Hi, > > I am upgrading my cas server to use version 3.4.11 and I am having > problems with the deployerConfigContext file. My previous cas version was > 3.4.6 and I followed the documentation here: > https://wiki.jasig.org/display/CASUM/Configuring when configuring the > "serviceRegistryDao" but now when I try to use the same configuration I > receive the following error: > > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'entityManagerFactory' defined in ServletContext > resource [/WEB-INF/deployerConfigContext.xml]: Invocation of init method > failed; nested exception is java.lang.NoSuchMethodError: > org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) > ... 54 more > Caused by: java.lang.NoSuchMethodError: > org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V > at > org.hibernate.service.ServiceRegistryBuilder.buildServiceRegistry(ServiceRegistryBuilder.java:244) > at > org.hibernate.ejb.Ejb3Configuration.buildLifecycleControledServiceRegistry(Ejb3Configuration.java:930) > at > org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:903) > at > org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) > at > org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) > at > org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225) > at > org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutow > > I am thinking this could be a mis-match of versions dealing with > hibernate. I am using > <hibernate.core.version>4.0.1.Final</hibernate.core.version> > > Here is the error-ridden section of my deployerConfigContext file: > .. > <bean id="serviceRegistryDao" > class="org.jasig.cas.services.JpaServiceRegistryDaoImpl" > p:entityManagerFactory-ref="entityManagerFactory" /> > > <bean id="entityManagerFactory" > > class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> > <property name="dataSource" ref="dataSource"/> > <property name="jpaVendorAdapter"> > <bean > class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> > <property name="generateDdl" value="true"/> > <property name="showSql" value="true" /> > </bean> > </property> > <property name="jpaProperties"> > <props> > <prop > key="hibernate.dialect">${database.hibernate.dialect}</prop> > <prop > key="hibernate.hbm2ddl.auto">update</prop> > </props> > </property> > </bean> > > <bean id="transactionManager" > class="org.springframework.orm.jpa.JpaTransactionManager"> > <property name="entityManagerFactory" > ref="entityManagerFactory"/> > </bean> > > <tx:annotation-driven transaction-manager="transactionManager" /> > > <bean id="dataSource" > class="org.apache.commons.dbcp.BasicDataSource"> > <property name="driverClassName" > value="${hibernate.connection.driver_class}" /> > <property name="url" value="${hibernate.connection.url}" /> > <property name="username" > value="${hibernate.connection.username}" /> > <property name="password" > value="${hibernate.connection.password}" /> > </bean> > ... > > Thank you, > Laura > > > -- > > Laura McCord > Web Programmer/Analyst > Southwestern University > [email protected] > > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
