I fixed this by adding a dependency for spring-jdbc to my overlay pom.xml. I am sure why I had to do this.
Bryan Wooten [email protected] Work: 801.585.9323 Cell: 801.414.3593 From: Bryan Wooten [mailto:[email protected]] Sent: Thursday, November 04, 2010 11:44 AM To: [email protected] Subject: [cas-user] Problem deploying with service manager configured I have configured my deployerConfigContext.xml to use Oracle for the service manager data store. I am using the build overlay method. I added the following dependencies to my pom.xml: <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.4</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>3.5.0-CR-2</version> </dependency> This is the error I get: 2010-11-04 11:21:17,061 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servicesManager' defined in ServletContext resource [/WEB-INF/spring-configurati on/applicationContext.xml]: Cannot resolve reference to bean 'serviceRegistryDao' while setting constructor argument; nested exception is org.springframework.beans.fact ory.BeanCreationException: Error creating bean with name 'serviceRegistryDao' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot resolve re ference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested excep tion is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/lookup/DataSourceLookup My xml is like this: <bean id="serviceRegistryDao" class="org.jasig.cas.services.JpaServiceRegistryDaoImpl"> <property name="entityManagerFactory" ref="entityManagerFactory" /> <bean id="dataSource" class="org.apache.commons.dbcp.PoolingDataSource" p:driverClass="oracle.jdbc.driver.OracleDriver" p:urlrl="${cas.database.url}" p:username="${cas.database.user}" p:password="${cas.database.password}" /> <!-- This is the EntityManagerFactory configuration for Hibernate --> <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">org.hibernate.dialect.Oracle9Dialect</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> </bean> Thanks for any help, Bryan Wooten [email protected] Work: 801.585.9323 Cell: 801.414.3593 -- 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
