Skip to main content

Apache Tomcat 8.0 - Cantara Assur Server Installation

This documentation does not intend to document Tomcat and It is assumed that anyone following the documentation contained on this page has experience working with Tomcat. However, you can refresh your Tomcat knowledge by reading below links:

Make sure you have done the following before deploying the Cantara Assur Server:

To deploy an instance of the Cantara Server
  1. Ensure that the prerequisite JAR libraries are loaded into $CATALINA_HOME/lib

    1. javax.mail.jar available at https://java.net/projects/javamail/pages/Home#Download_JavaMail_Release
    2. xercesImpl.jar and xml-apis.jar are available at http://xerces.apache.org/mirrors.cgi
  2. Create the context definition xml file in $CATALINA_HOME/conf/Catalina/localhost, this file should be have the same name as the desired context for the application. Below is an example context file for Enterprise Edition with a Oracle MySQL database.

    Example Context cantara.xml

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/cantara" docBase="/u01/rinami/cantara/assur/assur50.war">
      <Manager pathname="" />
      <Resource auth="Container"
                driverClassName="com.mysql.jdbc.Driver" 
                maxTotal="100" 
                maxIdle="30" 
                maxWaitMillis="10000"
                name="jdbc/Cantara"
                password="cantara" 
                type="javax.sql.DataSource" 
                url="jdbc:mysql://localhost:3306/assur50" 
                username="cantara"/>
      <Resource auth="Container" 
                mail.debug="false" 
                mail.smtp.auth="false" 
                mail.smtp.host="localhost" 
                mail.transport.protocol="smtp" 
                name="mail/Cantara"
                global="mail/Cantara"
                type="javax.mail.Session"/>
    </Context>
  3. In the tomcat /bin folder locate the setenv file (Linux this will be setenv.sh and windows setenv.bat, add a new java property to the file.

    setenv Example

    XML
    JAVA_OPTS="-Dcantara.assur.etc=/u01/rinami/cantara/assur/etc"
  4. Start the Apache Tomcat instance.
  5. If the deployment is successful, you should see the Cantara Assur Server in the list of applications with its running state set to true. If the deployment fails to start, check the appropriate Tomcat logs for deployment errors.

Validate Deployment

If you open a browser window to the base URL of the Cantara Access Server deployment you can confirm that the deployment has completed successfully.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.