Look here for information on installation steps, including for each of the components you'll need.
Important Note: At this time Clearspace is not supported in a virtualized environment. A virtualized environment can slow the application's performance by severely decreasing disk I/O and network I/O under load.
To make evaluating Clearspace easier, it includes a Windows installer. You'll find more information about it in the readme file.
This document includes the following sections:
Installation Overview— A high-level view of the installation steps.
System Requirements— Describes the technologies that Clearspace needs and supports.
Files in the Distributions— A list of what's included in the distribution.
Java Setup— Setting up Java if you're using the standalone application server.
Database Setup— Setting up a database to support Clearspace.
Application Server Setup— How to set up your application server to support Clearspace.
Setting the jiveHome Directory— Finding a good location for the jiveHome directory.
Here's a high level view of installing Clearspace.
After you finish installing Clearspace and start the server, use its web-based setup tool to establish a database connection and to set up the administrator account. Clearspace will display the setup tool the first time you navigate to Clearspace using a web browser. The URL you use will vary depending on the application server technology you're using. By default for a local installation with the included server (standalone distribution), the URL will be http://localhost:8080/clearspace. You'll find more information about the setup tool in the Clearspace Administrators' Guide.
After you complete the setup tool, use the admin console to begin configuring your Clearspace installation.
Clearspace requires a Java application server and a database, as described in the following recommendations. The following lists supported technologies and recommended system configuration. The following table lists the platform components supported by Jive Software for Clearspace. The components are divided into three configurations indicating level of reliability, stability, and support:
Note: Be sure also to read Fine-Tuning Clearspace Performance for tips on making the most of your configuration.
|
|
OS | JDK | Application Server | Database | AAA |
|---|---|---|---|---|---|
| Recommended | Linux (2.6 Kernel) | Sun Java 6 (Latest JDK 1.6) with latest patches | Apache Tomcat 6.0.10 (or later in 6.0.x series) | Postgres 8.x or better | LDAP or AD |
|
Certified |
Linux (2.6 Kernel) Windows Server 2003 Solaris 10 |
IBM Java 5 (JDK 1.5) with latest patches |
LDAP or AD |
When you run a server-side application, you should also have a daily backup solution. At a minimum you should back up your database on a regular basis as well as the configuration files for Clearspace (note: those are stored in one directory).
Clearspace is supported on the following browsers (browsers on mobile devices aren't supported):
Clearspace will not work properly when accessed through Citrix. This is because Citrix doesn't support AJAX, a technology Clearspace uses for accessing the server asynchronously in the background.
The files in your distribution will differ depending on whether you downloaded the standalone distribution or WAR distribution. Among the things you'll find in the distributions are:
These include an application server. With the standalone distribution, included app server and evaluation database, installation is complete when you extract the distribution's contents as shown in the hierarchy below.
If you're going to be using a separate database technology (rather than the evaluation database), see Database Setup for further installation instructions.
To start Clearspace:
jive_clearspace_<dist>_x_x_x/ |- database/ |- jiveHome/ |- server/ |- webservices/ |- README.html |- start-clearspace.bat |- start-clearspace.sh |- stop-clearspace.bat |- stop-clearspace.sh
The WAR distribution does not include an application server. This distribution is intended for deployment on the application server of your choice. Clearspace supports several app server technologies as describes in the System Requirements.
The clearspace.war file is a standard Web Application Archive (WAR) that contains the Clearspace application.
jive_clearspace_war_x_x_x/ |- database/ |- jiveHome/ |- webservices/ |- clearspace.war |- EditWAR.jar |- README.html
Clearspace requires a valid Java installation and a JAVA_HOME environment variable set. If you already have an application server installed then you already have Java installed and working properly. You'll need to go through the following steps if you're using the standalone distribution.
You can install Java so that it will be found system-wide, or you can install it so that it will be found by the standalone distribution.
Clearspace stores data about users, documents, spaces, and so on in a database.
You can use either your own database or the evaluation database that's included with the Clearspace distribution. When you're setting up Clearspace with its setup tool, you'll be prompted for information about the data source you want to connect to — in other words, it's a good idea to make your database decision before using the Clearspace setup tool.
All three distributions include an evaluation database, but you should use a separate database for production deployment. If you're using the evaluation database, you can skip to Application Server Setup.
If you're using a separate database technology, you should set it up before you set up your application server. You will need to create a database from schema and ensure that the application server you're using includes JDBC drivers for the database. You can find schemas in the distribution's database directory. View the Database Setup to learn how to install the schemas and JDBC drivers.
Note: If you're upgrading to a version whose database schema is different from the previous version, the application will automatically detect the difference after you've upgraded. When you next start the application and navigate to the admin console, you'll be prompted to start the database upgrade. This is a necessary step before you can start using the application after upgrade. You don't need to run any database-related upgrade scripts.
JNDI Settings: The Clearspace setup tool provides a mechanism for configuring your data source connection, however, you can also configure this connection via your application server's JNDI settings.
Note: The evaluation database Clearspace provides is suitable for evaluation and testing, but you shouldn't use it for deployment. If you want to use the evaluation database, simply select the "Evaluation Database" option when running through the Clearspace setup tool. For more information on the setup tool, see the Clearspace Administrators' Guide.
This guide includes setup guidelines for the following database technologies:
Clearspace Schemas. The setup tool is designed to install the schema for the database you specify. When you need to set up the schema manually, you'll find schemas for several database technologies in the database directory just beneath the root of the distribution.
Required JDBC Drivers. You'll need to put a JDBC driver for your database technology in the application server's classpath. Your database's setup documentation should include information on how to install the schemas and required JDBC drivers. The standalone distributions of Clearspace includes a standalone application server; if you use this server the path is for installing the JDBC driver is <installation_directory>/server/lib. You'll need to restart your application server for the driver to be registered. For more information about setup instructions specific to certain application servers, see Application Server Setup.
Note: If you need to re-run the setup tool, open the jiveHome/setup.xml file, find the line <setup>true</setup>, and change the true value to false. Restart your application server, point your browser at http://localhost:8080/clearspace
MySQL does not have proper Unicode support, which makes supporting postings in non-Western languages difficult. However, the MySQL JDBC driver has a workaround which you can enable by adding <mysql><useUnicode>true</useUnicode></mysql> to the <database> section of your jive_startup.xml file. When using this setting, you should also set the Jive character encoding to utf-8 in the Admin Console.
MySQL 4.1 introduced better support for character encodings than previous versions. This functionality assigns a default character encoding to the database and its tables and columns. It's best to set the default character encoding for your database before installing the Jive schema so that you can be sure that you will not have encoding problems in the future. After creating your database, execute the following line in the MySQL console:
ALTER DATABASE <database name> DEFAULT CHARACTER SET <character set>;
For example, if you plan on using UTF-8 in Clearspace, you should enable the JDBC driver workaround mentioned above and then execute this line in the MySQL console:
ALTER DATABASE <database name> DEFAULT CHARACTER SET utf8;
You can fix the max attachment size problem on a MySQL server by following the directions here:
http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html
The easiest way to change the MySQL server setting on Windows is to add a line to your my.ini file (you'll find this file in a location such as C:\database\mysql\5.0.19); on Linux, look for the my.cnf file instead. Add the following line after the [mysqld] section heading:
max_allowed_packet = 500M
After you add the line, restart MySQL.
When you have the database running on a dedicated server, you should increase the InnoDB buffer pool size from the default (8 MB) to up to 80 percent of the computer's available memory. If the computer has 2 GB of RAM or less, you should think about setting the buffer to something less than 80 percent to ensure that the operating system has enough memory to avoid swapping.
See the MySQL documentation for more on configuration.
Use the following values in the Clearspace setup tool:
CREATE USER clearspace IDENTIFIED BY clearspace; GRANT CONNECT, RESOURCE TO clearspace;
sqlplus clearspace/clearspace @ jive_clearspace_oracle.sql
Jive Software requires that you use the Oracle Call Interface (OCI) driver rather than the thin driver. For more information on installing the OCI driver, which requires that you install the Oracle OCI Instant Client, see the Oracle JDBC FAQ and Instant Client page.
Please consult the Oracle documentation to decide which version of the JDBC driver is best for you.
Use the following values in the Clearspace setup tool:
createuser \-W
createdb \--encoding=UNICODE dbname
local all all trust host all all 127.0.0.1 255.255.255.255 trust host all all your.ip.address 255.255.255.255 trust
Note, this is a pretty open configuration. Please consult your system administrator for the best access configuration.
psql \-U user_you_created \-W \-d dbname
\i /path/to/jive/schema/file.sql
JDBC Driver for PostgreSQL can be found in various distribution packages at PostgreSQL's Home Page. When choosing a driver version, be sure to use version 8.2 or later (although the latest version of the driver that supports you version of the database is generally best). Refer to the JDBC documentation at that site for the latest driver and for more information.
Use the following values in the Clearspace setup tool:
Clearspace requires a DBMS that matches strings with case sensitivity; SQL Server is
case insensitive by default. You can set SQL Server database and/or server collation
(the character set used to store data in text fields) to support case sensitivity.
If database collation is not specified, server collation will be used. The collation
value you'll need to use is SQL_Latin1_General_CP1_CS_AI.
You'll find more information on adjusting SQL Server settings in the SQL Server documentation:
Setting and Changing the Server Collation
Setting and Changing the Database Collation
For SQL Server, Jive Software recommends using the open source jTDS Driver found here: http://jtds.sourceforge.net/
Use the following values in the Clearspace setup tool:
You'll need to create a new database with a name limit of eight characters, or use an existing database. Connect to the database using any valid user name allowed to create tables and indexes. Keep in mind that DB2 UDB applies the user name as the table schema. Use the same user when you configure Clearspace with the administration interface.
DB2 CREATE DB [DBNAME] ALIAS [DBALIAS] DB2 CONNECT TO jive USER [DBUSER] USING [DBPASSWORD]
db2 \-tvf jive_clearspace_db2.sql
By default, the maximum size for a BLOB in DB2 is 1MB; this limits the maximum attachment size in Clearspace to 1MB. The issue will be fixed in an upcoming release, but for now, the work around is to issue the following command against your Clearspace database hosted by DB2. (This fix has been tested on DB2 9.1.)
ALTER TABLE jiveAttachData ALTER attachmentData SET DATA TYPE BLOB(2G)
Use the JDBC 1.2 compliant driver, db2jcc.jar and valid db2jcc_license_cu.jar, located in the bin directory of your DB2 installation directory:
<DB2_INSTALL_DIR>\SQLLIB\BIN\db2jcc.jar, db2jcc_license_cu.jar
Use the following values in the Clearspace setup tool:
While Clearspace is a pure Java application, the application servers on which it can be deployed vary in how they support such applications. This document describes the application server-specific steps you might need to take in order to get your Clearspace installation fully deployed and running.
Note: If you're using the application server that's included in the standalone distribution of Clearspace, you don't need this guide.
The server technologies covered here include:
When deploying the WAR distribution, if the server you are deploying Clearspace on is headless, you must set the Java system property java.awt.headless to "true". If you don't, certain portions of the application that use the Java AWT for generating images will not function properly.
Enable the JVM headless mode by setting the java.awt.headless flag to true, as in the following command line example:
-Djava.awt.headless=true
Issue: If you deploy Clearspace to the root of the Tomcat webapps directory and also have Tomcat's default docs web application deployed at the root (in the /docs directory), you'll get a 404 error when you try to view a Clearspace document. That's because Clearspace references its documents at a path such as /docs/DOC-<docid>.
Workaround: If you intend to deploy Clearspace to the root of your Tomcat webapps directory, be sure to remove the web application at /docs if it is there.
<!-- Uncomment to use jdk1.6 features in
jsp pages--> <init-param> <param-name>compilerSourceVM</param-name> <param-value>1.6</param-value> </init-param>
Note: If you'll be using JNDI to reference the Clearspace database, set the ResultSetHoldability property to 1 (HOLD_CURSORS_OVER_COMMIT). Its default value is 2.
Make these settings in the WebSphere console to set a custom property.
Perform the following steps in the WebSphere console.
In the WebSphere admin console, make the following changes.
In the WebSphere admin console, make the following changes.
unzip -d
clearspace clearspace.warIssue: WebLogic is incompatible with certain Clearspace libraries out-of-the-box.
Workaround: Use JDK 1.5 and update the EXT_PRE_CLASSPATH with the JAR files described below. (Note: WebLogic Server does not support JDK 1.6.)
You can update the path with a command such as the following:
export EXT_PRE_CLASSPATH="/path/to/commons-logging.jar:/path/to/wss4j.jar:/path/to/xmlsec-1.4.1.jar:/path/to/geronimo-ws-metadata.jar:/path/to/velocity-tools.jar
The jiveHome directory contains configuration files, logs, data (for the evaluation database) and other items that Clearspace needs to run correctly. You need to set up your jiveHome directory in a permanent location. The directory must be readable and writable by your application server, but should not be in the document path of your webserver (such that someone could access the directory from a URL such as http://www.yourserver.com/jiveHome). Windows users might pick a directory such as c:\jiveHome while Unix users might install jiveHome to /opt/jiveHome.
Now that your jiveHome directory is set up, Clearspace will need to know its location. There are several ways to do this. Choosing one of the following options depends largely on how you want to register your value in your environment.
java -jar EditWAR.jar clearspace.war
The tool will then lead you through the process of updating the WAR.
java -DjiveHome=/usr/foo/jiveHome -cp . com.myappserver.Server
Please consult your server documentation if you are not familiar with setting up web applications. Most servers give you a choice between deploying a web application by copying a WAR file into a certain directory (typically "webapps"), or by using a deploy tool. Use the method that you are most familiar with.