CAS on Jboss

Here's what I had to do in order to make CAS 3.2.1 run on Jboss 5.0.1. Hopefully this will help someone else. Note: this will get the default CAS demo use only config up and running on jboss.

1) Web.xml

Comment out everything related to Log4j, namely these:

<!-- - Location of the Log4J config file, for initialization and refresh checks. - Applied by Log4jConfigListener. <context-param> <param-name>log4jConfigLocation</param-name> <param-value>classpath:log4j.xml</param-value> </context-param> <context-param> <param-name>log4jExposeWebAppRoot</param-name> <param-value>false</param-value> </context-param>
-->
<!--
    Specify that the log4j configuration should be reloaded periodically
    to pick up changes
  <context-param>
    <param-name>log4jRefreshInterval</param-name>
    <param-value>60000</param-value>
  </context-param>
-->   
<!--

- Location of the Log4J config file, for initialization and refresh checks.

- Applied by Log4jConfigListener.

<context-param>

<param-name>log4jConfigLocation</param-name>

<param-value>classpath:log4j.xml</param-value>

</context-param>

<context-param>

<param-name>log4jExposeWebAppRoot</param-name>

<param-value>false</param-value>

</context-param>

-->

<!--

    Specify that the log4j configuration should be reloaded periodically

    to pick up changes

  <context-param>

    <param-name>log4jRefreshInterval</param-name>

    <param-value>60000</param-value>

  </context-param>

-->  

Add a new file in WEB-INF/jboss-web.xml

<?xml version="1.0" encoding="UTF-8"?>

<jboss-web>

   <class-loading> 

      <loader-repository>org.hibernate.ejb.HibernatePersistence:archive=cas-server-webapp-3.4.10.war/WEB-INF/lib/hibernate3.jar</loader-repository> 

   </class-loading>

</jboss-web>

Add to WEB-INF/lib

hibernate3.jar - it's not included in the download package.