You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Apache OODT XMLPS is an extensible, configurable product and profile server that easily exposes DBMS-backed repositories and catalogs, respectively.

XMLPS grew out of the EDRN Informatics Center and its EDRN Resource Network Exchange (ERNE) project.

Here's a quick step guide to getting XMLPS up and running on your project.

Get Apache OODT Web-Grid up and Running

To get started with Apache OODT XMLPS, you'll need to install Apache OODT Web Grid.

  1. svn export http://svn.apache.org/repos/asf/oodt/tags/0.5/grid
  2. cd grid
  3. mvn install (builds target/web-grid-0.5.war)

You're done here for now, let's go grab Apache Tomcat.

Grab Apache Tomcat and get it up and running

Grab Apache Tomcat. I prefer the 5.5.x series. For those 6.x and 7.x fanboys, instructions will likely be similar.

  1. curl -O http://apache.petsads.us/tomcat/tomcat-5/v5.5.36/bin/apache-tomcat-5.5.36.tar.gz
  2. mv apache-tomcat-5.5.36.tar.gz /usr/local
  3. cd /usr/local ; tar xzvf apache-tomcat-5.5.36.tar.gz
  4. ln -s /usr/local/apache-tomcat-5.5.36 tomcat5
  5. edit /usr/local/tomcat5/conf/tomcat-users.xml and add a new user "xmlps" with password "secret" with the roles="manager,admin"

You're done for now with the Tomcat installation. Time to layer the web-grid substrate on top of it.

Layering Apache OODT Web Grid on top of Tomcat

  1. copy web-grid-0.5.war from the target directory from your built Web-Grid to /usr/local/tomcat5/webapps/grid.war (yes rename it, you'll thank me later)

    Warning

    Make sure Tomcat isn't running until the guide says for you to turn it on. Tomcat doesn't like you messing with its webapp and work directories.

Building and Installing XMLPS

  1. svn export http://svn.apache.org/repos/asf/oodt/tags/0.5/xmlps
  2. cd xmlps
  3. mvn install assembly:assembly (builds target/oodt-xmlps-0.5-with-dependencies.jar)
  4. create deploy area, e.g., /usr/local/xmlps and copy oodt-xmlps-0.5-with-dependencies.jar to it
  5. copy example conf files out of xmlps/src/main/conf (example.db.properties and example-ps.xml) into /usr/local/xmlps

Set up a database

  1. modify examples for your database (I used a local postgres instance and I created a simple mapping file with 2 fields, one dynamic and one constant that queried 1 database)
  2. copy WAR file to $TOMCAT_HOME/webapps/grid.war
  3. visit http://localhost:8080/grid/
  4. Configure web-grid after logging in to use XMLPS handler, to reference your JDBC jar file (that you copy into /usr/local/xmlpstest), and to reference XMLPS jar file in /usr/local/xmlpstest
  5. try a query at: http://localhost:8080/grid/prod?q=

Other Relevant Reading

  1. Mattmann's original guide for XMLPS (12 steps)
  • No labels