...
- Install our version of conf/server.xml (from /mit/touchstone/config/idp2-core/tomcat), which properly configures the AJP connector on port 8009, and disables the HTTP connector on port 8080.
- Edit /usr/local/tomcat/conf/context.xml, and add the following Resource element within the <Context> element:
Set the username and password attributes as needed. Note that the url must point at the host that is the MySQL master.No Format <Resource auth="Container" defaultAutoCommit="false" maxActive="5" maxIdle="2" maxWait="5000" name="jdbc/CAMS" removeAbandoned="true" removeAbandonedTimeout="30" type="javax.sql.DataSource" validationQuery="SELECT 1" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000" minEvictableIdleTimeMillis="60000" username="camsusr" password="XXX" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://idp-cams-1:3306/cams" />
- We will require the MySQL connector for Java; download and copy this into the tomcat library directory, e.g.:
No Format # cp /path/to/mysql-connector-java-5.1.12-bin.jar /usr/local/tomcat/lib/
...