Environment setup

Contents

Setting up the Cyclos 3 development environment

Installation requirements

Installation steps

Please make sure the following steps are followed:

Step I: Install Eclipse

(You can skip this step if you have already installed Eclipse Indigo IDE for Java EE Developers)

Step II: Install JInto

(You can skip this step if you have already installed JInto 0.13.5)

Step III: Add tomcat to Eclipse

Note for linux/ubuntu users: for tomcat to work with eclipse, you first need to make sure that eclipse can change the tomcat configuration files, so you have to set the permissions for this. As windows is less tricky with permissions, there is no need to do this in windows. It also helps to make some links in the tomcat directory. Example:

cd /usr/share/tomcat6
sudo ln -s /var/lib/tomcat6/conf conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy conf/catalina.policy
sudo ln -s /var/log/tomcat6 log
sudo chmod -R 777 /usr/share/tomcat6/conf

The following items must be done by both windows and linux users:

Step IV: Get Cyclos code

There are two ways to download the cyclos code. A: The cyclos code can be downloaded trough a repository location. B: The cyclos code can be downloaded trough sourceforge.net.

A. code from SVN repository

First, you need to make SVN available in eclipse.
Note: The SVN repository is currently not publicly available. You can download the source code from Source Forge (basic install).

Once SVN is completely installed, do the following steps:

B. Code from installation package source forge

Note: for version 3.5.6 and earlier another step is required (for 3.6 or higher this is not needed). On the directory where you extract the downloaded package, go to web/WEB-INF/lib and open cyclos.jar find the file /nl/strohalm/cyclos/spring/web_beans.xml and extract this file to workspace: cyclos/src/nl/strohalm/cyclos/spring

Step V: Configure MySQL in the cyclos.properties file

hibernate.connection.username = cyclos
hibernate.connection.password = cyclos1234

Step VI: Configure tomcat in eclipse

Step VII: Other configurations

Step VIII: Start Cyclos

TIP: If you don't want your explorer in eclipse to be packed with all kind of libraries listed, use the package explorer (windows > show view > other > java > package explorer), and set its filter to hide the libraries.

If do add new library you will have to have to add them in the properties of cyclos_web project. Select J2EE Module dependencies and add the lib (add jar).

Run Cyclos in Netbeans IDE

If you want to run Cyclos in Netbeans you will have to do the following steps:

TIP: When ever you want to deploy the app again, you need to delete the according "web-app-name".xml file in apache/conf/catalina/localhost (or modify apache to run multiple instances).

General tips

During the development it is better to disable the second level cache. You can do this by setting in the cyclos.properties file:

### Second level cache settings
hibernate.cache.use_query_cache=false
hibernate.cache.use_second_level_cache=false

Ten useful eclipse short cuts can be found at this site

Debugging tips