Thanks for the help Adam, I appreciate it. I am trying to implement a simple cas setup to auth against active directory using ldap. I am assuming that does not require a custom service registry definition? So adding the default bean definition back into the deployer xml should fix these issues?
Mark add this back into the xml? <bean id="serviceRegistryDao" class="org.jasig.cas.services.JpaServiceRegistryDaoImpl" p:entityManagerFactory-ref="entityManagerFactory"/> <!-- 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.MySQL5Dialect</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" p:driverClassName="com.mysql.jdbc.Driver" p:url="jdbc:mysql://localhost:3306/test?autoReconnect=true" p:password="" p:username="sa" /> </beans> On Thu, Apr 8, 2010 at 6:34 PM, Adam Rybicki <arybi...@unicon.net> wrote: > Mark, > > Your earlier version of deployerConfigContext.xml had a definition of > serviceRegistryDao, but this version does not. It's not optional. If > you don't intend to use CAS service registry then restore the original > bean definition. > > Adam > > Mark Baker wrote: > > Hello, > > > > I was able to make some progress, but am still getting an error which im > having trouble tracking down. I have pasted the error below and have > attached my deployerconfigcontext.xml. > > > > Thanks, > > > > Mark > > > > Apr 8, 2010 4:33:09 PM org.apache.catalina.core.ApplicationContext log > > SEVERE: SafeContextLoaderListener: > > The Spring ContextLoaderListener we wrap threw on contextInitialized. > > But for our having caught this error, the web application context would > not have initialized. > > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'servicesManager' defined in ServletContext resource > [/WEB-INF/spring-configuration/applicationContext.xml]: Cannot resolve > reference to bean 'serviceRegistryDao' while setting constructor argument; > nested exception is > org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean > named 'serviceRegistryDao' is defined > > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) > > > > -- > You are currently subscribed to cas-user@lists.jasig.org as: > mrk...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user