Java Chat

From CodeMonkeyWiki

Jump to: navigation, search


Contents

Prerequisites

Needed

  1. Java SE 6
  2. Tomcat 6
  3. Maven 2
  4. Subversion (also available from Yum)

Suggested

  1. Tomcat Manager webapp (fully configured)
  2. Tomcat-Maven plugin

Obtaining code

type svn checkout svn://helios-sites.com/home/svn/repos/Conv

Building

  1. enter the Conv directory and type mvn clean package
  2. this will create a target/Conv.war file which can be dropped into Tomcat

OR

  1. enter the Conv directory and type mvn clean [tomcat:undeploy] tomcat:deploy

(this only works if you have the tomcat-maven plugin installed and have the manager app working for tomcat

Initial Setup

  1. Conv requires a database (MySQL) called Conv. look in src/main/webapp/META-INF/context.xml for more details.
  2. Grant all privs on this database to the user and password in the above file
  3. start tomcat with the WAR in place, this will create the tables required.
  4. In the mysql terminal type
mysql> insert into USER (USERNAME, PASSWORD) values ("Admin", "YOURPASS");
mysql> insert into ROLE (USERNAME, ROLENAME) values ("Admin", "ConvGuest"), ("Admin", "ConvUser"), ("Admin", "ConvAdmin");

You can now log into the system by navigating to http://Your-host:8080/Conv with Admin/YOURPASS

Personal tools