Before you start coding, you need to do these steps in preparation:
- Copy the directory Burnaby and its content from the software/burnaby directory on the CD to %CATALINA_HOME%/webapps/. The directory structure of the application is shown in Figure 18.1.
Figure 18.1 The application directory structure.
Create a DSN name called Burnaby for the Microsoft Access database. Or, if you are using a different database, make sure that the JDBC driver for the database can be found and loaded by the JVM.
Edit the server.xml file, which is the server configuration file located in the conf directory under %CATALINA_HOME%. Open the file with your text editor and look for something like the following:
<Context path="/examples" docBase="examples" debug="0" reloadable="true"> . . . </Context>
Right after the closing tag </Context>, add this line:
<Context path="/burnaby" docBase="burnaby" debug="0" reloadable="true"> </Context>