How to run two instances of Dekho 4.1.9 on the same Tomcat

blog_02_multiple instances
Your Apache Tomcat installation can hold multiple instances of Dekho and this feature is used extensively with our customers.  A typical scenario would be to install the latest Dekho as a test, side-by-side with other DEV or PROD system. For Dekho 4.1.9, here is a check list for smooth cooperation of Dekho instances...


1. Stop Apache Tomcat
2. Rename the Dekho.war file (example : “Dekho419r.war”)
3. Copy Dekho419r.war into your web-apps folder
4. Start Tomcat: it will deploy a new sub-folder called “Dekho419r” (same as your .war filename).
5. Let it expand (uncompress) completely (can take a while if you have many instances of Dekho running within the same Tomcat).
6. Using file explorer, go to \Tomcat 7.0\webapps\Dekho419r\WEB-INF
7. Open the file called “log4j.xml” with notepad
8. In the <rollingFileAppender>, change the target log file to something unique to your new Dekho.
Example : <param name=”File” value=”${catalina.home}/logs/Dekho419r.log”/>
9. Save and close log4j.xml
10. Open the file called “web.xml” (next to log4j.xml)
11. Insert the following context parameter:
<param-value>C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/Dekho419r/</param-value>

12. Save and close the file web.xml
13. Open the file called “
14. Rename the parameter product_name to Dekho419r
15. Save and close “”
16. Restart Tomcat

Now observe the \Tomcat\logs\ folder and you should see a separate log for each Dekho instance. (Dekho419r.log)

Note: The Dekho URL will be http://dekhoserver:8080/Dekho419r 



This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *