Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The instructions below are temporary instructions to allow early adapters/testers to be able to build, deploy, and demonstrate the OpenRegistry project in its current state. The instructions below are not a reflection on how the final project may be built, packaged and deployed. The final project may look entirely different.

Info
titleDeployment Checklist
This checklist can be used in conjunction with he instructions below.   It was created as part of a test deployment in August 2012.
  • Disable spock plugin in pom.xml (for Maven 3+)
  • Make sure hibernate auto create schema feature is on
  • Build: mvn clean package'
  • Copy openregistry-webapp/src/openregistry.xml to tomcat/conf/Catalina/localhost and configure e.g. jdbc settings, etc.
  • Create database schema username (specific to the database in use)
  • Deploy open registry for the first time and make sure hibernate auto ddl creates tables in the open registry schema
  • Turn off hibernate auto ddl schema create, re-build and re-deploy

 

Retrieve the Source from Source Control

...

Step 5 is to set up your database access. You'll need to create an openregistry.xml similar to the one below and place it in $TOMCAT_HOME/conf/Catalina/localhost

Code Block
xml
xml

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/openregistry">
	<!-- Turn off tomcat session persistance -->
   	<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false">
    	<Store className="org.apache.catalina.session.FileStore"/>
   	</Manager>

	<Resource
   		name="jdbc/MyDataSource"
   		auth="Container"
   		type="com.mchange.v2.c3p0.ComboPooledDataSource"
        description="OpenRegistry Database"
        factory="org.apache.naming.factory.BeanFactory"
        acquireIncrement="5"
        minPoolSize="5"
        maxPoolSize="256"
        maxIdleTimeExcessConnections="900"
        driverClass="oracle.jdbc.driver.OracleDriver"
        jdbcUrl="jdbc:oracle:thin:@databaseserver.com:dbalias"
        user="@@@username@@@"
        password="@@@password@@@"
        maxStatementsPerConnection="37"
        numHelperThreads="5"
        testConnectionOnCheckin="true"
        idleConnectionTestPeriod="300"
        preferredTestQuery="SELECT SYSDATE FROM DUAL"/>
</Context>

...

Assuming you have Tomcat running on port 8080, start up Tomcat ($TOMCAT_HOME/bin/startup.sh or $TOMCAT_HOME/bin/startup.bat) and point your web browser to:

Code Block

http://localhost:8080/openregistry/addPerson.htm

or

Code Block

http://localhost:8080/openregistry/addRole.htm?sorPersonKey=2&roleInfoKey=1

...