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.
Installation Overview
Here's a high level view of installing Clearspace.
- Review the system requirements to
make sure your system supports Clearspace.
- Copy the Clearspace distribution to the server you'll be using. You'll find the distribution at the
Jive Software web site.
- Decide what database technology you'll be using with Clearspace. Data about people, content, and the
means for organizing them is stored in a database that you specify while using the Clearspace setup
tool. You should use a separate database for a production deployment, but the Clearspace
distribution includes its own database you can use for evaluation purposes.
- If you're not using the evaluation database, prepare your database for Clearspace.
- Decide what application server technology you'll be using. The standalone distributions of
Clearspace includes an application server. If you're installing with the WAR File, set up your application
server by installing the application files and JDBC driver.
- Deploy Clearspace using the database and application server decisions you made in the preceding
steps.
- Set the jiveHome directory.
- It is recommended that you allocate extra memory for Clearspace when starting your application
server. For example, -Xmx512M
- This process is finished when you complete the setup tool that is displayed when you launch
Clearspace for the first time.
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.
System Requirements
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:
- Recommended -- If you're starting from scratch, use these components.
Note: Be sure also to read Fine-Tuning
Clearspace Performance for tips on making the most of your configuration.
Environment
- We recommend a server with at least 1GB of RAM and at least one 1.5 Ghz processor.
- An optimal deployment for a larger community would have 2GB of RAM and 2 CPUs for better
multi-threaded performance.
- For optimal performance we recommend the application and database servers be hosted separately.
- Clearspace easily integrates with a LDAP repository or an Active Directory. (Be sure to see the LDAP
and Active Directory Guide for more information on configuring those resources for use in
Clearspace.)
Additional Recommendations
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).
Supported Browsers
Clearspace is supported on the following browsers (browsers on mobile devices aren't supported):
- Internet Explorer versions 6 and 7
- Firefox version 2 and 3
- Safari versions 3 and later
Known Issues
Poor Performance When Citrix Is Used
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.
Files in the Distributions
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:
- A database directory that contains SQL scripts to create new Clearspace databases. See Database Setup for more information.
- A jiveHome directory where Clearspace stores configuration files and additional resources.
Standalone Distribution
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:
- Standalone distribution - From a command prompt, use the BAT (for Windows) and SH (for Unix-based
OSes) files to start and stop Clearspace on the included app server.
WAR Distribution
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.
Java Setup
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.
Java Installation Instructions
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.
Download the Java Distribution
- Download the Java distribution for your OS:
Installing Java for Standalone Use
- Follow the installation instructions for your platform. Record the path to the directory where you
installed Java.
- Set a JAVA_HOME environment variable. An environment variable is a way tell Clearspace where Java is installed.
-
Unix
- Open your favorite text editor and type the following text: export
JAVA_HOME="<java_install_path>", where
<java_install_path> is the directory where Java is installed. For
example: export JAVA_HOME="/Library/Java/Home/".
- Save this to a file called setJavaHome in the Clearspace standalone installation
directory. For example, if you extracted Clearspace to
/home/clearspace/jive_clearspace_standalone_2_0_1 then you'll save this file as
/home/clearspace/jive_clearspace_standalone_2_0_1/setJavaHome.
-
Windows
- On your desktop, right click on 'My Computer', select 'Properties'
- Click the Advanced Tab
- Click the Environment Variables button
- Under System Variable, click New.
- In the 'Variable name' field, enter: JAVA_HOME
- In the 'Variable value' field, enter the path to your JDK installation (e.g.
C:\Program Files\Java\jdk1.6.0).
- Click OK on all open System Properties screens (3)
- You've now completed the Java installation.
Installing Java for WAR Use
- Follow the installation instructions for your platform. Record the path to the directory where you
installed Java.
- Set a JAVA_HOME environment variable. An environment variable is a way tell Clearspace where Java is installed.
-
Unix/Linux
- Edit the ".profile" file in your home directory (or corresponding file for your
shell).
- Set the JAVA_HOME environment variable by adding the following line to the file:
- export JAVA_HOME=/path/to/java/directory
- Be sure there are no spaces after the end of the directory name.
- Do not add an extra slash after the directory name.
- Save changes to the file and then "source" it: source .profile
-
Windows
- On your desktop, right click on 'My Computer', select 'Properties'
- Click the Advanced Tab
- Click the Environment Variables button
- Under System Variable, click New
- In the 'Variable name' field, enter: JAVA_HOME
- In the 'Variable value' field, enter the path to your JDK installation (e.g.
C:\Program Files\Java\jdk1.6.0).
- Click OK on all of the open System Properties screens.
- Close any open command prompt windows. The next time you open a command prompt, the
"JAVA_HOME" variable will be set correctly.
Database Setup
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.
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
Setup Instructions
- Make sure that you are using MySQL 5.x or later and the MyISAM table type (default).
- Create a database for the Clearspace tables using the MySQL command line tool. (First, be sure
to read the note below about character encoding issues.)
mysql> CREATE DATABASE <database_name>;
- The application setup tool should install the schema you need. If you find you need to install manually,
import the schema file from the database directory of the installation:
- Unix/Linux: mysql <database_name> < jive_clearspace_mysql.sql
- Windows: mysql <database_name> < jive_clearspace_mysql.sql
- Start the Clearspace setup tool, and use the appropriate JDBC connection settings.
MySQL Character Encoding Issues
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;
MySQL Max Attachment Size Issues
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.
Adjust the InnoDB Buffer Pool Size
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.
JDBC Drivers
Use the following values in the Clearspace setup tool:
- Driver: com.mysql.jdbc.Driver
- URL: jdbc:mysql://[host-name]:3306/[database-name]
Oracle
Setup Instructions
- If you're connecting to the Oracle database via the command line using SQLPLUS, you can connect to
the database to execute the commands above by doing the following:
sqlplus system/XXXX
where XXXX is the "system"
user's password.
- Create a "clearspace" user or some other user who will "own" the Clearspace
tables. This isn't necessary, but doing so will allow your tables to exist in a separate tablespace.
Typical commands are as follows:
CREATE USER clearspace IDENTIFIED BY clearspace; GRANT CONNECT, RESOURCE TO clearspace;
- The application setup tool should install the schema you need. If you find you need to install manually,
import the schema file from the database directory of the installation. For example, you can import the
schema from the database directory of the Clearspace installation using sqlplus (or
your favorite Oracle tool such as Toad or DbVisualizer). If you have sqlplus on your PATH, you can
execute the following command in the directory containing the Oracle schema. The following assumes
you've set up a user account called "clearspace" with password "clearspace":
sqlplus clearspace/clearspace @ jive_clearspace_oracle.sql
JDBC Drivers
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:
- Driver: oracle.jdbc.driver.OracleDriver
- Server: jdbc:oracle:oci:@<host>:<port>:<oracle_sid> (the default port is
1521)
PostgreSQL
Setup Instructions
- Create a new database user using the PostgreSQL createuser utility:
- Create the database using the "createdb" utility:
createdb \--encoding=UNICODE dbname
- Note, the --encoding switch is optional, but is a good idea so your database will support
Unicode content.
- Grant the user permission to the newly created database. You'll need to locate the Postgres data
directory — such as /var/lib/postgresql. Consult your Postgres installation or administrator
— as this value might be different between installations.
- Once you locate the directory it should contain a file called pg_hba.conf.
- Open the file and go to the bottom of it — you should see an access control section. You'll
need to edit access permissions for this database. The following is a sample entry:
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.
- Log in to the psql application using the user you made above:
psql \-U user_you_created \-W \-d dbname
- The application setup tool should install the schema you need. If you find you need to install manually,
import the schema file from the database directory of the installation. For example, run the following
command to import the Clearspace database schema from the database directory of the installation:
\i /path/to/jive/schema/file.sql
- Proceed to the Clearspace setup tool and use the appropriate JDBC settings when prompted.
JDBC Driver
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:
- Driver: org.postgresql.Driver
- URL: jdbc:postgresql://<host_name>:<port>/<database_name> (default port
is 5432)
Microsoft SQL Server
Setup Instructions
- When installing SQL Server you must select "Mixed Mode" authentication.
- First create a user using SQL Server auth; the default database for user should be master. (Use
these settings for now; you'll change them later.)
- Create a new Database, make the owner the user you just created.
- Run a new query on the database (use a select DB script if you have one), selecting your database
from the drop down and selecting Execute!
- Go back to your user properties and set the following:
- Server Roles: check all
- User Mapping: db_owner and public
- Click Tools > Database Engine Tuning Advisor and enter the following values:
- ServerName = HOST
- Auth = SQL Server
- Authentication Login = your user
Case Sensitivity Issues
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
JDBC Driver
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:
- Driver: net.sourceforge.jtds.jdbc.Driver
- URL: jdbc:jtds:sqlserver://<host>:<port>;DatabaseName=<db_name> (the
default port is 1433)
IBM DB2
Setup Instructions
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.
- Using the DB2 Control Center, open Object View and expand the tree so you can view the list of
databases.
- Right-click the "All Databases" folder, then select Create Database (either Standard or With
Automatic Maintenance); follow the steps in the wizard to create your new Clearspace
database.
- Once the database is created, single-click on the Clearspace database and verify that you
are connected, if not, click the "Connect" link in the bottom window of the Control Center.
- Once connected, right-click on your Clearspace database and select "Query".
- Using the command line, execute the following:
DB2 CREATE DB [DBNAME] ALIAS [DBALIAS] DB2 CONNECT TO jive USER [DBUSER] USING [DBPASSWORD]
- The application setup tool should install the schema you need. If you find you need to install manually,
import the schema file from the database directory of the installation. For example,
start the DB2 command window (in Windows), or the user's shell (in Unix) and import the schema
(found in the database directory of the installation) with:
db2 \-tvf jive_clearspace_db2.sql
Default Max Attachment Size Limited to 1MB
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)
JDBC Drivers
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:
- Driver: com.ibm.db2.jcc.DB2Driver
- URL: jdbc:db2://<HOST>:<PORT>/<DBNAME> (the default port is 50000)
Application Server Setup
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:
Headless Servers
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:
Apache Tomcat
- Place the war file in the <tomcat-install>/webapps directory.
- Restart Tomcat. <tomcat-install>/bin/startup.sh
- Navigate to the now-running Clearspace instance and use the Clearspace setup tool to finish setting
up Clearspace. Using the default port on Tomcat, navigate to the following URL: http://localhost:8080/clearspace
Issues and Workarounds
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.
JBoss
- Shut down the application server.
- Unzip the WAR in the <jboss-install>/server/deploy/ directory, or another non-default server
deploy directory.
- If desired, remove database settings from server/deploy/. You will have a chance to define this
using the Clearspace Setup Tool.
- JBoss 4 does not use JDK 1.6 to compile JSPs by default, 1.6 is needed for Clearspace. Edit
<jboss-install>/server/default/deployjbossweb-tomcat55.sar/conf/web.xml by uncommenting the
following:
<!-- Uncomment to use jdk1.6 features in
jsp pages--> <init-param> <param-name>compilerSourceVM</param-name> <param-value>1.6</param-value> </init-param>
- Add a VM parameter:
- To /bin/run.sh add:
JAVA_OPTS="$JAVA_OPTS -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"
- Or to bin\run.bat add:
set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
- Start the JBoss server with the following command:
/bin/run.sh or bin\run.bat
- Navigate to the now-running Clearspace instance and use the Clearspace setup tool to finish setting
up Clearspace. Using the default port on JBoss, navigate to the following URL: http://localhost:8080/clearspace
WebSphere Application Server
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.
Before Installing Clearspace
Make these settings in the WebSphere console to set a custom property.
- Expand Servers > Application Servers > <server>> Web Container Settings >
Web Container > Custom Properties
- Select New and then enter the following:
- Property name: com.ibm.ws.webcontainer.invokefilterscompatibility
- Value: true
- Click Apply.
- Click Save to the master configuration.
- Restart the application server.
Install Clearspace
Perform the following steps in the WebSphere console.
- Install the WAR file.
- Expand Applications > Install New Application.
- In the Preparing for the application installation page, click
Choose file, then select the clearspace.war
- Enter the context root, such as "/clearspace".
- Click Show me all installation options and parameters.
- Click Next.
- In the Preparing for the application installation page, accept defaults and click
Next.
- In the Application Security Warnings page, accept defaults and click
Continue.
- In the Install New Application page, under Select installation
options, select the Precompile JavaServer Pages files check box.
- Click Next.
- In the Install New Application page, under Map modules to servers,
accept defaults and click Next.
- In the Install New Application page, under Provide options to compile
JSPs, modify JDK Source Level from "13" to "15".
- Click Next.
- In the Install New Application page, under Provide JSP reloading
options..., accept defaults and click Next.
- Under Map shared libraries, accept defaults and click Next.
- Under Initialize parameters for servlets, accept defaults and click
Next.
- Under Map virtual hosts..., accept defaults and click Next.
- Under Map context roots..., accept defaults and click Next.
- Under Summary, click Finish.
- Click Save.
Configure shared libraries to use the Clearspace version of aspectrt.jar
In the WebSphere admin console, make the following changes.
- Expand Environment > Shared Libraries.
- Choose the most specific scope to your Clearspace installation; by default, this would be
"Node=localhostNode01, Server=server1"
- Click New.
- In the Shared Libraries page, set Name to "AspectJ"
- Set Description to "Clearspace version of aspjectj runtime."
- Set Classpath to the installed version of Clearspace's aspectjrt.jar. For example,
this could be:
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/localhostNode01Cell/clearspace_war.ear/clearspace.war/WEB-INF/lib/aspectjrt.jar
- Click Apply, then click Save.
- Expand Servers > Application Servers > <server>
- Expand Java and Process Management.
- Click Class loader.
- Click New.
- Under Class loader order, select Classes loaded with Application class
loader first, then click OK.
- Click the newly created class loader.
- Under Additional library references, click Shared library
references, then click Add.
- Under Library name, in the dropdown, select AspectJ and click
OK.
- Click Save.
- Expand Applications > Enterprise Applications.
- Click the name of you Clearspace installation.
- Under Detail Properties, click Class loading and update
detection.
- Under Class loader order, select Classes loaded with application class
loader first
- Under WAR class loader policy, select Class loader for each WAR file in
application.
- Click OK.
Note: You'll get an error that "Polling interval for
updated files should be in the range 0 through 2147483647". This is a bug, enter a random int
value and click OK.
- Click Save.
- Restart the server.
Configure shared libraries to use the Clearspace version of wsdl4j.jar
In the WebSphere admin console, make the following changes.
- Expand Environment > Shared Libraries.
- Choose the most specific scope to your Clearspace installation; by default, this would be
"Node=localhostNode01, Server=server1"
- Click New.
- In the Shared Libraries page, set Name to "Wsdl4j".
- Set Description to "Clearspace version of wsdl4j."
- Set Classpath to the installed version of Clearspace's wsdl4j.jar. For example, this could
be:
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/localhostNode01Cell/clearspace_war.ear/clearspace.war/WEB-INF/lib/wsdl4j.jar
- Click Apply, then click Save.
- Expand Servers > Application Servers > <server>
- Expand Java and Process Management.
- Click Class loader.
- Click New.
- Under Class loader order, select Classes loaded with Application class loader first,
then click OK.
- Click the newly created class loader.
- Under Additional library references, click Shared library references, then click
Add.
- Under Library name, in the dropdown, select Wsdl4j and click OK.
- Click Save.
WebLogic Server
- You can deploy Clearspace through WebLogic's Administration Console.
- Before deploying, unzip the Clearspace WAR to a directory:
unzip -d clearspace
clearspace.war
- Deploy and start the Clearspace instance as you would any web application.
- Navigate to the now-running Clearspace instance and use the Clearspace setup tool to finish setting
up Clearspace. Using the default port on WebLogic: http://localhost:7001/clearspace
Issues and Workarounds
Issue: 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.)
- Configure a WebLogic domain to use the Sun JDK 1.5.
- Delete weblogic.xml from exploded Clearspace WAR file. You'll find the file in the
clearspace/WEB-INF directory.
- Set your EXT_PRE_CLASSPATH to point to the following five JAR files. The first four are included in
the Clearspace WAR file, in the application WEB-INF/lib directory. Explode the WAR, then copy the
fifth into the application WEB-INF/lib directory.
- commons-logging.jar
- wss4j.jar
- xmlsec-1.4.1.jar
- geronimo-ws-metadata.jar
- velocity-tools.jar — Download from http://velocity.apache.org/download.cgi and copy into the
WEB-INF/lib directory.
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
Setting the jiveHome Directory
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.
- Option 1: Use the setup tool (recommended). Use the Clearspace setup tool to set the value.
After you deploy the web application (detailed below) and start the setup tool you'll be prompted
for the jiveHome location.
- Option 2: Use the EditWAR tool. The EditWAR tool is a small application which will modify the
packaged web application (clearspace.war) to point to the jiveHome directory. The clearspace.war
file is also in the base directory of this distribution.
To invoke the EditWAR
tool, open a command prompt in the base directory of this distribution and execute this command:
java -jar EditWAR.jar clearspace.war
The tool will then lead you through the process of updating the WAR.
- Option 3: Set a JNDI value (advanced). Set the location of the jiveHome directory via JNDI.
You can set a JNDI value in your app server of java:comp/env/jiveHome with a String value of the
path to your jiveHome directory.
- Option 4: Set with a system property (advanced). Set the location of the jiveHome directory
manually by passing in a Java system property to your app server. Set a property with the name of
"jiveHome". Most app servers allow you to pass in an environment variable in the startup script.
That might look like this:
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.