A new documentation is available for Squash TM 2.0 and later versions, check it here
Since the release of version 1.13, Squash TM can be deployed in an existing Tomcat 8 server.
WARNING : We recommend not to deploy Squash TM in an existing server but to rather use it as stand alone.
~SQUASH is the Squash TM deployment folder.
~TOMCAT is the Tomcat deployment folder.
Configure Tomcat in ~TOMCAT/bin, create setenv.bat or setenv.sh.
In this folder, define an environment variable JAVA_OPTS with the -Xmx1024m -XX:MaxPermSize=256m value.
Configure the context of the webapp. Create a squash-tm.xml in ~TOMCAT/conf/[enginename]/[hostname]/with the following information :
~TOMCAT/conf/[enginename]/[hostname]/squash-tm.xml
<Context>
<Environment name="logging.config" value="file:<SQUASHTM DEPLOYEMENT FOLDER>/conf/log4j.properties" type="java.lang.String" override="false"/>
<Environment name="spring.config.location" value="file:<SQUASHTM DEPLOYEMENT FOLDER>/conf/squash.tm.cfg.properties" type="java.lang.String" override="false"/>
<Environment name="spring.profiles.active" value="mysql" type="java.lang.String" override="false"/>
<Environment name="spring.datasource.url" value="jdbc:mysql://<MYSQL_SERVER>:<PORT>/<DATABASE_NAME>" type="java.lang.String" override="false"/>
<Environment name="debug" value="true" type="java.lang.Boolean" override="false"/>
<Resources>
<PreResources className="org.apache.catalina.webresources.DirResourceSet"
base="<SQUASHTM DEPLOYEMENT FOLDER>/plugins"
internalPath="/"
webAppMount="/WEB-INF/lib" />
</Resources>
</Context>
Note: mysql needs to be replaced by postgresql if a postgresql database is being used.
4.Edit ~SQUASH/conf/squash.tm.cfg.properties, and add or edit the following properties:
~SQUASH/conf/squash.tm.cfg.properties
...
spring.datasource.url=<jdbc url of your datasource>
spring.datasource.username=<your database username>
spring.datasource.password=<your database password>
squash.path.root=<Squash TM deployment folder>
...