Personal tools

Pawn:Old Producer

From Adapt

Revision as of 16:38, 15 September 2008 by Toaster (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

MySQL Installation

  • Install the latest !MySQL installation.
  • Modify =/etc/my.cnf= and add the following line:
      set-variable=max_allowed_packet=16M
  • Create a database named =pawn= as !MySQL user root by doing the following:
      create database pawn;
  • Change to the directory...
      ${PRODUCER_SOURCE}/web/WEB-INF/schema/mysql
  • ...and from the !MySQL prompt, load the schema as MySQL root by executing the following:
      source load.sql;
  • Grant permissions to the !MySQL user =pawnapp= by doing the following (using a real password instead of =password=)
      grant all on pawn.* to 'pawnapp'@'localhost' identified by 'password';
      grant all on pawn.* to 'pawnapp'@'localhost.localdomain' identified by 'password';

Producer Installation

  • Create war file from source and copy it to the target installation of Tomcat at ${CATALINA_BASE}/webapps/pawn.war (note that the war created by the build process will be called =pawn-producer.war
  • Load webapp pawn (by manager app or server restart) and the context configuration file should be copied out of the war to ${CATALINA_BASE}/conf/Catalina/localhost/pawn.xml
  • Modify the context config:
    • Change parameter edu.umiacs.pawn.producer.ArchiveScheduler to the URL of the receiving server
    • Change password of database user under ResourceParams name="jdbc/pawn-producer-catalog"
  • Register the web services using the wsdd document in ${PRODUCER_SOURCE}/web/WEB-INF/Producer.deploy.wsdd. Instructions for registering a web service can be found at the Apache AXIS site.
  • Place producer's keystore in ~/.edu.umiacs/producer.keystore
  • Restart web application.