...
The following will compile and run the server in Tomcat with a MySQL database. The database tables will be set up automatically, however you must have previously created a database called "widgetdb" with username "java" and password "java". (If you want to change the database connection settings, then you need to alter the scripts/mysql/hibernate.cfg.xml.)
1. First, you need to edit the "build.properties" file as follows:
- uncommenting "project.using.mysql=true"
- set "servletEngine.webapp.dir=" to the location of your tomcat webapps directory.
Then run:
ant clean-build deploy-webapp
...
If you want to clean the database use:
ant clean-db
By default Wookie connects to MySQL using Hibernate and the C3P0 connection pooler.
Running Wookie with other configurations
Other configurations of Wookie can also be run; the main requirements are a servlet container and a database. The setup information for databases can be found in the /scripts directory. How these are loaded into configurations is defined in build.xml; the main requirement is to define connection details in scripts/database/hibernate.cfg.xml and to define the database setup script in scripts/database/widgetdb.sql.
The deploy-webapp task can be used to deploy Wookie to any servlet container application.