
Documentation for Crowd 1.3. Documentation for other versions of Crowd is available too.
The standard Crowd installation guide tells you how to install the Standalone distribution of Crowd, which includes Apache Tomcat. You may wish to deploy Crowd on your own existing application server instead. For this purpose, we provide WAR (Webapp ARchive) distributions of the Crowd and CrowdID server applications.
This page shows one example - use it as a basis for other installations
Follow the steps below to install Crowd on JBoss 4.2.2 GA using a PostgreSQL database:
server/default/deploy/crowd.war in the rest of these instructions. server/default/deploy/crowd.war/WEB-INF/classes/crowd-init.properties. The Crowd Home directory is where Crowd will store its configuration information. If you are using the embedded HSQL database, supplied for evaluation purposes, Crowd will also store its database in this directory. To specify the directory:
crowd-init.properties file.# at the beginning of the line.crowd.home=c:/data/crowd-home
crowd.home=/var/crowd-home
crowd-init.properties file.server/default/deploy/crowd.war/WEB-INF/jboss-web.xml, with the following contents:
<jboss-web>
<resource-ref>
<res-ref-name>jdbc/CrowdDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:CrowdDS</jndi-name>
</resource-ref>
</jboss-web>
crowd_db in PostgreSQL. server/default/deploy/postgres-ds.xml:
<datasources>
<local-tx-datasource>
<jndi-name>CrowdDS</jndi-name>
<connection-url>jdbc:postgresql://localhost:5432/crowd_db</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>postgres</user-name>
<password>postgres</password>
</local-tx-datasource>
</datasources>
server/default/deploy/crowd.war/WEB-INF/classes/crowd.properties to point to the port of the JBoss server. 8080 is the default port number, and is shown in the example below:
crowd.server.url=http://localhost:8080/crowd/services/ application.login.url=http://localhost:8080/crowd/console/
run.sh (Unix-based systems) or run.bat (Windows).