Chapter 2. Installation

Installing the Tomcat bundle
Startup
Shutdown
Startup scripts
Installing the JBoss EARs
Copy these files in jboss-root/server/default/deploy
Create a folder jboss-root/server/default/conf/gatein
Copy these files in jboss-root/bin
Configure JVM parameters
Add eXo logging categories in jboss-root/server/default/conf/jboss-log4j.xml
Startup
Shutdown
eXo Profiles

eXo Platform is packaged as a deployable enterprise archive, per the Java EE specification, and as a configuration directory.

The easiest way to install eXo Platform is to take the default bundle. This is a ready-made package on top of Tomcat 6 application server, so you simply need to copy the bin/tomcat6-bundle/ directory to your server.

eXo comes with several builtin startup scripts :

start_eXo scripts launch eXo with the following JVM options :

-Xms256m 
-Xmx1024m 
-XX:MaxPermSize=256m 
-Djava.security.auth.login.config=../conf/jaas.conf  
-Dexo.conf.dir.name=gatein/conf 
-Dexo.profiles=default
-Xms Minimal heap size (defaults to 256 MB)
-Xmx Maximal Heap Size of (defaults to 1 GB)
-Djava.security.auth.login.config path to the JAAS security file where the security domains are and JAAS authentication modules are declared
-Dexo.conf.dir.name path where eXo will start looking at configuration.properties and configuration.xml
-Dexo.profiles the list of comma-separated exo profiles to activate

This is enough to start and run a demo, but you will need to adjust these values for a production setup.

gatein-dev scripts launch eXo in developer mode with a few more JVM options.

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n 
-Dcom.sun.management.jmxremote 
-Dorg.exoplatform.container.configuration.debug 
-Dexo.product.developing=true 
-Dcom.sun.management.jmxremote activates the JMX remoting
-Xdebug Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n enables remote debugging
-Dorg.exoplatform.container.configuration.debug the container will log to the console what xml files it loads
-Dexo.product.developing=true desactivates javascript and css merging for easier debugging

We provide EARs packages to deploy in your existing JBoss application server. They are located in the folder bin/jboss5-eap-ears/.

To install eXo Platform on JBoss, follow these steps:

On Linux, add these lines at the end of jboss-root/bin/run.conf:

On Windows, at these lines at the end of jboss-root/bin/run.conf.bat:

Adapt to your needs:

eXo comes with different runtime profile, that you can use if you want to customize what modules you want to enable/disable in you eXo instance.

start_eXo commands accept a comma-separated list of profiles. The following profiles are supported :

Profile Description
collaboration enables eXo Collaboration module
knowledge enables eXo Knowledge module
social enables eXo Social module
workflow enables the Workflow add-on within the eXo Content module

Additionally, you can use these composite profiles:

Profile Description
minimal contains GateIn + WCM
default contains all except workflow (gatein,ide,wcm,collaboration,social,knowledge)
all all available modules

For example :

./start_eXo.sh default,workflow #  start all modules including workflow
./start_eXo.sh collaboration,knowledge #  start exo with gatein,wcm, collaboration and knowledge enabled
./start_eXo.sh minimal,social # start with social, gatein and wcm