Glen,

What platform (Operating System) is this running on?  When I setup my initial 
CAS server I had issues with the web site timing out every time I tried to  
access it.  With my OS being RedHat Enterprise Linux, I found that I either 
needed to create specific rules for IPTables to allow traffic to the CAS, or 
disable IPTables all together (if you're comfortable with this).  As a test, I 
would try disabling IPTables first, see if that resolves your issue.  If that 
does resolve your issue, then I would identify what rules you need to add to 
IPtables to make it work properly with it enabled.  I hope this helps.

Also, are you able to access the /cas/services URI to manage your services that 
way (ie., https://yourcas.yourdomain.edu/cas/services)?  I found this to be a 
much easier way to configure services in CAS vs. adding them individually in 
the deployerConfigContext.xml.


Ben Branch
Sun Administrator
University of Central Oklahoma
ITIL Foundation v3, Network+

100 N. University Drive, Box 122
Edmond, OK 73034
D: 405.974.2649 | M: 405.550.6804 | bbranch@uco.<mailto:bbranch@uco.>edu | 
www.uco.edu<http://www.uco.edu/>

"If you wish to know your past, look at your present conditions.  If you wish 
to know your future, look at your present actions."  - Siddhartha Gautama

From: HOLCOMB, LAWRENCE [mailto:[email protected]]
Sent: Tuesday, March 13, 2012 5:54 PM
To: [email protected]
Subject: Re:[cas-user] Services Management Problems

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<http://www.mailscanner.info/>, and is
believed to be clean.

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user


**Bronze+Blue=Green** The University of Central Oklahoma is Bronze, Blue, and 
Green! Please print this e-mail only if absolutely necessary! 

**CONFIDENTIALITY** This e-mail (including any attachments) may contain 
confidential, proprietary and privileged information. Any unauthorized 
disclosure or use of this information is prohibited.


-- 
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

Reply via email to