My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 31, 2008 by berlin.brown
Labels: Featured
QuickStartInstallGuide  
Quick start setup guide for setting up the J2EE botlist web application (7/27/2008).

Quick start setup

Date: 2/6/2008

Overview

The botlist J2EE web frontend might be considered a medium sized web application. Make sure that you have a J2EE servlet container. Tomcat 5.5+ is recommended but not required. MySQL database server is required (expect a Postgres configuration in the future). The java build tool Ant is also required for building the project.

Test Environment and Recommended Configuration

Download from Google Code (Botlist J2EE front-end)

There is an issue with hosting botlist on google-code. Botlist includes 50+MB of libraries and other modules. This is over google's upload limit and borders on the project limit. This means that the libraries needed to run botlist are broken into various download modules. (Especially the libraries needed for the botlist J2EE WEB-INF/lib directory). To remedy this problem, you need to download all the libraries and manually place them in the BOTLIST_WEBAPP_HOME/WEB-INF/lib. If any of the jar file libraries are missing then botlist may not function properly.

  1. Download botlist_web_072008.tar.gz - this download contains all of the Java source and JRuby source for the botlist web front-end.
  2. Download botlist_webinf_lib_072008.tar.gz - this download includes the first set of jar libraries needed to run botlist. Unzip the archive file and place all of the jar files in the BOTLIST_WEBAPP_HOME/WEB-INF/lib directory.
  3. Download botlist_webinf_lib_set2.tar.gz - this download includes the second set of jar libraries needed to run botlist. Unzip the archive file and place all of the jar files in the BOTLIST_WEBAPP_HOME/WEB-INF/lib directory.

If you receive any errors while running botlist, first check if you downloaded all the libraries needed to run the web application.

As of 7/2008; the following downloads are required: (Note: you can also download the libraries from Subversion)

Description of Downloads (as of 7/25/2008)

Subversion WEB-INF/lib directory

Check out source from Subversion

As of 2/2/2008

Checking out the botlist source is the recommended way to get build and run the application. If you have access to SVN, use this method but you should also be able to download and run the botlist application from the code.google.com botlist homepage. In the future, regular releases and snapshots will be available, for now you can retrieve the latest source code.

I extracted tomcat to my home directory for development.

tomcat_home = ~/projects/tomcat/tomcat5526

cd ~/projects/tomcat/tomcat5526/webapps

svn co http://openbotlist.googlecode.com/svn/trunk/openbotlist

mv openbotlist botlist 

The project name is called openbotlist, it is best to change the directory
name to just botlist because of URI references to 'botlist' in the web
application.

Run mysqld and setup the database

Start the mysql daemon and create the databases.

Example output:

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

mysql> source insert_link_groups.sql;

At this point, you have created the MySQL database.

Build the project

To build the project, you simply need to enter the botlist web app directory and invoke the ant command.

Example output:

$ ant
Buildfile: build.xml

prepare:
    [mkdir] Created dir: c:\projects\tools\home\projects\tomcat\tomcat5526\webap
ps\botlist\build
    [mkdir] Created dir: c:\projects\tools\home\projects\tomcat\tomcat5526\webap
ps\botlist\build\classes
...
...

Web application database configuration

To configure the application, you need to set the database parameters including username and password.

cp example_botlist_config.properties botlist_config.properties

Edit the botlist_config.properties file.

botlist.db.url=jdbc:mysql:///openbotlist_development
botlist.username=USER
botlist.password=PASSWORD

Run tomcat and navigate to the botlist site

At this point, launch the tomcat server.

Resources


Sign in to add a comment
Hosted by Google Code