Appendix C. Getting Ready for the Code Examples

Perform the following steps to run the PIX system on your machine:

  1. Download Spring.

  2. Start an instance of the HSQLDB database server.

  3. Download and install Tomcat.

  4. Download and compile the source code.

  5. Deploy the web application to Tomcat.

  6. Start Tomcat and access the application.

These steps are described in more detail here:

  1. To download Spring go to the following web site: http://www.springframework.org/

    When asked for a choice, make sure you download the "With dependencies" bundle. After you have downloaded this bundle, unzip it into a directory of your choice.

    The example in this book has been tested with the 2.0.3 release of the Spring framework. The code should work with all 2.0.x versions of Spring.

  2. Open a console window. Look into the Spring distribution directory and look for the lib directory. Change directories to the lib directory and then look for the hsqldb directory. Change to the hsqldb directory. In this directory, you should see a file called hsqldb.jar. The HSQL database server is in this jar file. Start an instance of the database using the command:

    java -cp hsqldb.jar org.hsqldb.Server -database.0 temp -dbname.0 pix
  3. You can find the download of Tomcat at http://tomcat.apache.org/.

    The PIX application has been tested on Tomcat 6.0.13. Download the latest version of Tomcat 6.0.x. Download the core binary distribution, and select the ZIP file. After you have downloaded this file, unzip it into a directory of your choice.

  4. Download the ...

Get Beginning Spring Framework 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.