You need to check (and possibly change) two things before you can run the example:

Next: Checking and Configuring Tomcat Port Numbers