Add the Oracle JDBC driver jar to the common/lib directory.
3. Configure your application server to connect to Oracle
Edit the file apache-tomcat-X.X.XX/conf/Catalina/localhost/openidserver.xml and customise the username, password, driverClassName and url parameters for the Datasource.
<Context path="/openidserver" docBase="../../crowd-openidserver-webapp" debug="0">
<Resource name="jdbc/CrowdIDDS" auth="Container" type="javax.sql.DataSource"
username="[enter db username here]"
password="[enter db password here]"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:crowdiddb"
[ delete the minEvictableIdleTimeMillis, timeBetweenEvictionRunsMillis and maxActive params here ]
/>
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/></Context>
Delete the minEvictableIdleTimeMillis, timeBetweenEvictionRunsMillis and maxActive attributes (which are only needed for HSQL, and degrade performance otherwise).
4. Configure CrowdID to use Oracle
Edit the build.properties file (located in the root of the standalone release) and modify the hibernate.dialect to the following
Then run ./build.sh or build.bat. This will configure CrowdID to use the Oracle dialect. There is a problem with build.bat in Crowd version 1.2.0. To fix the problem, please apply the patch described in CWD-638.
If you do not wish to edit this file and run the build script, you can edit the jdbc.properties (which the above script modifies) directly. The jdbc.properties file is located here: crowd-openidserver-webapp\WEB-INF\classes\jdbc.properties. Modify the file to the following:
You should now have an application server configured to connect to a database, and CrowdID configured to use the correct database. Now start up CrowdID and watch the logs for any errors.
Add Comment