CAS becomes unavailable due to inactivity

supriya prakash supriya_prakash1 at rediffmail.com
Thu May 8 06:42:22 EDT 2008


Hi,I have deployed cas server 3.0.5 on tomcat 5.5.23. CAS talks to MySQL 5.0 for authentication purpose. For this I made following modification to deployerConfigContext.xml.<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">         <property name="driverClassName">          <value>com.mysql.jdbc.Driver</value>         </property>         <property name="url">          <value>jdbc:mysql://localhost:3306/db</value>         </property>         <property name="username">          <value>user1</value>         </property>         <propert!
 y name="password">          <value>user1</value>         </property>        </bean>                <bean id="SearchModeSearchDatabaseAuthenticationHandler"                      class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler"                      abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">                  <property  name="tableUsers">                   <value>users</value>&!
 nbsp;             &n
bsp;   </property>                  <property name="fieldUser">                   <value>userid</value>                  </property>                  <property name="fieldPassword">                   <value>password</value>                  </property>                  <property name="dataSource" ref="dataSource" />                </bean>          &nb!
 sp;      The applications deployed on tomcat are then integrated with CAS by modifying their respective web.xml (s) and server.xml of tomcat. When I try to login to my application the login is successful and everything works fine. If I leave tomcat and mysql running overnight and if I again try to login to my application next day I get CAS in Unavailable error. If I restart tomcat everything works fine again. What could be the possible reason for this? What is the solution to this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080508/bb106598/attachment.html 


More information about the cas mailing list