how to host multiple instance of TS on Tomcat?

Discuss problems installing or using TrackStudio.

how to host multiple instance of TS on Tomcat?

Postby fcai » Wed Mar 31, 2010 8:23 pm

1. download TS 3.5.74 war file and copy/rename it into different war files. i.e. foo.war and bar.war

2. explode war files into webapps directory of your tomcat and put all config files into WEB-INF directory (*.properties files).

3. modify trackstudio.properties and trackstudio.hibernate.properties.
reset trackstudio.siteURL to match your url
different instance must point to different db.
different instance must have different setting for trackstudio.indexDir and trackstudio.uploadDir

4. If having file upload problem, you need reset VM default heap memory. I am using Eclipse and here is what I did:

a. Open the Server tab in Eclipse and double click the Tomcat server to open Server Configuration.

b. In Server Configuration, click on the "Open Launch Configuration" link under General Information.

c. Click Arguments tab and add -Xms64m -Xmx256m in VM arguments like this
-Djava.endorsed.dirs="C:\DEV\Server\apache-tomcat-5.5.25\common\endorsed" -Xms64m -Xmx256m
fcai
 
Posts: 66
Joined: Wed Jun 24, 2009 10:57 pm
Location: USA

Re: how to host multiple instance of TS on Tomcat?

Postby Petr » Wed Apr 07, 2010 11:51 am

fcai wrote:1. download TS 3.5.74 war file and copy/rename it into different war files. i.e. foo.war and bar.war

2. explode war files into webapps directory of your tomcat and put all config files into WEB-INF directory (*.properties files).

3. modify trackstudio.properties and trackstudio.hibernate.properties.
reset trackstudio.siteURL to match your url
different instance must point to different db.
different instance must have different setting for trackstudio.indexDir and trackstudio.uploadDir

4. If having file upload problem, you need reset VM default heap memory. I am using Eclipse and here is what I did:

a. Open the Server tab in Eclipse and double click the Tomcat server to open Server Configuration.

b. In Server Configuration, click on the "Open Launch Configuration" link under General Information.

c. Click Arguments tab and add -Xms64m -Xmx256m in VM arguments like this
-Djava.endorsed.dirs="C:\DEV\Server\apache-tomcat-5.5.25\common\endorsed" -Xms64m -Xmx256m

Have you mistake downloading file?
Show me log exception.
TS Support
email: parsentev@yandex.ru
Petr
 
Posts: 1125
Joined: Wed Aug 12, 2009 4:38 pm


Return to TrackStudio Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron