Instruction to install CAS:
Prerequisites:
The list of currently implemented web-services and servlets: CASCurrentServices
<role rolename="manager"/> <role rolename="admin"/> <user username="yourName" password="yourPassword" roles="manager,admin"/>
<Connector port="8080" maxHttpHeaderSize="8192" maxThreads="30" minSpareThreads="5" maxSpareThreads="15" enableLookups="false" redirectPort="8443" acceptCount="10" connectionTimeout="20000" disableUploadTimeout="true" />
#Main Logger log4j.rootLogger=INFO, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c (%l) - %m%n #log4j.logger.org.apache.catalina=DEBUG, R #The logger for Axis log4j.logger.org.apache.axis=INFO #The logger for SAI_CAS log4j.logger.sai_cas=DEBUG
<Resource name="jdbc/DriverAdapterCPDS" auth="Container" type="org.apache.tomcat.dbcp.dbcp.cpdsadapter.DriverAdapterCPDS" driver="org.postgresql.Driver" url="jdbc:postgresql://127.0.0.1:5432/cas" factory="org.apache.tomcat.dbcp.dbcp.cpdsadapter.DriverAdapterCPDS" username="" password=""/> <Resource name="jdbc/postgresPerUser" auth="Container" type="org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource" factory="org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSourceFactory" dataSourceName="java://comp/env/jdbc/DriverAdapterCPDS"/>
int the $TOMCAT_HOME/conf/server.xml (this will enable the global connection pool available for all applications in tomcat). (set the correct IP, port and name of the database) You also MUST correct the context.xml in the cas source directory (in $CAS_SRC/web/META-INF/context.xml) (there you need to set also up the correct parameters for the database connections)
And to enable the connection pool specifically for Axis we need to add
<Context path="/axis" docBase="axis" debug="5" reloadable="true" crossContext="true"> <ResourceLink name="jdbc/DriverAdapterCPDS" type="org.apache.tomcat.dbcp.dbcp.cpdsadapter.DriverAdapterCPDS" global="jdbc/DriverAdapterCPDS"/> <ResourceLink name="jdbc/postgresPerUser" type="org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource" global="jdbc/postgresPerUser"/> </Context>
in the $TOMCAT_HOME/webapps/axis/META-INF/context.xml
After downloading and unpacking in principal it should be enough to just run ant in the directory. But currently you must also correct the paths do different libs, to tomcat etc… in the file "build.properties" After the setup of correct properties. Just do:
ant deploy_cas ant deploy_cas_ws
to deploy the CAS servlets and WebServices