---
title: "Server setup for deploying  collect.war"
url: "https://openforis.support/questions/401/server-setup-for-deploying-collectwar"
tags: ["collect"]
status: "accepted"
score: 0
answer_count: 1
asked: "2015-11-27T16:53:58"
last_activity: "2015-11-30T18:14:31"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Server setup for deploying  collect.war

Asked by pmagdon on 2015-11-27

Hi,
we like to run collect and calc on an Ubuntu Server. As we cannot use the bitrocket installers provided without gui we try to directly deploy the collec.war files on a tomcat 7 instance. However, this is currently not working, see logfile below. Are there any information available on how to setup the server to get collect running? What addional files are needed? Which java version (currently we use open-jdk). According to the collect.log file there is an issue to resolve [jdbc]

Any suggestions are welcome!

Greetings
Paul

collect.log:
Caused by: javax.naming.NameNotFoundException: Name [jdbc/collectDs] is not bound in this Context. Unable to find [jdbc].


## Accepted answer (score 1, by Stefano (OF) on 2015-11-27)

Link: https://openforis.support/questions/401/server-setup-for-deploying-collectwar/402

Hi Paul,  
you almost completed the configuration of Collect... just other few steps are left.  
First of all, Collect works with the only JRE 7+ (JDK is not required).  
What is still missing is the "context" configuration file that describes the configuration to the database. You need to create a file called *collect.xml* inside the folder *.../tomcat/conf/Catalina/localhost*. An example of this file can be found here:
[collect.xml](https://raw.githubusercontent.com/openforis/collect/master/collect-assembly/src/main/assembly/resources/tomcat/conf/Catalina/localhost/collect.xml)
and here you can find instructions on how to modify it in order to use Collect with a PostgreSQL database: [Collect Server Setup](http://km.fao.org/OFwiki/index.php/Open_Foris_Collect_Installation#Collect_Server_Setup)  
Let us know if you have any other questions.  

Many thanks,  
Open Foris Support

> Yes, that solved the issue. Collect is now running on the server! (pmagdon)
