Step 1: Create a database called studenttrader.
Make sure on mysql that you first have (if on linux.. doesn't apply to windows)
[mysqld]
set-variable = lower_case_table_names=1 in the /etc/my.cnf file
I am not possitive if you need this - but some of the database names may have been upper case or lowercase in the code. I am going to go through that and change it.
Step2 : GRANT all on studenttrader.* to [USER_NAME] IDENTIFIED BY '[PASSWORD]'
-- There are 2 places where you need to set the username and password you chose: /etc/db.properties (I am not sure if I am still using that in the code)
and /etc/ojb/repository_database.xml
The defaults are user_name=studenttrader and password=your_password_here
Step 3: Make sure you have the mysql driver in tomcat/common/lib/
Step 4: Edit build.xml and specify where your jakarta-tomcat installation is. (I will include a properties file in the next version.)
My windows box happens to be
My linux version is
It's best to not hard code that info int he build script - especially if you develop on linux and windows.
Step 5: in the main directory (where the build.xml file is): run ant
(Quick note for this version: please update your build file with the following lines.. otherwise your ide may give you a headache:
Originally this was saved in the lib/ directory... my bad!
Go to http://localhost:8080/StudentTrader/ --> everything should work (it does for me at least!)