Turns out I didn't have a mysql jdbc driver. However I'm having new issues. After implementing the configuration changes CAS times out more often than not. It seems to be running but not responding to web requests:
2012-03-13 16:30:15,058 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Beginning ticket cleanup.> 2012-03-13 16:30:15,058 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <0 tickets found to be removed.> 2012-03-13 16:30:15,058 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Finished ticket cleanup.> 2012-03-13 16:31:56,594 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.> Hibernate: select registered0_.id as id0_, registered0_.allowedToProxy as allowedT2_0_, registered0_.anonymousAccess as anonymou3_0_, registered0_.description as descript4_0_, registered0_.enabled as enabled0_, registered0_.evaluation_order as evaluation6_0_, registered0_.ignoreAttributes as ignoreAt7_0_, registered0_.name as name0_, registered0_.serviceId as serviceId0_, registered0_.ssoEnabled as ssoEnabled0_, registered0_.theme as theme0_ from RegisteredServiceImpl registered0_ 2012-03-13 16:31:56,596 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.> I've tried regestering services in the deployerConfigContext.xml thinking that the lack of an https definition in the new bean was the problem but that doesn't help. From: Glen Holcomb <[email protected]<mailto:[email protected]>> Date: Tue, 13 Mar 2012 15:36:47 -0600 To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Services Management Problems Hello, I'm setting up CAS for the first time and am having trouble configuring the Services Management Application. I've attempted to follow the instruction at https://wiki.jasig.org/display/CASUM/Configuring but I'm getting the following error in my catalina.out: ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cas]] - <Exception starting filter springSecurityFilterChain> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servicesManager' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jasig.cas.services.DefaultServicesManagerImpl]: Constructor threw exception; nested exception is org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot open connection; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection I am able to connect to the database with the following command: mysql -s -N -h localhost -P 3306 -D cas -u cas_admin –p Here is the relevant xml from my deployerConfigContext.xml: <bean id="serviceRegistryDao" class="org.jasig.cas.services.JpaServiceRegistryDaoImpl" p:entityManagerFactory-ref="entityManagerFactory" /> <!-- 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.MySQLDialect</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/cas?autoReconnect=true" p:password="cas_services" p:username="cas_admin" /> <bean id="auditTrailManager" class="com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager" /> I've uncommented the MySQLDialect in cas.properties: database.hibernate.dialect=org.hibernate.dialect.MySQLDialect I've also added the following to the dependencies in 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> I'm trying to add a SAML 2.0 service for Google Apps SSO. Any help would be greatly appreciated. Regards, Glen Holcomb -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- 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
