Difference between revisions of "Installation"
LornaMorris (talk | contribs) (→reBiND Data Portal Prerequisites) |
LornaMorris (talk | contribs) (→Using the eXist Java admin client to prepare the database) |
||
(44 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Before you use the reBiND archiving system the data must be transformed into a suitable XML format. We use ABCD format ([[ABCD_in_reBiND]]) and to create ABCD XML files we recommend using the Biocase Provider Software (BPS). To install this software please follow the [http://wiki.bgbm.org/bps/index.php/Installation installation instructions in the BPS wiki]. | Before you use the reBiND archiving system the data must be transformed into a suitable XML format. We use ABCD format ([[ABCD_in_reBiND]]) and to create ABCD XML files we recommend using the Biocase Provider Software (BPS). To install this software please follow the [http://wiki.bgbm.org/bps/index.php/Installation installation instructions in the BPS wiki]. | ||
− | ==reBiND Data Portal Prerequisites == | + | ===reBiND Data Portal Prerequisites=== |
To be able to install the reBiND archiving system you first need to [http://exist-db.org/exist/apps/doc/quickstart.xml install the eXist database], version 2.0 or later. the eXist database requires 512 MB of RAM and about 200 MB of disk space. The critical requirement is that Java be installed. We have tested the reBiND Data Portal with eXist version 2.1 and Java version 1.7. All software components have been tested on Windows 7 and Debian GNU/Linux 6. | To be able to install the reBiND archiving system you first need to [http://exist-db.org/exist/apps/doc/quickstart.xml install the eXist database], version 2.0 or later. the eXist database requires 512 MB of RAM and about 200 MB of disk space. The critical requirement is that Java be installed. We have tested the reBiND Data Portal with eXist version 2.1 and Java version 1.7. All software components have been tested on Windows 7 and Debian GNU/Linux 6. | ||
− | + | ===Installing the reBiND Data Portal=== | |
− | + | The following steps should be carried out to install the reBiND components. After each step we've provided the location of the diectory on Windows where the files should be added or modified assuming that eXist has been installed on the C drive at C:\eXist-db. | |
− | ==Configuring reBiND Data Portal== | + | # The rebind_module.jar is available from our subversion repository at: [http://ww2.biocase.org/svn/rebind/trunk/reBiND-eXist-Module/rebind-module.jar subversion rebind module]. Add the rebind_module.jar to the eXist/lib/user directory. (on Windows C:\eXist-db\lib\user). |
− | * | + | # Copy the folder called rebind ([http://ww2.biocase.org/svn/rebind/trunk available from our subersion repository]) to eXist/webapp (on Windows C:\eXist-db\webapp). |
+ | |||
+ | ===Configuring the reBiND Data Portal=== | ||
+ | |||
+ | <ol> | ||
+ | <li>Register the rebind-module by editing the eXist configuration file - eXist/conf.xml (on Windows C:\eXist-db\conf.xml). The following lines should be added within the <builtin-modules> element in the conf.xml:</li> | ||
+ | |||
+ | <syntaxhighlight> | ||
+ | <!-- modules for reBiND --> | ||
+ | <?xml version='1.0' encoding='UTF-8'?> | ||
+ | <module class="org.exist.xquery.modules.datetime.DateTimeModule" uri="http://exist-db.org/xquery/datetime"/> | ||
+ | <module class="org.exist.backup.xquery.BackupModule" uri="http://exist-db.org/xquery/backups"/> | ||
+ | <!-- Custom reBiND Module --> | ||
+ | <module class="org.bgbm.rebind.exist.module.RebindModule" uri="http://rebind.bgbm.org/code/module"/> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Consult the [http://exist-db.org/exist/apps/doc eXist documentation] for further details about the module system. | ||
+ | |||
+ | <li>Add the settings.conf file to the eXist-root (available from our subversion repository at http://ww2.biocase.org/svn/rebind/trunk/configuration/settings.conf). On Windows C:\eXist-db\settings.conf)</li> | ||
+ | <li>(Optional) In eXist-root/webapp/controller.xql replace lines 37-40 (within the <dispatch> element) with.:</li> | ||
+ | <syntaxhighlight><forward url="rebind/"/></syntaxhighlight> | ||
+ | This ensures the host URL formards to the homepage with the login to the rebind portal. | ||
+ | <li>In eXist-root/webapp/WEB-INF/web.xml add the following at line 371:</li> | ||
+ | |||
+ | <syntaxhighlight><filter-mapping> | ||
+ | <filter-name>XFormsFilter</filter-name> | ||
+ | <url-pattern>/rebind/*</url-pattern> | ||
+ | </filter-mapping> | ||
+ | </syntaxhighlight> | ||
+ | </ol> | ||
+ | |||
+ | ===Using the eXist Java admin client to prepare the database=== | ||
+ | |||
+ | <ol> | ||
+ | <li>Open the Java webstart admin client. There are several ways of launching the client. These are [http://exist-db.org/exist/apps/doc/java-admin-client.xml documented in detail on the eXist web-site]/.</li> | ||
+ | <li>When prompted enter the password for the admin user. This should have already been set during eXist installation.</li> | ||
+ | <li>Download the eXist db directory [http://ww2.biocase.org/svn/rebind/trunk/exist-db/db from our svn repository] (this contains database files that must be stored directly in eXist).</li> | ||
+ | <li>In the admin client navigate to db/apps and create a new collection called eXide2.</li> | ||
+ | <li>In the Tools menu of the admin client click 'Restore'. Then use the file browser to select the file to restore - in this case db/apps/eXide2/_contents_.xml from svn (see step 3).</li> | ||
+ | <li>Navigate back to the base collection in the admin client and create a collection called 'rebind'. Create the following child collections of 'rebind': | ||
+ | |||
+ | *correction | ||
+ | *protected | ||
+ | *public | ||
+ | *schema | ||
+ | *template | ||
+ | *xsl | ||
+ | </li> | ||
+ | |||
+ | <li>Navigate to each child collection and restore the corresponding data files from svn as in step 5.</li> | ||
+ | </ol> | ||
+ | For example navigate to /db/correction and restore the data with data from http://ww2.biocase.org/svn/rebind/trunk/exist-db/db/rebind/correction | ||
+ | |||
+ | (Note the public and protected collections listed above remain empty until data is stored in eXist via the reBiND workflow.) |
Latest revision as of 01:43, 19 November 2014
Contents
Installation
Before you use the reBiND archiving system the data must be transformed into a suitable XML format. We use ABCD format (ABCD_in_reBiND) and to create ABCD XML files we recommend using the Biocase Provider Software (BPS). To install this software please follow the installation instructions in the BPS wiki.
reBiND Data Portal Prerequisites
To be able to install the reBiND archiving system you first need to install the eXist database, version 2.0 or later. the eXist database requires 512 MB of RAM and about 200 MB of disk space. The critical requirement is that Java be installed. We have tested the reBiND Data Portal with eXist version 2.1 and Java version 1.7. All software components have been tested on Windows 7 and Debian GNU/Linux 6.
Installing the reBiND Data Portal
The following steps should be carried out to install the reBiND components. After each step we've provided the location of the diectory on Windows where the files should be added or modified assuming that eXist has been installed on the C drive at C:\eXist-db.
- The rebind_module.jar is available from our subversion repository at: subversion rebind module. Add the rebind_module.jar to the eXist/lib/user directory. (on Windows C:\eXist-db\lib\user).
- Copy the folder called rebind (available from our subersion repository) to eXist/webapp (on Windows C:\eXist-db\webapp).
Configuring the reBiND Data Portal
- Register the rebind-module by editing the eXist configuration file - eXist/conf.xml (on Windows C:\eXist-db\conf.xml). The following lines should be added within the <builtin-modules> element in the conf.xml:
- Add the settings.conf file to the eXist-root (available from our subversion repository at http://ww2.biocase.org/svn/rebind/trunk/configuration/settings.conf). On Windows C:\eXist-db\settings.conf)
- (Optional) In eXist-root/webapp/controller.xql replace lines 37-40 (within the <dispatch> element) with.:
- In eXist-root/webapp/WEB-INF/web.xml add the following at line 371:
<!-- modules for reBiND -->
<?xml version='1.0' encoding='UTF-8'?>
<module class="org.exist.xquery.modules.datetime.DateTimeModule" uri="http://exist-db.org/xquery/datetime"/>
<module class="org.exist.backup.xquery.BackupModule" uri="http://exist-db.org/xquery/backups"/>
<!-- Custom reBiND Module -->
<module class="org.bgbm.rebind.exist.module.RebindModule" uri="http://rebind.bgbm.org/code/module"/>
Consult the eXist documentation for further details about the module system.
<forward url="rebind/"/>
This ensures the host URL formards to the homepage with the login to the rebind portal.
<filter-mapping>
<filter-name>XFormsFilter</filter-name>
<url-pattern>/rebind/*</url-pattern>
</filter-mapping>
Using the eXist Java admin client to prepare the database
- Open the Java webstart admin client. There are several ways of launching the client. These are documented in detail on the eXist web-site/.
- When prompted enter the password for the admin user. This should have already been set during eXist installation.
- Download the eXist db directory from our svn repository (this contains database files that must be stored directly in eXist).
- In the admin client navigate to db/apps and create a new collection called eXide2.
- In the Tools menu of the admin client click 'Restore'. Then use the file browser to select the file to restore - in this case db/apps/eXide2/_contents_.xml from svn (see step 3).
- Navigate back to the base collection in the admin client and create a collection called 'rebind'. Create the following child collections of 'rebind':
- correction
- protected
- public
- schema
- template
- xsl
- Navigate to each child collection and restore the corresponding data files from svn as in step 5.
For example navigate to /db/correction and restore the data with data from http://ww2.biocase.org/svn/rebind/trunk/exist-db/db/rebind/correction
(Note the public and protected collections listed above remain empty until data is stored in eXist via the reBiND workflow.)