Java Chat
From CodeMonkeyWiki
Contents |
Prerequisites
Needed
- Java SE 6
- Tomcat 6
- Maven 2
- Subversion (also available from Yum)
Suggested
- Tomcat Manager webapp (fully configured)
- Tomcat-Maven plugin
Obtaining code
type svn checkout svn://helios-sites.com/home/svn/repos/Conv
Building
- enter the Conv directory and type mvn clean package
- this will create a target/Conv.war file which can be dropped into Tomcat
OR
- 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
- Conv requires a database (MySQL) called Conv. look in src/main/webapp/META-INF/context.xml for more details.
- Grant all privs on this database to the user and password in the above file
- start tomcat with the WAR in place, this will create the tables required.
- 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
